Excel equation: If nested (true and False formula)

zyko_234

New Member
Joined
Mar 18, 2019
Messages
1
Hi,

I have an equation below that should return a 1 if true (which is working) and a 0 otherwise for any other values (which is working partially). So for some items it is returning 0 but for others it is returning a FALSE which should be a 0 if the equation was working correctly.
[FONT=&quot]
=(IF(EXACT(BQ48,"OLD"),IF(EXACT(BW48,"testoriginal"),1,0)))[/FONT]

Any help is appreciated!

Thanks!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the Board!

Try:

=IF(EXACT(BQ48,"OLD"),IF(EXACT(BW48,"testoriginal"),1,0),0)

or

=IF(AND(EXACT(BQ48,"OLD"),EXACT(BW48,"testoriginal")),1,0)
 
Upvote 0
If they both need to be true, try
=IF(AND(EXACT(BQ48,"OLD"),EXACT(BW48,"testoriginal")),1,0)
 
Upvote 0
If you're comfortable with Boolean algebra, you could even use:

=EXACT(BQ48,"OLD")*EXACT(BW48,"testoriginal")
 
Upvote 0

Forum statistics

Threads
1,224,906
Messages
6,181,665
Members
453,059
Latest member
jkevin

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