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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,215,771
Messages
6,126,796
Members
449,337
Latest member
BBV123

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