Err504 in If formula

Col C Col D
M
L/M L/M
B Brisk
E
E/L E/L
M
L

If / in string enter / or if B enter Brisk or if E or L or M enter null

=IF(MID(C5,2,1)="/",C5,C5=“B”,“Brisk”,"") err504

If I ignore B requirement:-

=MID(C5,2,1)="/",C5,"")

works for L/M or E/L

=IF(C5=“B”,“Brisk”,"")

works for B

Any advice please?

Sorry but my tabs won’t show in this post?

B should have tab to Brisk i.e. B is in Col C and Brisk is in Col D

1 Like

=IF(MID(C1,2,1)="/",C1,IF(C1="B","Brisk",""))

1 Like

Thank you Proper nested If

1 Like