List unique values and count cell values with different conditions

nahaku

Board Regular
Joined
Mar 19, 2020
Messages
106
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello, I im trying to find formulas to help me make statistics, but I do not know how to get this. The formulas I found on internet helps always only with half of the problem.
I am trying to list unique value from [A] Yelow column for example GBL0004,GBS0083,...
then it could list GBL0004 divided by Region name from Column Blue column so for example GBL0004 A , GBS0083 A, GBS0083 C1, GBS0083 B1,GBS0088 A, GBS0088 B1 ....
it basically splits the person by location where they ware working.
and then just count with Brown Columns separetly. That is somethink i might do, but I am not able to count it with that condition so it would count for unique
IF (Picker [A]+ Region name ) = SUM(C:C) { or Sum D, E, F, G......}
 

Attachments

  • 689E3629-D047-4a5d-A385-9866F9F7D84A.png
    689E3629-D047-4a5d-A385-9866F9F7D84A.png
    53.9 KB · Views: 16
Try
=UNIQUE(FILTER(FILTER(PSdata!$B$2:$E$508,(COLUMN(PSdata!$B2:$E2)=2)+(COLUMN(PSdata!$B2:$E2)=5)),NOT(ISERROR(MATCH(PSdata!B2:B508,L2:L20,0))))
Worked like charm :P
Hopefully last thing with all this listing of values.
I do not need the 2. cell list. Only list all unique GBS from cell "D" if they are unique and they are in my list of approved names from "AM6:AM24"
=UNIQUE(FILTER(PackData!D2:D15000,(COLUMN(PackData!$D2:$D2)=4)),NOT(ISERROR(MATCH(PackData!D2:D15000,AM6:AM24,0))))
I think it is working, but because of the "D2:D15000" range it is showing so many 0, is it possible to not show 0, ignore them in the list?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
=UNIQUE(FILTER(PackData!D2:D15000,(PackData!$D2:$D15000<>"")*(NOT(ISERROR(MATCH(PackData!D2:D15000,AM6:AM24,0))))))
 
Upvote 0
How about
=UNIQUE(FILTER(PackData!D2:D15000,(PackData!$D2:$D15000<>"")*(NOT(ISERROR(MATCH(PackData!D2:D15000,AM6:AM24,0))))))
Exactly :P, Ok, I wish you nice Easter. I will try to not to bother at least until it is finished. Bless you.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
You're welcome & thanks for the feedback
Heh, Sorry, every day I get some new task it seems, no matter if there is world situation or not. I manage to get it done basically but i found one problem with my excel.
In my list is list of items what needs to be scanned with their current location. But i found out there are items in list with multiple entries and their locations. Is possible to make something so when I insert the barcode in the cell "C19" it will show entries for all same items? only difference should be in Quantity and Location I think. so if it could show them next to it?or maybe even under somehow, i have about 1000 entries in Refference table.
Scanning Test.xlsx
ABCDEFGHIJKL
1Refference Table
2No.SKUUPCNameQTYLocationStatus
311asd65sa1dxxxauto1001.09.3.1Not Seen
4265asd65zzzxxcvnmmobil1001.09.3.1Scanned
531zxc6zxc6adsdamotorka2001.22.1.1Not Seen
643zxcsad6zxczvslnko1001.25.3.1Scanned
754zxc9xz4czxvgagbabika1001.32.1.1Not Seen
866z4xc6zx4casdzxvsito1999.90.1.1Not Seen
975xzc6z4xc6hgfhjfgkvety1999.90.1.1Not Seen
10865zxc654xczdsvxckozi1999.90.1.1Not Seen
1192xcz64zxc6asdfzxclodka1999.90.1.1Scanned
1210f64sdf6asfxzcpulover4999.90.1.1Not Seen
1311gfd64gsafzxvcslimak1999.90.1.1Not Seen
14123zxcsad6hafslnko1999.90.1.1Scanned
15133v5zxv8sancvbcvparkovisko2999.90.1.1Not Seen
16
17"C" Cellsitems what were scanned and check against the Refference Table
1818Scanned SKU BarcodeNameQTYLocationQTYLocationQTYLocationQTYLocation
191965asd65mobil1001.09.3.1
20203zxcsad6slnko1001.25.3.1
21212xcz64zxc6lodka1999.90.1.1
2222Not Found
2323Not Found
2424Not Found
Sheet2
Cell Formulas
RangeFormula
G3:G15G3=IF(OR(COUNTIF($C$19:$C$35,"*"&$B$3:$B$15&"*")),"Scanned", "Not Seen")
D22:D24,D19:F21D19=IFERROR(XLOOKUP($C19,$B$3:$B$15,$D$3:$F$15,"Not Found",0,1),"")
Dynamic array formulas.
 
Upvote 0
I tried to use =IFERROR(INDEX($B$3:$G$15, SMALL(IF("$C19"=$B$3:$B$15, ROW($F$3:$F$15)-2,"TEST1"), COLUMN()-5)),"TEST2") but it always shows only the error=TEST2 in cell... It does not check the C19 against the B3:B15 range, but when i checked the function it was showing True for the B4 Column .... I dont know
 
Upvote 0
As this is a totally different question, you will need to start a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,803
Members
449,261
Latest member
Rachel812321

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