Populate Multiple Columns from Several Criteria

JamesRo

New Member
Joined
Jun 30, 2022
Messages
23
Office Version
  1. 2021
Platform
  1. Windows
Hi.
I have the following data from SQL database.

Glass_Stock_Orders.xlsx
ABCDEFGHI
1ORDER_NUMBERENTRY_DATEREQUIRED_DATEtblPurchaseOrderItems.ITEM_TYPEtblPurchaseOrderItems.PRODUCTtblPurchaseOrderItems.QUANTITYtblPurchaseOrderItems.WIDTHtblPurchaseOrderItems.HEIGHTDescription
200078416/06/2022 13:3307/07/2022Stock000531321022505mm FLOAT
300083728/06/2022 08:3211/07/2022Stock0006W102321025506mm OPTIWHITE
400053829/04/2022 07:3521/07/2022Stock0006W117450032106mm OPTIWHITE
500053929/04/2022 07:3908/09/2022Stock0006W117450032106mm OPTIWHITE
600083828/06/2022 08:3513/10/2022Stock0006W117450032106mm OPTIWHITE
700084028/06/2022 08:3801/12/2022Stock0006W117450032106mm OPTIWHITE
800078416/06/2022 13:3307/07/2022Stock0010S303210225010mm FLOAT SATIN
900078416/06/2022 13:3307/07/2022Stock0010W263210255010mm OPTIWHITE
1000078416/06/2022 13:3307/07/2022Stock0012223210255012mm FLOAT
1100078416/06/2022 13:3307/07/2022Stock0015W63210255015mm OPTIWHITE
1200084328/06/2022 09:0505/07/2022Stock0110113210225010mm BRONZE FLOAT
1300078416/06/2022 13:3307/07/2022Stock0113223210225010mm GREY FLOAT
1400083728/06/2022 08:3211/07/2022Stock100434321022504mm SILVER
1500078516/06/2022 13:4701/07/2022Stock1006AS27321022506mm ANTIQUE SILVER
1600078516/06/2022 13:4701/07/2022Stock1006ASB27321022506mm ANTIQUE SILVER BRONZE
1700084128/06/2022 08:3922/07/2022Stock100917321025506mm BRONZE SILVER
1800084128/06/2022 08:3922/07/2022Stock101017321025506mm GREY SILVER
1900078516/06/2022 13:4708/07/2022Stock1006AS27321022506mm ANTIQUE SILVER
2000080028/06/2022 08:3214/07/2022Stock100434321022504mm SILVER
2100080128/06/2022 08:3221/07/2022Stock100434321022504mm SILVER
Sheet1


I wish to present the delivery dates as shown in the example below:

Glass_Stock_Orders.xlsx
ABCDEFGHIJKLMNOPQR
1CODEWIDTHHEIGHTEXPECTED (1st)QTYEXPECTED (2nd)QTYEXPECTED (3rd)QTYEXPECTED (4th)QTYEXPECTED (5th)QTY
200053210225007 Jul 2231
3000532102550
40006W4500321021 Jul 2211708 Sep 2211713 Oct 2211701 Dec 22117
50006W3210255011 Jul 22102
60006W32102250
70010S3210225007 Jul 2230
80010W3210255007 Jul 2226
900123210255007 Jul 2222
100015W3210255007 Jul 226
1101103210225005 Jul 2211
1201133210225007 Jul 2222
1310043210225011 Jul 223414 Jul 223421 Jul 2234
141006AS3210225001 Jul 222708 Jul 2227
151006ASB3210225001 Jul 2227
1610093210255022 Jul 2217
1710103210255022 Jul 2217
18
Sheet2



Hope this makes sense, many thanks.
James.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,989
Messages
6,128,149
Members
449,427
Latest member
jahaynes

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