Try this formula:
![]()
=IF(AND(F2="100000000000000",E2="02"),"63"&B2&C2,IF(AND(F2="010000000000000",E3="06" ),"63"&B3&C3,""))
Try this formula:
![]()
=IF(AND(F2="100000000000000",E2="02"),"63"&B2&C2,IF(AND(F2="010000000000000",E3="06" ),"63"&B3&C3,""))
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
thank you.
but what if i have 9 "IF" statements? like:
can i make it up to 15 "IF" statements?![]()
=IF(AND(X2="100000000000000",E2="01"),"63"&B2&C2,"",IF(AND(X2="010000000000000",E3="02"),"63"&B3&C3,"",IF(AND(X2="001000000000000",E3="03"),"63"&B4&C4,"",IF(AND(X2="000100000000000",E3="04"),"63"&B5&C5,"",IF(AND(X2="000010000000000",E3="05"),"63"&B6&C6,"",IF(AND(X2="000001000000000",E3="06"),"63"&B7&C7,"",IF(AND(X2="000000100000000",E3="07"),"63"&B8&C8,"",IF(AND(X2="000000010000000",E3="08"),"63"&B9&C9,"",IF(AND(X2="000000001000000",E3="09"),"63"&B10&C10,""))
You can't nets more than 7 IF's, but you can name formulas, which will allow you to beat the limitation
http://cpearson.com/excel/nested.htm
Try this instead....Originally Posted by dadm20
![]()
=IF(FIND("1",X2)=INDIRECT("E"&FIND("1",X2)+1)+0,"63"&INDIRECT("B"&FIND("1",X2)+1)&INDIRECT("C"&FIND("1",X2)+1),"")
Thanks a lot guys, i really appreciate all your effort.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks