Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count unique values in 1 column where cells in another show non-bl
I have a spreadsheet whereby I need to be able to count how many unique items
are in column D (D5 onwards), where each corresponding value in column O is a non-blank. Is there an easy way to do this and if so, how? Many thanks in advance. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count unique values in 1 column where cells in another show non-bl
=SUM(--(FREQUENCY(IF((D5:D2000<"")*(O5:O2000<""),MATCH( D5:D2000,D5:D2000,0)),ROW(INDIRECT("1:"&ROWS(D5:D2 000))))0))
this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter -- __________________________________ HTH Bob "Sarah (OGI)" wrote in message ... I have a spreadsheet whereby I need to be able to count how many unique items are in column D (D5 onwards), where each corresponding value in column O is a non-blank. Is there an easy way to do this and if so, how? Many thanks in advance. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count unique values in 1 column where cells in another show non-bl
Sarah,
Try this =MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1) This is an array formula and musr be entered by pressing CTRL+Shift+Enter and NOT just enter. If you do it correctly then Excel will put curly brackets around the formula {}. You can't simply type these yourself. Change D20, O20 to the range you want but you then must re=enter as an array. Mike "Sarah (OGI)" wrote: I have a spreadsheet whereby I need to be able to count how many unique items are in column D (D5 onwards), where each corresponding value in column O is a non-blank. Is there an easy way to do this and if so, how? Many thanks in advance. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count unique values in 1 column where cells in another show no
I should have mentioned if this returns a #NAME error then activate the
analysis toolpak Tools|Addins Check analysis toolpak. Mike "Mike H" wrote: Sarah, Try this =MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1) This is an array formula and musr be entered by pressing CTRL+Shift+Enter and NOT just enter. If you do it correctly then Excel will put curly brackets around the formula {}. You can't simply type these yourself. Change D20, O20 to the range you want but you then must re=enter as an array. Mike "Sarah (OGI)" wrote: I have a spreadsheet whereby I need to be able to count how many unique items are in column D (D5 onwards), where each corresponding value in column O is a non-blank. Is there an easy way to do this and if so, how? Many thanks in advance. |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count unique values in 1 column where cells in another show no
"Mike H" wrote: I should have mentioned if this returns a #NAME error then activate the analysis toolpak Tools|Addins Check analysis toolpak. Mike "Mike H" wrote: Sarah, Try this =MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1) This is an array formula and musr be entered by pressing CTRL+Shift+Enter and NOT just enter. If you do it correctly then Excel will put curly brackets around the formula {}. You can't simply type these yourself. Change D20, O20 to the range you want but you then must re=enter as an array. Mike "Sarah (OGI)" wrote: I have a spreadsheet whereby I need to be able to count how many unique items are in column D (D5 onwards), where each corresponding value in column O is a non-blank. Is there an easy way to do this and if so, how? Many thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
one column of cells show ####. Values show when I open it. Help | Excel Discussion (Misc queries) | |||
count of unique values within a column | Excel Discussion (Misc queries) | |||
Unique Count when Values 0.01 | Excel Worksheet Functions | |||
How do i count the number of unique values in a given column? | Excel Discussion (Misc queries) | |||
Count unique values and create list based on these values | Excel Worksheet Functions |