Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 19
Default How do I count unique values within a date range?

Hi everyone,

I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.

Deepest thanks in advance to all!

Sam

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I count unique values within a date range?

Assuming there are no empty cells in the PN range:

PN = range of part numbers
Status = range that might equal "Yes"
Problems = range on hidden sheet of problem part numbers

=SUMPRODUCT(--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Status="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message
ups.com...
Hi everyone,

I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.

Deepest thanks in advance to all!

Sam



  #3   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 19
Default How do I count unique values within a date range?

On Jun 12, 8:54 pm, "T. Valko" wrote:
Assuming there are no empty cells in the PN range:

PN = range of part numbers
Status = range that might equal "Yes"
Problems = range on hidden sheet of problem part numbers

=SUMPRODUCT(--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Stat*us="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message

ups.com...



Hi everyone,


I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.


Deepest thanks in advance to all!


Sam- Hide quoted text -


- Show quoted text -


Thank you Biff, I havent tried out the formula yet but there are blank
rows in the first column.

Thanks in advance.

Sam

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I count unique values within a date range?

Try this:

=SUMPRODUCT(--(PN<""),--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Status="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message
oups.com...
**********
Thank you Biff, I havent tried out the formula yet but there are blank
rows in the first column.

Thanks in advance.

Sam
**********

On Jun 12, 8:54 pm, "T. Valko" wrote:
Assuming there are no empty cells in the PN range:

PN = range of part numbers
Status = range that might equal "Yes"
Problems = range on hidden sheet of problem part numbers

=SUMPRODUCT(--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Stat*us="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message

ups.com...



Hi everyone,


I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.


Deepest thanks in advance to all!


Sam- Hide quoted text -


- Show quoted text -





  #5   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 19
Default How do I count unique values within a date range?

On Jun 12, 9:53 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(PN<""),--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))*+1),--(Status="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message

oups.com...
**********
Thank you Biff, I havent tried out the formula yet but there are blank
rows in the first column.

Thanks in advance.

Sam
**********

On Jun 12, 8:54 pm, "T. Valko" wrote:



Assuming there are no empty cells in the PN range:


PN = range of part numbers
Status = range that might equal "Yes"
Problems = range on hidden sheet of problem part numbers


=SUMPRODUCT(--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Stat**us="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))


Biff


"Sam" wrote in message


oups.com...


Hi everyone,


I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.


Deepest thanks in advance to all!


Sam- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



Thank you T Valko! and Biff



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How do I count unique values within a date range?

You're welcome. Thanks for the feedback!

Biff

"Sam" wrote in message
ups.com...
On Jun 12, 9:53 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(PN<""),--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))*+1),--(Status="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))

Biff

"Sam" wrote in message

oups.com...
**********
Thank you Biff, I havent tried out the formula yet but there are blank
rows in the first column.

Thanks in advance.

Sam
**********

On Jun 12, 8:54 pm, "T. Valko" wrote:



Assuming there are no empty cells in the PN range:


PN = range of part numbers
Status = range that might equal "Yes"
Problems = range on hidden sheet of problem part numbers


=SUMPRODUCT(--(MATCH(PN&Status,PN&Status,0)=ROW(PN)-MIN(ROW(PN))+1),--(Stat**us="Yes"),--(ISNUMBER(MATCH(PN,Problems,0))))


Biff


"Sam" wrote in message


oups.com...


Hi everyone,


I looked on the forums but was unable to find an instance of what I
was looking for. What I have is a spreadsheet that has several
columns, in column "A" the are part numbers that repeat depending on
the day. in coulmn "B" I have a "yes" if the part is aged over 5 days.
In a hidden worksheet I have a list of problem parts to be on the
lookout for. What I need to do is have a formula that will count the
total number of unique parts over 5 days that is on my problem child
parts list.


Deepest thanks in advance to all!


Sam- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



Thank you T Valko! and Biff


Reply
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 Values Dave Excel Worksheet Functions 5 December 4th 08 10:20 PM
Count text values in a date range Janet BN Excel Discussion (Misc queries) 2 June 19th 06 04:26 AM
Count unique values among duplicates in a subtotal range jcpotwor Excel Discussion (Misc queries) 2 January 12th 06 01:29 PM
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM
Count Unique Values annie Excel Worksheet Functions 1 June 9th 05 07:19 AM


All times are GMT +1. The time now is 08:26 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"