Mar 01 2022 12:56 AM
Good Afternoon
In the table below. I would like to:
Any help is very much appreciated.
Qty | Item | Length |
4 | 100 x 133 x 20 | 5559 |
1 | 100 x 133 x 25 | 5349 |
1 | 100 x 133 x 15 | 2602 |
2 | 100 x 133 x 30 | 2602 |
2 | 100 x 133 x 20 | 5559 |
2 | 100 x 133 x 25 | 5349 |
7 | 100 x 133 x 15 | 2602 |
2 | 100 x 133 x 30 | 2602 |
Mar 01 2022 01:26 AM
Mar 01 2022 01:42 AM
Mar 01 2022 03:35 AM
Mar 01 2022 03:39 AM
=LET(qtyrqd,A2:A9,
item,UNIQUE(B2:C9),
itemdescription,FILTER(item,{1,0}),
itemqty,FILTER(SUMIF(B2:B9,item,qtyrqd),{1,0}),
itemlength,FILTER(UNIQUE(B2:C9),{0,1}),
itemqtylength,itemqty*itemlength,
result,CHOOSE({1,2,3},itemqty,itemdescription,itemqtylength),
result)
Is this what you are looking for? This formula seems to work in my spreadsheet as shown in the attached file.
Mar 01 2022 05:00 AM
Mar 02 2022 12:40 AM
Mar 02 2022 01:04 AM
Mar 02 2022 02:21 PM
Can you share your actual spreadsheet with all columns and rows including the empty rows?
Mar 03 2022 01:23 AM
The spreadheet is attached as requested.
The issues are detailed in a previous post and it would assist if the items were tabulated if possible from smallest size to largest size.
Many thanks for your assistance with this request.
Mar 03 2022 02:07 AM
2 | 100 x 10 | FB | 550 |
2 | 100 x 10 | FB | 550 |
1 | 100 x 10 | FB | 560 |
1 | 100 x 10 | FB | 560 |
In your actual spreadsheet there are same items with different length, for example 100 x 10 FB with 550 and 560.
Which is your expected result? Do you want to return:
4 100 x 10 FB 2200
2 100 x 10 FB 1120
or
6 100 x 10 FB 3320
Mar 03 2022 03:51 AM
Mar 04 2022 04:51 AM
Solution=LET(qtyrqd,A6:A416,
item,B6:B416,
length,D6:D416,
itemlength,UNIQUE(B6:D416),
itemonlyitem,FILTER(UNIQUE(B6:D416),{1,0,0}),
itemConly,FILTER(UNIQUE(B6:D416),{0,1,0}),
itemonlylength,FILTER(UNIQUE(B6:D416),{0,0,1}),
itemlengthqty,FILTER(SUMIFS(qtyrqd,item,itemlength,length,itemonlylength),{1,0,0}),
multiply,itemlengthqty*itemonlylength,
result,CHOOSE({1,2,3,4,5},itemlengthqty,itemonlyitem,itemConly,itemonlylength,multiply),
finalresult,SORT(FILTER(result,itemlengthqty>0),2),
finalresult)
This formula seems to return the expected result in my spreadsheet.
Mar 07 2022 12:44 AM
Mar 04 2022 04:51 AM
Solution=LET(qtyrqd,A6:A416,
item,B6:B416,
length,D6:D416,
itemlength,UNIQUE(B6:D416),
itemonlyitem,FILTER(UNIQUE(B6:D416),{1,0,0}),
itemConly,FILTER(UNIQUE(B6:D416),{0,1,0}),
itemonlylength,FILTER(UNIQUE(B6:D416),{0,0,1}),
itemlengthqty,FILTER(SUMIFS(qtyrqd,item,itemlength,length,itemonlylength),{1,0,0}),
multiply,itemlengthqty*itemonlylength,
result,CHOOSE({1,2,3,4,5},itemlengthqty,itemonlyitem,itemConly,itemonlylength,multiply),
finalresult,SORT(FILTER(result,itemlengthqty>0),2),
finalresult)
This formula seems to return the expected result in my spreadsheet.