Listing All corresponding dates for a specific value

FedElecQaEng

New Member
Joined
Sep 25, 2023
Messages
12
Office Version
  1. 2010
Platform
  1. Windows
I do not know how to properly explain this but (please note I am unable to post a mini sheet);
I have a list of several purchase order lines, and date of receipt of the corresponding lines, and the main PO that the lines are a part of. I also have a formula that can get the repeating main PO numbers: Example:
PO LISTINGREC DATEPO REFPOs
378030/14/10/2023378030378030
378030/24/10/2023378030378025
378030/34/10/2023378030385322
378030/44/10/2023378030378023
378025/85/17/2023378025378034
385322/18/17/2023385322378152
378023/16/27/2023378023378179
378034/13/23/2023378034378031
378152/16/21/2023378152378021
378025/23/20/2023378025378037
378025/117/31/2023378025-
378179/13/23/2023378179-
378031/13/22/2023378031-
378025/34/25/2023378025-
378021/26/2/2023378021-
378031/23/22/2023378031-
378037/14/4/2023378037-
378031/34/13/2023378031-
378037/24/4/2023378037-
378031/44/10/2023378031-
378037/34/4/2023378037-
PO REF Formula:
Excel Formula:
=IF(A2 = 0,"TBD",LEFT(A2,FIND("/",A2)-1))
POs Formula:
Excel Formula:
{=IFERROR(INDEX($C$2:$C$22,MATCH(0,COUNTIF($E$1:E1,$C$2:$C$22),0)),"-")}
How can I list next to each cell in the POs column all the dates of receipts for each PO? The list of dates can be either all in one cell or spread out among multiple cells, an example being:
1705423851212.png

Or for example, next to PO 378025 would just be a cell with "5/17/2023, 3/20/2023, 7/31/2023, 4/25/2023"
I would like to do a formula since POs will be added and this is not my entire data.
I would prefer if duplicate dates could be ignored but it will not be an issue if there are duplicate dates listed (PO 378030 would list 4/10/23 four times)
I also do not know how many REC Dates will be for my POs but as long as I can expand the formula I can work with it.
 

Attachments

  • 1705422966259.png
    1705422966259.png
    17.2 KB · Views: 1
  • 1705423675110.png
    1705423675110.png
    35.6 KB · Views: 2

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
How about
Fluff.xlsm
ABCDEFGHIJK
1PO LISTINGREC DATEPO REFPOs
2378030/110/04/202337803037803010/04/202310/04/202310/04/202310/04/2023  
3378030/210/04/202337803037802517/05/202320/03/202331/07/202325/04/2023  
4378030/310/04/202337803038532217/08/2023     
5378030/410/04/202337803037802327/06/2023     
6378025/817/05/202337802537803423/03/2023     
7385322/117/08/202338532237815221/06/2023     
8378023/127/06/202337802337817923/03/2023     
9378034/123/03/202337803437803122/03/202322/03/202313/04/202310/04/2023  
10378152/121/06/202337815237802102/06/2023     
11378025/220/03/202337802537803704/04/202304/04/202304/04/2023   
12378025/1131/07/2023378025
13378179/123/03/2023378179
14378031/122/03/2023378031
15378025/325/04/2023378025
16378021/202/06/2023378021
17378031/222/03/2023378031
18378037/104/04/2023378037
19378031/313/04/2023378031
20378037/204/04/2023378037
21378031/410/04/2023378031
22378037/304/04/2023378037
23
Sheet5
Cell Formulas
RangeFormula
F2:K11F2=IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($B$2:$B$100)/($C$2:$C$100=$E2),COLUMNS($F2:F2))),"")
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDEFGHIJK
1PO LISTINGREC DATEPO REFPOs
2378030/110/04/202337803037803010/04/202310/04/202310/04/202310/04/2023  
3378030/210/04/202337803037802517/05/202320/03/202331/07/202325/04/2023  
4378030/310/04/202337803038532217/08/2023     
5378030/410/04/202337803037802327/06/2023     
6378025/817/05/202337802537803423/03/2023     
7385322/117/08/202338532237815221/06/2023     
8378023/127/06/202337802337817923/03/2023     
9378034/123/03/202337803437803122/03/202322/03/202313/04/202310/04/2023  
10378152/121/06/202337815237802102/06/2023     
11378025/220/03/202337802537803704/04/202304/04/202304/04/2023   
12378025/1131/07/2023378025
13378179/123/03/2023378179
14378031/122/03/2023378031
15378025/325/04/2023378025
16378021/202/06/2023378021
17378031/222/03/2023378031
18378037/104/04/2023378037
19378031/313/04/2023378031
20378037/204/04/2023378037
21378031/410/04/2023378031
22378037/304/04/2023378037
23
Sheet5
Cell Formulas
RangeFormula
F2:K11F2=IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($B$2:$B$100)/($C$2:$C$100=$E2),COLUMNS($F2:F2))),"")
Thank you Fluff, That worked perfectly.

I never knew about the aggregate function. That function looks to be incredibly useful, I will make note of it and learn how it can be used.

Thank you.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,182
Members
449,090
Latest member
bes000

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