IF AND formula generating a False Error

johnrobgray

New Member
Joined
Aug 21, 2017
Messages
43
Office Version
  1. 2013
Platform
  1. Windows
Hi

I have the below formula

=IFERROR(IF((AND(K11="BT",L11="New Sale")),"1"),0)

I'm trying to get it to count when 2 cells have the above and when it doesn't meet it just presents a zero.

I've tried this and it still generates a FALSE error.

Any idea where I might be going wrong?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=IF(AND(K11="BT",L11="New Sale"),1,0)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Every IF function has 3 arguments:
- the condition to check
- what to return if true
- what to return if false

If you leave off the third argument (like you did), it will default to return FALSE, if the condition is not met.
There is no need for an IFERROR on this formula.
 
Upvote 0
without the if
N.B. True evaluates to 1 and False evaluates to 0

=--AND(K11="BT",L11="New Sale")
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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