msnewtothis

New Member
Joined
May 6, 2019
Messages
2
Product

Lot

Exp
A
1
X
A
1
X
A
2
Y
A
2
Y

<tbody>
</tbody>

need function that will allow me to count different products with different lots from a list.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Product Lot Exp Qty
A 1 x 2
A 2 y 2

we barcode in our inventory and I need to be able to have a count of each product we receive and which how many of each lot.
 
Upvote 0
How about


Excel 2013/2016
ABCD
1ProductLotExp
2A1X2
3A1X2
4A2Y2
5A2Y2
Booking Data
Cell Formulas
RangeFormula
D2=COUNTIFS($A$2:$A$5,A2,$B$2:$B$5,B2)
 
Upvote 0
or with PowerQuery

ProductLotExpProductLotExpCount
A
1​
XA
1​
X
2​
A
1​
XA
2​
Y
2​
A
2​
Y
A
2​
Y

Code:
[SIZE=1]// Table3
let
    Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    Group = Table.Group(Source, {"Product", "Lot", "Exp"}, {{"Count", each Table.RowCount(_), type number}})
in
    Group[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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