Easy Formula - Pros Please help :)

GLOJACK

New Member
Joined
Sep 16, 2020
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello I am looking for help with a formula . I have a list of multiple ready dates and quantities for a single part, example

Part ABC 25pcs 2/21
Part ABC 13pcs 1/21
Part ABC 5pcs 1/3
Part BCD 30pcs 1/24
Part BCD 30pcs 3/2

I rolled up it to a pviot table , I am looking to create a formula where it can sum all the dates and qtys into one row so I can do a vlookup and for example it will say for part ABC : 25pcs 2/21, 13pcs 1/21, 5pcs 1/3

I was trying to do an if formula w/ concatenate based on the below pivot table... anyone know a better way to do this ?
Pivot example
Part #Sum of Qty Committed
ABC
36​
02-21
25​
01-03
11​
BCD
75​
02-21
30​
02-14
15​
01-24
15​
DCB
15​
01-03
5​
01-17
10​
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Or via the horizontal pivot ?
Part #01-0201-0301-2402-2102-1402-21
ABC
11​
25​
BCD
15​
15​
15​
30​
DCB
5​
 
Upvote 0
Will this work for you?

ABCDEF
1PartPcsDate
2ABC25Feb 21
3ABC13Jan 21
4ABC5Mar 23ABC25 pcs 2/1,13 pcs 1/1,5 pcs 3/1
5BCD30Jan 24BCD30 pcs 1/1,30 pcs 2/3
6BCD30Feb 23
7
Sheet1
Cell Formulas
RangeFormula
E4:E5E4=UNIQUE(A2:A6)
F4:F5F4=BYROW(E4#,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
Dynamic array formulas.
 
Upvote 0
Will this work for you?

ABCDEF
1PartPcsDate
2ABC25Feb 21
3ABC13Jan 21
4ABC5Mar 23ABC25 pcs 2/1,13 pcs 1/1,5 pcs 3/1
5BCD30Jan 24BCD30 pcs 1/1,30 pcs 2/3
6BCD30Feb 23
7
Sheet1
Cell Formulas
RangeFormula
E4:E5E4=UNIQUE(A2:A6)
F4:F5F4=BYROW(E4#,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
Dynamic array formulas.
Its perfect thank you ! You are a genius I could not have come up with such a perfect formula. Thank you !!!
 
Upvote 0
Will this work for you?

ABCDEF
1PartPcsDate
2ABC25Feb 21
3ABC13Jan 21
4ABC5Mar 23ABC25 pcs 2/1,13 pcs 1/1,5 pcs 3/1
5BCD30Jan 24BCD30 pcs 1/1,30 pcs 2/3
6BCD30Feb 23
7
Sheet1
Cell Formulas
RangeFormula
E4:E5E4=UNIQUE(A2:A6)
F4:F5F4=BYROW(E4#,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
Dynamic array formulas.
Sorry I need some addt help, it worked in my test spreadheet but now when I try to use it in my report I am getting the below error, seems to be the r it doesnt like and when I remove the r I get a name error
 

Attachments

  • Untitled.png
    Untitled.png
    34.2 KB · Views: 10
Upvote 0
I'm not sure what you mean about removing r? Presumably before that, you're getting a #REF! error, as shown, because your formula is pointing to an array A2# which doesn't exist.

ABCDEFGHI
1
2A1129 Dec 2023#REF!11 pcs 12/29,15 pcs 2/2
3B2516 Feb 202425 pcs 2/16,15 pcs 2/9
4C1519 Jan 202415 pcs 1/19
5A152 Feb 202411 pcs 12/29,15 pcs 2/2
6B159 Feb 202425 pcs 2/16,15 pcs 2/9
Sheet1
Cell Formulas
RangeFormula
H2H2=BYROW(A2#,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
I2:I6I2=BYROW(A2:A6,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
Dynamic array formulas.

For just the uniques:
ABCDEFGHI
1
2A1129 Dec 2023A11 pcs 12/29,15 pcs 2/2
3B2516 Feb 2024B25 pcs 2/16,15 pcs 2/9
4C1519 Jan 2024C15 pcs 1/19
5A152 Feb 2024
6B159 Feb 2024
Sheet1
Cell Formulas
RangeFormula
H2:H4H2=UNIQUE(A2:A6)
I2:I4I2=BYROW(H2#,LAMBDA(r,TEXTJOIN(",",,FILTER(B2:B6&" pcs "&TEXT(C2:C6,"m/d"),A2:A6=r))))
Dynamic array formulas.
 
Upvote 0
My formula on my file pointed to the correct cell. Its weird, it worked fine on my home computer but wouldn't work on my work computer. Last night I took the file from my work computer and transferred it to my home and the formula was fine.

Then this AM did the same thing and moved the file to my work computer, it errors out the whole formula, do you think that maybe its the excel version ? On my work computer it takes the same file and adds a xlfn in front and changes it to a name error - see example below
 

Attachments

  • Untitled.png
    Untitled.png
    16.2 KB · Views: 6
Upvote 0
Ok seems its the excel version excel xlfn error " As per this Microsoft document the error appears when the workbook contains a function not available in your Excel version. The only solution is to remove unsupported functions (or updating your Excel)."
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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