Count if unique value + empty cell with four criteria

Jescanilla

New Member
Joined
Aug 17, 2021
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Good afternoon. as the title said im trying to count if unique values and even empty cells with for different criteria such as year, week and so on, i was trying to use
=SUM(IF(FREQUENCY(IF(LEN($J:$J)>0;MATCH($J:$J;$J:$J;0);"");IF(LEN($J:$J)>0;MATCH($J:$J;$J:$J;0);""))>0;1))
but i couldn't manage to add the criteria's, i paste an example sheet of the result that i must have (but i did it manual just for explanation purposes). Please help me add criteria on that formula or build a better one.

Libro KPI mantenimiento (version 3).xlsx
ABCDEFGHIJKL
5yearweektrucktypeID
613605mcasdasd
713605mc123
813605mc456mc67yearweektrucktypesum
913605mc456mc6713605mc56
1013605mc456mc6724605mc2
1113605mc
1213605mcasd
1313605mcasd
1424605mcasddd
1524605mc
1624605mp
1724605mp
1824605mp
1924605mp
Sheet4
Cell Formulas
RangeFormula
L9L9=SUM(IF(FREQUENCY(IF(LEN($E:$E)>0,MATCH($E:$E,$E:$E,0),""),IF(LEN($E:$E)>0,MATCH($E:$E,$E:$E,0),""))>0,1))


Thanks by advance.
 
sorry still not sure i get it
year 3 has blank ID's and all the columns the same so a count of unique is 1 - but you want 5 - so not counting as unique just blanks
BUT then
year 2 you also have 5 blanks - with all the same in otehr columns - but there you only count the blanks entry as 1 and not 5

sorry confused
in deed, cuz u are missing mc value in year 2 and its a conditional for the counting, one blank and one with id asddd
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Ok, i was comparing your Year 3 to year 2 results in my reply , that you count blank 1 and Ids only once - BUT not for year 3
year 3 has blank ID's and all the columns the same so a count of unique is 1 - but you want 5 - so not counting as unique just blanks
BUT then
year 2 you also have 5 blanks - with all the same in otehr columns - but there you only count the blanks entry as 1 and not 5
Ignoring year 2 as we both seem to agree thats 2 = and i see why - 1 unique ID and a blank

why is year 3 5 and not 1 - not IDs just 5 blanks , your comment in L - where i show K11 as 1 - you say in L11 - it must be 5
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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