Too many arguments?

DanL77

New Member
Joined
Jul 3, 2018
Messages
2
Hi, I'm trying to complete a formula which uses criteria to set a red, amber or green status. The rule I want to create is:

> If there are any blanks, show blank
> If all selected cells are Yes, show green
> If there are any "no" cells, show red
> For all else, show amber

Here's the formula I'm trying and being told there are too many arguments. Any help appreciated.

Thanks

Dan

=if(or(isblank(C5,D5,E5,F5,G5)),"",if(and(C5=C20,D5=D20,E5=E20,F5=F20,G5=G20),"Green",if(or(C5=C21,D5=D21,E5=E21,F5=F21,G5=G21),"Red","Amber"
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Book1
CDEFGH
5YesMaybeYesMaybeYesAmber
6YesYesYesYesYesGreen
7NoNoNoNoNoRed
8YesNoYes
9YesMaybeMaybeYesNoRed
10
11
12
13
14
15
16
17
18
19
20Yes
21No
Sheet1
Cell Formulas
RangeFormula
H5=IF(COUNTA($C5:$G5)<5,"",IF(COUNTIF($C5:$G5,$G$20)=5,"Green",IF(COUNTIF($C5:$G5,$F$21)>0,"Red","Amber")))


WBD
 
Upvote 0
you need to change or(isblank(C5,D5,E5,F5,G5) to

or(isblank(C5),isblank(D5),..etc)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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