Nesting IF Functions

jcvanhorn

New Member
Joined
Jul 14, 2011
Messages
2
I'm trying to solve the following problem and am getting close but I'm not quite there. Any insight would be much appreciated.

What I'd like the function to do:

if j77 equals "Yes" AND there is text in j74 AND text in J75, return "AM/PM"
if j77 equals "Yes" AND there is text in j74 but none in j75, return text in j74
if j77 equals "Yes" and there is no text in j74 but j75 contains text, return text in j75
if j77 equals "Yes" but there is no text in j74 AND no text in j75, return "No Indication"
If j77 is blank, return a blank cell instead of FALSE

I can get everything to work appropriately except the last one, which is currently returning FALSE. If I could change that to a blank cell, it would be awesome.

Thank you for the help!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
The red part is if J77 is not blank and not Yes

Code:
=IF(J77="","",IF(J77="Yes",IF(J74<>"",IF(J75<>"","AM/PM",J74),IF(J75<>"",J75,"No Indication")),[COLOR="Red"]"J77 not blank and not 'Yes'"[/COLOR]))
 
Upvote 0
That works. Thank you!

I was using IF AND but this works great. I like how it allows for the ability to catch if there is something else in the J77 cell.

Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,519
Messages
6,125,297
Members
449,218
Latest member
Excel Master

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