IF And?

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,976
Office Version
  1. 365
Platform
  1. MacOS
The following formula is in CF, but is not setup correctly. It is not proving true.

Formula:
=IF(AND(Y38="",X38<>"","Cost?",""))

If Y38 is blank
If X38 is not blank
then Cost?
else blank

thanks

ds
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
doug

You say this is in CF, do you mean conditional formatting?
 
Upvote 0
Yes.... sorry thought that was the standard defacto abbreviation
 
Upvote 0
HI DougStroud,

also if you are trying to return Cost if the x and y values are true you need to close the AND bracket first.

=IF(AND(Y38="",X38<>""),"Cost?","")

Hope it helps

Richard
 
Upvote 0
Hi Erik,
long time since I have chatted w/ you.

I had that particular formula working. But I wanted to add the condition IF, I am unable to see how this is to work.
 
Upvote 0
doug

In the formula you posted you seem to want to return either Cost? or "".

Now that might work in CF, but probably won't.

When using formulas in CF Excel excepts either a TRUE or FALSE value.

Try Erik's formula.
 
Upvote 0
Thanks Norie. No it does not work in CF, you are correct.

Erik-- as I wrote previously, I had the same formula you showed me already. I wanted to add the IF. But as Norie pointed out, this is not correct.

Thanks both of you

Doug
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,704
Members
453,316
Latest member
mani_mech031

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