SUM multiple Rows with INDEX / MATCH

spinna2go

New Member
Joined
Jul 5, 2012
Messages
7
Hi,

I have a spreadsheet where i want to check a column for multiple instances of a phrase and then sum the quantities in the adjoining column. The Phrase that appears in Column B is is chosen from a drop down list based on a selection made in Column A. All phrases are found in a table hosted in another sheet called Data1, and for now cell B2 holds the phase in question

Assume top left Cell is A1 and the Sheet name is Data

TypePhraseQuantity
Layer 3 Switch48 Port PoE5
Layer 3 Switch48 Port PoE6

<tbody>
</tbody>






In another sheet (Materials), I'm able to use a single INDEX / MATCH statement that that returns the Quantity to the appropriate cell. What i have been able to achieve is including that INDEX / MATCH. This INDEX Match formula is below.

=INDEX('Data'!$C$2:$C$3,MATCH(Data1!$B$2,'Data'!$B$2:$B$3,0))

This single formula picks up row 2 and returns the value 5.

I'm asking for your expertise to be able to SUM all rows that contain the phrase I'm referencing from Data1 in cell B2 (in this example "48 Port PoE")

Cheers
Darren
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
furthermore, can you nest the SUMIFS? the cell where i need the total value needs to reference a few phrases? So, in Data1 i need to reference cell B2 and C2 and combine the totals from the DATA sheet.
 
Upvote 0
furthermore, can you nest the SUMIFS? the cell where i need the total value needs to reference a few phrases? So, in Data1 i need to reference cell B2 and C2 and combine the totals from the DATA sheet.

Try...

=SUMPRODUCT(SUMIFS(Data!C:C,Data!B:B,B2:C2))
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

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