CountIf or SumIf

mnuri

New Member
Joined
May 10, 2010
Messages
9
I am trying to figure out how to search a range of cells (F8:F300) for a name (B8), for multiple occurences, and everytime the name is found, take the value from the adjacent cell in column I, and sum it up.

Example
G H I
Name1 X .5
Name2 Y 1
Name1 Z 1
Name3 X .5
Name1 Y 2

Find all the occurences of Name 1, and sum up all the values of column I (3.5). Name 1 is dynamic and depends on cell B8. Thanks for your help.

Mussa
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You say the range is F8:F300 but then say the Name is in column G.
I'll assume column G.

=SUMPRODUCT((G8:G300=B8)*(I8:I300))
 
Upvote 0
Try...

=SUMIF($F$8:$F$300,B8,$I$8:$I$300)

Adjust the ranges, accordingly.
 
Upvote 0
Both of those suggestions worked great, and i meant Column G8:G300.. dont know why i said F...

THANK YOU!!!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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