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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,547
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.
 

patrickmuldoon99

Active Member
Joined
Jun 27, 2006
Messages
345
=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.
 

service

New Member
Joined
Jan 10, 2005
Messages
43

ADVERTISEMENT

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
 

patrickmuldoon99

Active Member
Joined
Jun 27, 2006
Messages
345
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
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,547

ADVERTISEMENT

How about:
Code:
=SUMPRODUCT((C1:C14="Medium")*(D1:G14="y"))+SUMPRODUCT((C1:C14="Low")*(D1:G14="y"))
 

Forum statistics

Threads
1,136,928
Messages
5,678,623
Members
419,776
Latest member
mikelowski

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
Top