# Nesting IF Functions

#### jcvanhorn

##### New Member
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

#### AlphaFrog

##### MrExcel MVP
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]))``

#### jcvanhorn

##### New Member
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.

Replies
2
Views
118
Replies
2
Views
80
Replies
3
Views
27
Replies
6
Views
180
Replies
1
Views
67

1,127,755
Messages
5,626,671
Members
416,200
Latest member
Pulsar3000

### 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.

### Which adblocker are you using?

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

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