Formula to sum the volume of a list of items against another item sheet

Kingkoopa

Board Regular
Joined
Aug 7, 2014
Messages
94
Hi Guys,

I am currently on windows 7 and using Excel 2016.

I have 3 sheets with following data :

Sheet 1:

Delivered ShipVolume
Ship120
Ship270
Ship315
Ship430
Ship520
Ship60
Ship750
Ship815
Ship960
Ship105

<tbody>
</tbody>


Sheet 2

Invoiced Ship
Ship2
Ship7
Ship4
Ship3

<tbody>
</tbody>
Sheet 3
Total Invoice: ??

I would like to get the total volume of invoice in sheet 3 base on the list in sheet 2 with volume from sheet 1. So expected result is 165 from the sum of ship2, ship7, ship4 and ship3 in sheet 1.


The challenge is no manipulations are allowed in sheet 1 and 2. So i cant use vlookup in sheet 2 and then sum them up. This is because I am retrieving the data from a source database. So once I press refresh sheet 1 and 2 will revert back to default with new entries.

The formula has to be in sheet 3.

Any ideas? Seems like I need some kind of CSE formula ?

Thank you :biggrin:
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
try this


Book1
ABCDEFG
1Delivered ShipVolumeInvoiced ShipTotal Invoice:165
2Ship120Ship2
3Ship270Ship7
4Ship315Ship4
5Ship430Ship3
6Ship520
7Ship60
8Ship750
9Ship815
10Ship960
11Ship105
Sheet1
Cell Formulas
RangeFormula
G1=SUMPRODUCT(--((A2:A11=D2)+(A2:A11=D3)+(A2:A11=D4)+(A2:A11=D5)),B2:B11)
 
Upvote 0
Hi Alan,

Thanks for the reply! Unfortunately in sheet 2 there are afew thousand lines :(. And the data gets updated daily so the number of data isn't fixed.

Just realise I can't edit my first post anymore. Apologies I just realise the problem is more complicated then before.

There is more than 1 criteria.

sheet 1
CountryDelivered ShipVolume
ChinaShip120
AustraliaShip280
ChinaShip315
GermanyShip430
RussiaShip520
RussiaShip60
USAShip750
USAShip815
AustraliaShip960
AustraliaShip105

<tbody>
</tbody>


sheet 2
CountryInvoice Ship
AustraliaShip2
AustraliaShip10
GermanyShip4
ChinaShip3

<tbody>
</tbody>

sheet 3
CountryTotal Invoice
australia145

<tbody>
</tbody>

Currently I am trying to use a sumifs formula however I am stuck at the 2nd criteria. Below is the formula I have right now : =SUMIFS(Sheet1!C:C,Sheet2!A:A,Sheet3!A2,Sheet1!B:B,Sheet2!B:B)
 
Last edited:
Upvote 0
sheet 2
CountryInvoice Ship
AustraliaShip2
AustraliaShip10
GermanyShip4
ChinaShip3

<tbody>
</tbody>

sheet 3
CountryTotal Invoice
australia145

<tbody>
</tbody>

Currently I am trying to use a sumifs formula however I am stuck at the 2nd criteria. Below is the formula I have right now : =SUMIFS(Sheet1!C:C,Sheet2!A:A,Sheet3!A2,Sheet1!B:B,Sheet2!B:B)

shouldn't that be 85?
 
Upvote 0
this is what I came up with, H2:I5 are direct copy from sheet2


Book1
ABCDEFGHIJK
1CountryDelivered ShipVolumeCountryInvoice ShipCountryTotal Invoice
2ChinaShip120AustraliaShip2AustraliaShip28085
3AustraliaShip280AustraliaShip10AustraliaShip105
4ChinaShip315GermanyShip4GermanyShip43030
5GermanyShip430ChinaShip3ChinaShip31515
6RussiaShip520
7RussiaShip60
8USAShip750
9USAShip815
10AustraliaShip960
11AustraliaShip105
Sheet2
Cell Formulas
RangeFormula
J2=SUMPRODUCT(--($A$2:$A$11&$B$2:$B$11=H2&I2),$C$2:$C$11)
K2=IF(COUNTIF(H2:$H$2,H2)=1,SUMIF($H$2:$H$5,H2,$J$2:$J$5),"")
 
Upvote 0

Forum statistics

Threads
1,214,586
Messages
6,120,402
Members
448,958
Latest member
Hat4Life

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