Excel Nested IF Function with AND/OR -
i have tied quite few combinations of and/or functions , have had no luck.
here need create:
in column b, have firm id's, range 2 numeric characters 6 numeric characters.
i need every letter "i" , number of zeros before each firm id in column b.
-so if firm id has 2 numbers, need add "i0000" left of firms id in column b. end result "i0000##", totalling 7 characters. -if firm id has 3 numbers, need add "i000" left of firms id in column b, end result "i000###", totalling 7 characters. -and on , fourth 4,5, , 6 character firm id's (the largest firm id have 6 characters, need letter "i" added)
i trying use along these lines =if(len(b2=6),concatenate("i",b2),if(len(b2=5),concatenate("i0",b2),if(len---------you idea. wasn't pretty, , added "i" firm id's.
i realize require use of either or( or and( function. tried write no avail. visual learner, , don't mean troll reading this, if not trouble me see actual function written out, can compare incorrect function , see mistakes.
just pointing me excel training site and/or functions not me.
for formula solution, use text function:
=text(b2,"i000000") alternately, select column b, right-click -> format cells -> custom -> type i000000 -> ok
Comments
Post a Comment