K Kelli Webb Member Aug 31, 2018 #1 Hi, In my example, the formula is working fine except for when "Beyond Min Clearance" is displayed. Instead of giving the first 2 chars I would like it to substitute it for A4. kind regards, Kelli Webb Attachments Substitue or If Function.xlsx 10 KB · Views: 7
Hi, In my example, the formula is working fine except for when "Beyond Min Clearance" is displayed. Instead of giving the first 2 chars I would like it to substitute it for A4. kind regards, Kelli Webb
B bosco_yip Excel Ninja Aug 31, 2018 #2 Maybe, =IFERROR(LEFT(A2,FIND("-",A2)-1),"A4") or, =IFERROR(LEFT(A2,FIND("A",A2)+1),"A4") Regards Bosco
Maybe, =IFERROR(LEFT(A2,FIND("-",A2)-1),"A4") or, =IFERROR(LEFT(A2,FIND("A",A2)+1),"A4") Regards Bosco
P Peter Bartholomew Well-Known Member Aug 31, 2018 #3 Since I never use a short formula when a long one will do = IF( ISNUMBER( FIND( "Beyond", [@[Clearance Category]] ) ), "A4", LEFT( [@[Clearance Category]], 2 ) )
Since I never use a short formula when a long one will do = IF( ISNUMBER( FIND( "Beyond", [@[Clearance Category]] ) ), "A4", LEFT( [@[Clearance Category]], 2 ) )