Simple IF/AND Formula

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,783
Office Version
  1. 365
Platform
  1. Windows
My mind has gone blank! I need a formula to do the following please.

If AD2 equals P380 and AE2 equals Indicator then yes, if not no.

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You havent said whether P380 is a value or a cell reference, Im assuming cell reference, there's an example of a value in the formula

IF(AND(AD2=P380,AE2="indicator"),"Yes","No")
 
Upvote 0
P380 is a value. But when I use the fill handle to go down it increases to P381, P382....?
 
Upvote 0
It sounds like it's a cell

This is a value, it will not change when dragging.
IF(AND(AD2="P380",AE2="indicator"),"Yes","No")

This is a cell, it will change when dragging.
IF(AND(AD2=P380,AE2="indicator"),"Yes","No")
 
Upvote 0
I think Excel thinks it's a cell reference rather than a value.

Try:

IF(AND(AD2="P380",AE2="indicator"),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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