W webmax Member Nov 6, 2013 #1 Hi I want a formula that if the length of the character is less than 12 digits then it will show as space for the each character up to 12 digit. For example if the word is "Life" then then Total Length of the word is 4 then the remaining 8 character is show as 8 spaces.
Hi I want a formula that if the length of the character is less than 12 digits then it will show as space for the each character up to 12 digit. For example if the word is "Life" then then Total Length of the word is 4 then the remaining 8 character is show as 8 spaces.
R Ravi Verma Member Nov 6, 2013 #2 what if the length is more than 12 digits ? where exactly you need to show blanks in case the length is less than 12 digits ?
what if the length is more than 12 digits ? where exactly you need to show blanks in case the length is less than 12 digits ?
Faseeh Excel Ninja Nov 6, 2013 #4 Hi Ravi, Try this with your data in A1, replace "*" with space " " if you like: Code: =IF(LEN(A1)<8,A1&REPT("*",8-LEN(A1)),A1)
Hi Ravi, Try this with your data in A1, replace "*" with space " " if you like: Code: =IF(LEN(A1)<8,A1&REPT("*",8-LEN(A1)),A1)
R Ravi Verma Member Nov 6, 2013 #6 Faseeh said: Hi Ravi, Try this with your data in A1, replace "*" with space " " if you like: Code: =IF(LEN(A1)<8,A1&REPT("*",8-LEN(A1)),A1) Click to expand... Hi Faseeh, Please replace 8 with 12... its works excellent..
Faseeh said: Hi Ravi, Try this with your data in A1, replace "*" with space " " if you like: Code: =IF(LEN(A1)<8,A1&REPT("*",8-LEN(A1)),A1) Click to expand... Hi Faseeh, Please replace 8 with 12... its works excellent..
R Ravi Verma Member Nov 6, 2013 #7 Sajan said: Here is one more approach: =LEFT(A1&REPT(" ",12),12) Click to expand... Perfect Sajan
shrivallabha Excel Ninja Nov 6, 2013 #10 Deb, Only in theory. That is one character less but add MIN & CONCAT functions .