Link to home
Start Free TrialLog in
Avatar of PeterBaileyUk
PeterBaileyUk

asked on

excel sum dependant on conditional formatting

How do I sum a row just where the month is highlighted red?
ie it needs to track the highlight
ee-ex-2.xlsx
Avatar of [ fanpages ]
[ fanpages ]

Your conditional formatting is based on row 11 value being < 80 so you can sum on the same basis, e.g. for row 7

=SUMIF(C$11:M$11,"<80",C7:M7)

copy down

regards, barry
try this with an additionl row of switches. set as 1 to total
ee-ex-2.xlsx
Avatar of PeterBaileyUk

ASKER

@barryhoudini:

I am summing row 9 which manually using autosum (just to check) gives

124      0      205      362      430      0      251      443 = 1815 (each corresponding row 11 is <80

=SUMIF(C$11:L$11,"<80",C8:L8) (if it functions how i think it does) returns 1740 which is not as expected.

ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you I chose this method as it negated the need for switches. thank you.