Need formula to consolidate data

emmac

New Member
Joined
May 6, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
The top table is my sample data and the bottom table is my desired outcome.

I can't figure out a formula to pull the VolumeUsed data for 1 location ID across the associated columns for the item numbers.
I tried index, match, and could only get the first item number for that location to populate.
To pull this data currently, I have had to make separate sheets for each item number and then VLOOKUP, but when I have 9 item numbers and 150 locations I need to summarize, making individual sheets for each item takes too much time.

Am I misunderstanding indexing / matching?

Sample data:
Location ID #Item NumberVolumeUsedAmountUsedWeek Ending
1
1234​
0.5​
45​
5/5/2024​
1
1235​
1​
200​
5/5/2024​
1
1236​
1.5​
37.5​
5/5/2024​
1
1237​
0.25​
15​
5/5/2024​
2
1234​
0.25​
22.5​
5/5/2024​
2
1235​
1.25​
250​
5/5/2024​
2
1236​
0.5​
12.5​
5/5/2024​
2
1237​
0.4​
24​
5/5/2024​
3
1234​
2​
180​
5/5/2024​
3
1235​
4​
800​
5/5/2024​
3
1236​
1.25​
31.25​
5/5/2024​
3
1237​
1.5​
90​
5/5/2024​
4
1234​
2​
180​
5/5/2024​
4
1235​
3.5​
700​
5/5/2024​
4
1236​
1.75​
43.75​
5/5/2024​
4
1237​
2​
120​
5/5/2024​
5
1234​
0.25​
22.5​
5/5/2024​
5
1235​
0.75​
150​
5/5/2024​
5
1236​
1​
25​
5/5/2024​
5
1237​
0.2​
12​
5/5/2024​


Desired outcome:
Volume Used Week Ending 5/5/24
Item Number
Location ID #
1234​
1235​
1236​
1237​
1
0.5​
1​
1.5​
0.25​
2
0.25​
1.25​
0.5​
0.4​
3
2​
4​
1.25​
1.5​
4
2​
3.5​
1.75​
2​
5
0.25​
0.75​
1​
0.2​
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCDEFGHIJK
1Location ID #Item NumberVolumeUsedAmountUsedWeek Ending1234123512361237
2112340.54505/05/202410.511.50.25
311235120005/05/202420.251.250.50.4
4112361.537.505/05/20243241.251.5
5112370.251505/05/2024423.51.752
6212340.2522.505/05/202450.250.7510.2
7212351.2525005/05/2024
8212360.512.505/05/2024
9212370.42405/05/2024
1031234218005/05/2024
1131235480005/05/2024
12312361.2531.2505/05/2024
13312371.59005/05/2024
1441234218005/05/2024
15412353.570005/05/2024
16412361.7543.7505/05/2024
1741237212005/05/2024
18512340.2522.505/05/2024
19512350.7515005/05/2024
205123612505/05/2024
21512370.21205/05/2024
Sheet6
Cell Formulas
RangeFormula
H1:K1H1=TOROW(UNIQUE(B2:B21))
G2:G6G2=UNIQUE(A2:A21)
H2:K6H2=SUMIFS(C:C,A:A,G2#,B:B,H1#)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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