lookup and sum

BT690

New Member
Joined
May 24, 2013
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi there

Simple task which has been bugging me for days. Keep coming back to it with a possible solution but it fails.

Two sheets of data
Sheet 1 has inventory
Sheet 2 has product
I need to update the sheet 2 product with the sheet 1 inventory as per example below

Have tried xlookup, sumif, index, match but cant find the solution. next step is to spend a day writing it down on paper and doing it manual then input results into a sheet.

Many thanks in advance.

Sheet 1Sheet 2
IDProductQtyIDApplesBananaOrangesPearsTotal
100Apples6100
101Oranges4101
101Pears5102
103Apples1103
103Pears5104
103Oranges2105
105Oranges4106
106Apples8107
107Oranges2108
107Oranges6109
107Apples4110
109Pears4111
109Oranges6112
110Pears7113
111Pears4114
112Apples2115
113Apples8116
113Pears1117
113Oranges9118
115Banana5119
115Oranges2120
116Apples7
116Banana2
117Apples5
119Apples2
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi BT690,

If this is the first few rows of Sheet1
Book1
ABC
1IDProductQty
2100Apples6
3101Oranges4
4101Pears5
5103Apples1
6103Pears5
7103Oranges2
Sheet1


...then does this work on Sheet2?

Book1
ABCDEF
1IDApplesBananaOrangesPearsTotal
210060000
310100450
410200000
510310250
610400000
710500400
810680000
910740800
1010800000
1110900640
1211000070
1311100040
1411220000
1511380910
1611400000
1711505200
1811672000
1911750000
2011800000
2111920000
2212000000
Sheet2
Cell Formulas
RangeFormula
B2:F22B2=SUMIFS(Sheet1!$C:$C,Sheet1!$B:$B,B$1,Sheet1!$A:$A,$A2)
 
Upvote 0
Hi Toadstool, yes that works thanks. One of my attempts must have been so close as that was my intent. Maybe I didn't have the absolute reference quite right??

Cheers
BT
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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