#### 1AG

##### New Member
Hello, the following formula is working, partially. I have switched it around and tried other methods, seems so simple, but I believe I am making it more complicated, please help and thank you in advance!

The formula needed is: If cell C3 is equal to 1, then return blank and formula needs to go no further, but if not, then if range C3:F3 are all blank, then return the value in H2 and if not, then if cells D3 or E3 are equal to 1, then return the value in cell H2, if none of these apply, then return, " Needs Attention"

This is one of the formulas I have used.

IF(ISBLANK(C3:F3),H2,IF(OR(D3=1,E3=1),H2,IF(C3=1,"","NeedsAttention")))

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
``=IF(C3=1,"",IF(OR(COUNTA(C3:F3)=0,D3=1,E3=1),H2,"Needs Attention"))``

#### Joe4

If the order you listed is correct, try this:
Excel Formula:
``=IF(C3=1,"",IF(OR(COUNTBLANK(C3:F3)=4,H2,D3=1,E3=1),H2,"Needs Attention"))``

#### Joe4

Rich (BB code):
``=IF(C3=1,"",IF(OR(SUM(D3:F3)=1,COUNTBLANK(C3:E3)=3),H2,"needs Attention"))``
I think the part in red could be a little problematic. And I am not sure what continue that would meet?

#### Fluff

##### MrExcel MVP, Moderator
@Joe4 Should the H2 be included in the Or with your formula?

#### Joe4

@Joe4 Should the H2 be included in the Or with your formula?
Good catch! It was a leftover when I was moving things around. It should not be there, i.e.
Excel Formula:
``=IF(C3=1,"",IF(OR(COUNTBLANK(C3:F3)=4,D3=1,E3=1),H2,"Needs Attention"))``

#### 1AG

##### New Member
Excel Formula:
``=IF(C3=1,"",IF(OR(COUNTA(C3:F3)=0,D3=1,E3=1),H2,"Needs Attention"))``
Thank you!!, Works Perfectly!

#### Fluff

##### MrExcel MVP, Moderator
Glad we could help & thanks for the feedback.

1AG

#### 1AG

##### New Member
Good catch! It was a leftover when I was moving things around. It should not be there, i.e.
Excel Formula:
``=IF(C3=1,"",IF(OR(COUNTBLANK(C3:F3)=4,D3=1,E3=1),H2,"Needs Attention"))``
Thank You! Appreciate the help! This formula will not return blank if Range C3:F3 is blank. The Formula that works is IF(C3=1,"",IF(OR(COUNTA(C3:F3)=0,D3=1,E3=1),H2,"Needs Attention")) Thank you! @Fluff

Replies
1
Views
57
Replies
21
Views
239
Replies
0
Views
81
Replies
5
Views
62
Replies
1
Views
120

1,140,924
Messages
5,703,182
Members
421,280
Latest member
Jaycee01

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