Jatka Bandi Posted December 7, 2021 Report Posted December 7, 2021 i have varying string lengths in a column. I want all cells to have fixed length.. so if some cells have fewer characters, i want trailing spaces so that each cell makes up that fixed length.. how? for example, cells may look like dg aknb 2 gshjhj Ā i want them to look like a fixed length of 6. so cells should end up looking like dgĀ Ā aknbĀ Ā 2Ā Ā Ā gshjhj first, second third cells lo characters taravata space include ayyindi choodandi.. so that all cells are 6 characters..Ā Quote
dasari4kntr Posted December 7, 2021 Report Posted December 7, 2021 Try padding functions⦠āDasariā&REPT(ā*ā,3)) Dasari*** Quote
Jatka Bandi Posted December 7, 2021 Author Report Posted December 7, 2021 25 minutes ago, dasari4kntr said: Try padding functions⦠āDasariā&REPT(ā*ā,3)) Dasari*** * badalu white space pedithey teesukotledu. White space ni character laaga define cheyyali.. adi avvatledu.. also, nee suggestion lo Dasari word ee variable length vuntey * kooda adapt avvali.. so that overall charcaters are 15.. ela chestaaru? Quote
dasari4kntr Posted December 7, 2021 Report Posted December 7, 2021 2 minutes ago, Jatka Bandi said: * badalu white space pedithey teesukotledu. White space ni character laaga define cheyyali.. adi avvatledu.. also, nee suggestion lo Dasari word ee variable length vuntey * kooda adapt avvali.. so that overall charcaters are 15.. ela chestaaru? Len(ādasariā) gives length of your name⦠adjust your cell formatterā¦and also⦠once you done with spaceā¦export to cav and notice there is space is appearing or not⦠ Quote
Jatka Bandi Posted December 7, 2021 Author Report Posted December 7, 2021 for example I tried this for 5 character length. but * badalu space pedithe accept cheyatledu. deeniki kooda script rayaala ippudu! =LEFT(A1&"*****",5) Quote
DummyVariable Posted December 7, 2021 Report Posted December 7, 2021 =IF(VALUE(LEN(E2))=1,E2&" Ā Ā ",IF(VALUE(LEN(E2))=2,E2&" Ā Ā ",IF(VALUE(LEN(E2))=3,E2&" Ā ",IF(VALUE(LEN(E2))=4,E2&" Ā ",IF(VALUE(LEN(E2))=5,E2&" ",E2))))) š Quote
DalchanChekka Posted December 7, 2021 Report Posted December 7, 2021 4 minutes ago, DummyVariable said: =IF(VALUE(LEN(E2))=1,E2&" Ā Ā ",IF(VALUE(LEN(E2))=2,E2&" Ā Ā ",IF(VALUE(LEN(E2))=3,E2&" Ā ",IF(VALUE(LEN(E2))=4,E2&" Ā ",IF(VALUE(LEN(E2))=5,E2&" ",E2))))) š 0 Quote
DummyVariable Posted December 7, 2021 Report Posted December 7, 2021 14 minutes ago, DalchanChekka said: 0 Put data in Cell E2 uncleĀ Quote
Jatka Bandi Posted December 7, 2021 Author Report Posted December 7, 2021 20 minutes ago, DummyVariable said: =IF(VALUE(LEN(E2))=1,E2&" Ā Ā ",IF(VALUE(LEN(E2))=2,E2&" Ā Ā ",IF(VALUE(LEN(E2))=3,E2&" Ā ",IF(VALUE(LEN(E2))=4,E2&" Ā ",IF(VALUE(LEN(E2))=5,E2&" ",E2))))) š then why smiley at the end? 1 Quote
DummyVariable Posted December 7, 2021 Report Posted December 7, 2021 2 minutes ago, Jatka Bandi said: then why smiley at the end? For fun uncle Ā Quote
dasari4kntr Posted December 7, 2021 Report Posted December 7, 2021 48 minutes ago, Jatka Bandi said: for example I tried this for 5 character length. but * badalu space pedithe accept cheyatledu. deeniki kooda script rayaala ippudu! =LEFT(A1&"*****",5) Left function deniki? What if A1 is more than 5 characters� Quote
Jatka Bandi Posted December 7, 2021 Author Report Posted December 7, 2021 5 minutes ago, dasari4kntr said: Left function deniki? What if A1 is more than 5 characters� in my case, it can never be. Quote
DalchanChekka Posted December 7, 2021 Report Posted December 7, 2021 9 minutes ago, DummyVariable said: For fun uncle Ā :S Quote
DummyVariable Posted December 7, 2021 Report Posted December 7, 2021 2 minutes ago, DalchanChekka said: :S 1 Quote
dasari4kntr Posted December 7, 2021 Report Posted December 7, 2021 1 minute ago, Jatka Bandi said: in my case, it can never be. Then it will work for you⦠space might not visible in excel until unless you custom format cell (try custom formatter ############) else export to csv and open in notepad and see spaces are there or not⦠ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.