Vlookup with Multiple Matches in one column.

EddieD

New Member
Joined
Jun 12, 2014
Messages
30
Office Version
  1. 365
Platform
  1. MacOS
Hi all,

in Column A I have a series of rows of product names. In Column C I have the product values.

Often there are multiple entries of the same product name down the rows.

I am looking to sum all of the values of the products that appear in the rows.

Any suggestions?
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.
If the data is sorted by (or at least grouped by) Product Name then another option is to use Excel's built-in Subtotal feature (on the Data ribbon tab)

Before Subtotals

23 01 28.xlsm
ABC
1ProductDataValue
2Prod 14
3Prod 12
4Prod 15
5Prod 13
6Prod 21
7Prod 32
8Prod 35
9Prod 34
10Prod 47
11Prod 42
12Prod 43
13Prod 45
Subtotal


After

23 01 28.xlsm
ABC
1ProductDataValue
2Prod 14
3Prod 12
4Prod 15
5Prod 13
6Prod 1 Total14
7Prod 21
8Prod 2 Total1
9Prod 32
10Prod 35
11Prod 34
12Prod 3 Total11
13Prod 47
14Prod 42
15Prod 43
16Prod 45
17Prod 4 Total17
18Grand Total43
Subtotal
Cell Formulas
RangeFormula
C6,C17C6=SUBTOTAL(9,C2:C5)
C8C8=SUBTOTAL(9,C7:C7)
C12C12=SUBTOTAL(9,C9:C11)
C18C18=SUBTOTAL(9,C2:C16)


If you want, these sections can be collapsed/expanded using the numbered buttons or the +/- icons at the left

1674874304120.png
 
Upvote 0

Forum statistics

Threads
1,216,178
Messages
6,129,327
Members
449,502
Latest member
TSH8125

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