IF formula returning me #VALUE??

Tybudd

Board Regular
Joined
Oct 13, 2009
Messages
60
Doesn't make much since to me
=IF(N9="","",+VLOOKUP(N9,BoxWeight,5,FALSE))*P9

If there is data in the N9 cell, it goes ahead and continues the Vlookup, but it it is blank which I assume "" should always be, I get the #VALUE in the cell.
My logic says after the first logic is true, it should just return as "" and leave the cell blank, but strange enough if I eliminate the *P9 at the end it eliminates the #VALUE when the first argument is true, but of course in this situation if it is false then my equation will be incomplete w/o the *P9, help plz.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Thanks, that does seem to work, but for my knowledge why is it that my formula didn't work, aren't the arguments read from left to right?
 
Upvote 0
The formula should be:

=IF(N9="","",VLOOKUP(N9,BoxWeight,5,FALSE)*P9)

Otherwise, you are multiplying P9 with a text value (i.e., "") while unjustified.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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