hi all,
I may be completely off track (if so, please put me right) but I think that sumproduct should/will provide a solution as I try to count unique occurences w/in data after checking that it matches multiple criteria (converted to single cells as strings)...
I've had a look at Chip's duplicate/unique items & his array formulae page but can't seem to adapt them for my purpose.
Background:
In an extracted (from AS400 to Excel) Stock on Hand Report of about 4000 lines of cheese, the stock is "uniquely" identifed by Location (double alpha), sLot (short Lot, provides factory (single alpha) & date (ddmmy) of manufacture), and Material (six digit & single alpha).
However, due to an unforeseen programming issue, since resolved, a number of lines were created with duplicate Lots (single alpha for end market, sLot, & 3 letter code for end use) mapped against a multiple Materials (should be unique to a single material).
The programmer's may develop a report in the future, but in the mean time...
What is a formula I can use to get a count of the multiple materials based on stock that has the same Location & sLot(that can be expanded out to cover 4000 ish rows)?
The examples below should give answers of 2 & 3 respectively:
Loc&sLot LocMat&sLot
IPC16080 IP104256EC16080 (#1)
IPC16080 IP106101EC16080 (#2)
IPC16080 IP106101EC16080 (#2)
IPC17080 IP106101EC17080
Loc&sLot LocMat&sLot
IPC16080 IP104256EC16080 (#1)
IPC16080 IP101601EC16080 (#2)
IPC16080 IP106101EC16080 (#3)
IPC17080 IP106101EC17080
My attempts so far:
Count of Different Mat's based on same Loc&sLot
2 =SUMPRODUCT(($R$2:$R$5=R2)*1,($V$2:$V$5<>V2)*1)
#VALUE! =SUMPRODUCT(SUMPRODUCT(($R$2:$R$5=R2)*1),($V$2:$V$5<>V2)*1)
Thanks in advance,
Rob Brockett
NZ
Always learning & the best way to learn is to experience...
Bookmarks