MS Excel 97

service

New Member
Joined
Jan 10, 2005
Messages
43
I need some help please.

I have a spreadsheet and on the front summary sheet I have already set up the spreadsheet to count the Y in the columns I require.

However, the complication is that I only want it to count the Medium and Low risks sites, which are highlighted in another column but not the High risk sites.

can anyone help
thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
How are the Medium and Low risks sites highlighted exactly? Where are the Y's that need counting. It's hard to envisage your layout from your request.
 
Upvote 0
=SUMIF(A1:A3,"medium",B1:B3)+SUMIF(A1:A3,"low",B1:B3)

This presumes you have the list of 'medium', 'high' or 'low' in the range A1:A3, with the corresponding values in B1:B3

Change the ranges to suit

Hope this helps, though I believe you could posisbly write a more elegant formula than this.
 
Upvote 0
In columns C D E F G I have the following info.

High y y n n
High y y y y
Medium y n n n
Low y n n n

I only want to count the Medium and Low Y
 
Upvote 0
The only solution I can offer you is this:

In column H, place the formula

Code:
=IF(C10<>"High",COUNTIF(D10:G10,"y"),0)

copy it down, and then sum that range to give you the Medium and Low total y's.

hope this helps
 
Upvote 0
How about:
Code:
=SUMPRODUCT((C1:C14="Medium")*(D1:G14="y"))+SUMPRODUCT((C1:C14="Low")*(D1:G14="y"))
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,995
Members
448,539
Latest member
alex78

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