How to Expand Components of an Assembly while preserving Dates

Vog2654

New Member
Joined
May 2, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a list of various assemblies sold at various points in time. I want to convert the list of assemblies sold into a list of each assembly's respective components sold while preserving the date in which these components were sold. Is there a formula I can use to get my two sets of data into the "DESIRED END PRODUCT" format?


ASSEMBLY RAW SALES DATA
DateAssembly IDAssembly QTY SoldComponent IDComponent Qty Per AssemblyTotal QTY Component Sold
2/16/202432391520
5/17/202429222940
2/20/202432427210
2/5/202432221940
1/29/202432123060
10/10/202434104810
7/31/202434843010

ASSEMBLY + COMPONENT RAW DATA


Assembly IDComponent IDComponent Qty Per Assembly
323915636401
323915521491
323915643651
292229639174
292229636398
324272636398
324272639174
322219636404
322219639181
321230636402
321230639181
341048640401
341048640821
348430636408
348430639724

DESIRED END PRODUCT


DateAssembly IDAssembly QTY SoldComponent IDComponent Qty Per AssemblyTotal QTY Component Sold
2/16/20243239152#N/A
2/16/20246364012
2/16/20245214912
2/16/20246436512
5/17/20242922294#N/A
5/17/202463917416
5/17/202463639832
2/20/20243242721#N/A
2/20/20246363988
2/20/20246391744
2/5/20243222194#N/A
2/5/202463640416
2/5/20246391814
1/29/20243212306#N/A
1/29/202463640212
1/29/20246391816
10/10/20243410481#N/A
10/10/20246404011
10/10/20246408211
7/31/20243484301#N/A
7/31/20246364088
7/31/2024 6397244

The rows with the #N/A in them are not critical to be in the solution. I just need to know how much of each component was sold on each date.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hello, would it not be better like this (please adjust ranges):

Excel Formula:
=LET(
a,HSTACK(XLOOKUP(A15:A29,B3:B9,A3:A9),A15:C29,XLOOKUP(A15:A29,B3:B9,C3:C9),XLOOKUP(A15:A29,B3:B9,C3:C9)*C15:C29),
CHOOSECOLS(a,1,2,5,3,4,6))
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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