Adding up cells which fulfill certain criteria

xl_psychic

Active Member
Joined
Jan 4, 2004
Messages
359
Hi,

I am facing a problem while trying to get an average of numbers.

I have Batch Numbers in Cell Range D16:D16 (1,2,3,4,etc.....) and I have Scores in Cell Range G16:J186 [Call 1 (Column G), Call 2 (Column H), Call 3 (Column I)and Call 4 (Column J)].

I am trying to find out the Average Scores for the entire month for a particular batch in question. I have used the following formula but it doesn't gimme the sum:

=SUMPRODUCT(--('Monthly Snapshot'!$D$16:$D$186=$C$6),--('Monthly Snapshot'!$G$16:$J$186=">=70"),'Monthly Snapshot'!$G$16:$J$186)

Where Monthly Snapshot is the name of the sheet from which the scores are being taken and batch number is being matched.
C6 is the Drop Down list for Batch Number.

The scores in the cell range are between 1 to 20 or either 70, 80, 90 and 100.

How do I go about doing the same.

Please help

Thank you

Rohan Fernandes
 

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.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Maybe:

=SUMPRODUCT(--('Monthly Snapshot'!$D$16:$D$186=$C$6),--('Monthly Snapshot'!$G$16:$J$186>=70),'Monthly Snapshot'!$G$16:$J$186)

Putting quotes around the test results in a search for that string.
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,559
Office Version
  1. 365
Platform
  1. Windows
I kind of got lost in your details, but if you are trying to do a conditional average, would somehting like this work?

=SUMIF(...)/COUNTIF(...)
 
Upvote 0

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
hi cesloan - welcome to the board!

you should start a new thread for new topics, even if they're related to previous ones (in which case, you're better off posting a link in your new thread).
 
Upvote 0

Forum statistics

Threads
1,187,186
Messages
5,962,091
Members
438,583
Latest member
DJTCharts

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