LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Count Unique With one Condition & No ROUNDUP

My previous post/reply does not seem to be showing up but I just wanted to
ensure that I reply saying that This formula that you offered works perfectly
and is an awesome solution!

Thanks A Ton for your Help!!!



"Ron Coderre" wrote:

Using your posted example formula as a guide

With
K2:K100 containing status....eg Not Started
and
A2:A100 containing some other value for that record

AND...
D1 containing the status you want a unique Col_A count for
eg Completed

This formula returns the unique count of Col_A values
where the corresponding Col_K value equals D1
B1: =SUMPRODUCT(--(FREQUENCY((K2:K100=D1)*
MATCH(A2:A100&"_",A2:A100&"_",0),(K2:K100=D1)*
MATCH(A2:A100&"_",A2:A100&"_",0))*(K2:K101=D1)0))

Does that help?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"Rob" wrote in message
...
Hello.... I've looked through a lot of posts here and unfortunately I
cannot
find a formula that helps in my issue. What I am looking to do is within
an
Excel 2003 worksheet I have several columns and I need to count all the
unique values of Column "A" that also have a criteria of Column "K" being
either; "In Work", "Completed", or "Not Started". I found many formulae
that
sort of did what I am looking for but they involved performing division
and
the end results keep coming up as a non-whole number, e.g. '14.12'. In
order
to combat this issue I have used a "Roundup" with the formula however this
does not fully operate correctly when low decimals are continuous.

For example... If I start off with '14.01' = ~15 and I add one more
unique
value the result is '14.45' = ~15.... but it should now be 16. :(

Here is the formula I am working with that best suited what I am trying to
do, (roundup added).

=ROUNDUP(SUMPRODUCT((K2:K100="In
Work")/COUNTIF(A2:A100,A2:A100&"")*(A2:A100<"")),0)


If I can count all the "Unique" Column "A" items that happen to also be
Column "K" - "In Work" without having to roundup I would feel that the
data
is actually accurate. Any help would be outstanding.

Thanks In Advance!


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Unique with criteria condition Spencer Hutton Excel Worksheet Functions 1 January 12th 09 06:35 PM
Attempting to sort unique/only count first record in each unique g MJW[_2_] Excel Discussion (Misc queries) 3 August 10th 07 02:56 PM
how to count unique entries with multiple condition Michael Excel Worksheet Functions 6 June 29th 05 12:38 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Count of unique items meeting condition Tim C Excel Worksheet Functions 1 November 12th 04 03:03 AM


All times are GMT +1. The time now is 10:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"