Formulas to not be counted as objects in a cell

katiapro93

Board Regular
Joined
Jun 25, 2009
Messages
140
I have two rows that I want to match with a simple "IF" formula, but it is not working on account that on row is full of formulas bring back specific info from another sheet and the 2nd row is currency I write in. Any suggestions on how I can make excel think that the first row is empty?

1st row 2nd row 3rd row
=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),"$0.00") $0.00 =if(1st row=2nd row,"Y","N")
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
The short answer is you can't.
If the cell contains a formula, then it in fact contains a formula.
There is nothing you can do in another formula to make it consider the original cell with a formula as Empty.

Basically, a formula cannot return 'Nothing', it MUST return Something...

The closest we can get to making a formula return as Empty, is to make it return a 0 length Text String ""
=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),"")

But that is still not Empty, it's a TEXT string.

Then you can do
=If(1st Row = "","N","Y")
 
Upvote 0
Hi,

Not sure if this helps:


Excel 2010
ABC
1$0.00 
2$0.00$0.00$0.00
3YNN
4
5A1 is "$0.00" as result of formulaB1 is Truly blankC1 is "" as result of formula
Sheet1
Cell Formulas
RangeFormula
A1="$0.00"
A3=IF(A1="","N",IF(A1+0=A2,"Y",""))
C1=""
 
Last edited:
Upvote 0
If you want this formula
=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),"$0.00")
To match the 0 you actually typed by hand in the other cell, just put a 0 without quote marks

=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),0)
 
Upvote 0
If you want this formula
=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),"$0.00")
To match the 0 you actually typed by hand in the other cell, just put a 0 without quote marks

=if($I3090="Y",vlookup($H3090,Pricelist!$A:$F,6,false),0)

Yes, that would be the correct way to do it, and you can still have that cell formatted as Currency.
Then you can just use your formula in OP, =if(1st row=2nd row,"Y","N")


Excel 2010
D
1$0.00
2$0.00
3Y
4
5Your formula in OP
Sheet1
Cell Formulas
RangeFormula
D1=0
D3=IF(D1=D2,"Y","N")
 
Upvote 0
Thank you guys, both answers were interesting and I learned new things. I actually did what Jonmo1 said, just put a 0 instead of "0" or "$0.00" and it gave me what I needed. Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,125
Members
452,303
Latest member
c4cstore

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