Passing Blank Values

dmill8023

Board Regular
Joined
Aug 24, 2012
Messages
60
Good afternoon all,

Right before the weekend I thought I'd toss this question out. Basically, I have two columns where I have costs. Restaurant 1) is in Column V and Restaurant 2) is in Column X. Sometimes a restaurant will not return a cost, so my IF function of =IF(V9<X9,"A","B") the cell that is blank is the value returned.

Although technically no cost is the lowest cost between the cells it is not the desired logic. This must be simple but please help me build in the parameters to ignore a blank cell.

Thank you!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
If one of cells V9 and X9 is blank or contains "" and the other contains a number, then the MIN function should return the number from the non-blank cell. So,
=MIN(V9,X9)
If both cells are blank this will return 0.
 
Upvote 0
I am sorry if I was not clear enough. Between V and X I need the lowest cost. The MIN Function selects the right value. My IF function is what's not pulling correct. If X has a cost and V does not, it is saying V is the lowest cost between the two. But, since there is no cost in V it should not be counted and only X should be looked at. Right now if V does not have a cost my IF statement =IF($V8<$X8,"A","B") is returning A but in all actuality should be returning B because it has a cost. Does that make sense?
 
Upvote 0
Apoligies, pressed enter before i finished. The below formula should work:

=IF(AND(V8>1,X8>1),IF(V8<X8,V8,IF(X8<V8,X8)),"")
 
Upvote 0
sorry, my computer is playing up:

The formula you need is =IF(AND(V8>1,X8>1),IF(V8<X8,V8,IF(X8<V8,X8)),"")

This will you the lowest value
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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