If statement problem

jgold20

Board Regular
Joined
Feb 4, 2018
Messages
135
=IF(OR(A4="WL"),("0"),0) +
IF(OR(A4="BL",A4="DL",A4="LL",A4="LGL",A4="NL",A4="MDL",A4="RL",A4="WGL",A4="XL",
A4="A",A4="B",A4="CB",A4="D",A4="K",A4="V",A4="X",
A4="H",A4="L",A4="LG",A4="M",A4="MD",
A4="N",A4="Q",A4="R",A4="T",A4="W",A4="WG",A4="Y"),(A7*B7),0)

In the above statement, only BL, DL, H, LGL, MD, MDL, NL and X are performing properly. All of the others do not return any results. Any suggestions?
 
Just put those formulas in a cell anywhere on the worksheet. What are the results?
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
=A4="A" returned false
=CLEAN(TRIM(A4))="A" returned true

Ok so thats your problem. You need to check your drop down values. Id use the clean trim formula on those values and copy/ paste the result over the top.
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,970
Members
449,137
Latest member
yeti1016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top