Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Vegs
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

I need this formula to exclude duplicate S/N which are enterd in C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=SUM(N(FREQUENCY(IF((A33:A2006=Date1)*(A33:A2006< Date1+7)*(B33:B2006="A5055"),MATCH(C33:C2006,C33:C 2006,0)),MATCH(C33:C2006,C33:C2006,0))0))

In order to shorten the formula just a little I used a named formula:

Date1 refers to:

=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)

Biff

"Vegs" wrote in message
...
I need this formula to exclude duplicate S/N which are enterd in C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")



  #3   Report Post  
Posted to microsoft.public.excel.misc
Vegs
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

Hi Biff,

I'm coming up with an "N/A".
The "IF" function needs a "value if false".......
Thanks for your help...

"Biff" wrote:

Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=SUM(N(FREQUENCY(IF((A33:A2006=Date1)*(A33:A2006< Date1+7)*(B33:B2006="A5055"),MATCH(C33:C2006,C33:C 2006,0)),MATCH(C33:C2006,C33:C2006,0))0))

In order to shorten the formula just a little I used a named formula:

Date1 refers to:

=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)

Biff

"Vegs" wrote in message
...
I need this formula to exclude duplicate S/N which are enterd in C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")




  #4   Report Post  
Posted to microsoft.public.excel.misc
Vegs
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

How would I change the equation below to count the S/N (excluding duplicates)
in column "C". Using the P/N in column "B". Here is the spreadsheet I'm
working with.
The formula I'm currently trying is listed after the spreadsheet.

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")

Date P/N S/N
6/26/2006 A5055 1234
6/26/2006 A5055 4321
6/27/2006 A5055 1212
6/28/2006 A5055 1212
6/28/2006 A5055 2121

This is the formula I'm trying but is not working.
=SUM(N(FREQUENCY(IF((A33:A2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6))*(A33:A2006<$C $5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7)*(B33:B2006= "5055"),MATCH(C33:C2006,C33:C2006,0)),MATCH(C33:C2 006,C33:C2006,0))0)


"Vegs" wrote:

Hi Biff,

I'm coming up with an "N/A".
The "IF" function needs a "value if false".......
Thanks for your help...

"Biff" wrote:

Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=SUM(N(FREQUENCY(IF((A33:A2006=Date1)*(A33:A2006< Date1+7)*(B33:B2006="A5055"),MATCH(C33:C2006,C33:C 2006,0)),MATCH(C33:C2006,C33:C2006,0))0))

In order to shorten the formula just a little I used a named formula:

Date1 refers to:

=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)

Biff

"Vegs" wrote in message
...
I need this formula to exclude duplicate S/N which are enterd in C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")




  #5   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

The "IF" function needs a "value if false".......

The IF function does not need a value_if_false argument.

This is the formula I'm trying but is not working.
=SUM(N(FREQUENCY(IF((A33:A2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6))*(A33:A2006<$C $5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7)*(B33:B2006= "5055"),MATCH(C33:C2006,C33:C2006,0)),MATCH(C33:C2 006,C33:C2006,0))0)


(B33:B2006="5055")

Should be:

(B33:B2006="A5055")

Based on the snippet of data you posted (not knowing what date you have
entered in C5)......

See this screencap:

http://img119.imageshack.us/img119/2631/sample6vq.jpg

Biff

"Vegs" wrote in message
...
How would I change the equation below to count the S/N (excluding
duplicates)
in column "C". Using the P/N in column "B". Here is the spreadsheet I'm
working with.
The formula I'm currently trying is listed after the spreadsheet.

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")

Date P/N S/N
6/26/2006 A5055 1234
6/26/2006 A5055 4321
6/27/2006 A5055 1212
6/28/2006 A5055 1212
6/28/2006 A5055 2121

This is the formula I'm trying but is not working.
=SUM(N(FREQUENCY(IF((A33:A2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6))*(A33:A2006<$C $5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7)*(B33:B2006= "5055"),MATCH(C33:C2006,C33:C2006,0)),MATCH(C33:C2 006,C33:C2006,0))0)


"Vegs" wrote:

Hi Biff,

I'm coming up with an "N/A".
The "IF" function needs a "value if false".......
Thanks for your help...

"Biff" wrote:

Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=SUM(N(FREQUENCY(IF((A33:A2006=Date1)*(A33:A2006< Date1+7)*(B33:B2006="A5055"),MATCH(C33:C2006,C33:C 2006,0)),MATCH(C33:C2006,C33:C2006,0))0))

In order to shorten the formula just a little I used a named formula:

Date1 refers to:

=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)

Biff

"Vegs" wrote in message
...
I need this formula to exclude duplicate S/N which are enterd in
C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")







  #6   Report Post  
Posted to microsoft.public.excel.misc
Vegs
 
Posts: n/a
Default Formula to count cells between dates excluding duplicates

It still didn't work.

What if I forget about searching column B and just use the s/n between the
dates. Excluding the duplicates of course. I tried this formula but had no
success.

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--N(FREQUENCY(C33:C2006,C33:C2006)0))




"Biff" wrote:

The "IF" function needs a "value if false".......


The IF function does not need a value_if_false argument.

This is the formula I'm trying but is not working.
=SUM(N(FREQUENCY(IF((A33:A2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6))*(A33:A2006<$C $5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7)*(B33:B2006= "5055"),MATCH(C33:C2006,C33:C2006,0)),MATCH(C33:C2 006,C33:C2006,0))0)


(B33:B2006="5055")

Should be:

(B33:B2006="A5055")

Based on the snippet of data you posted (not knowing what date you have
entered in C5)......

See this screencap:

http://img119.imageshack.us/img119/2631/sample6vq.jpg

Biff

"Vegs" wrote in message
...
How would I change the equation below to count the S/N (excluding
duplicates)
in column "C". Using the P/N in column "B". Here is the spreadsheet I'm
working with.
The formula I'm currently trying is listed after the spreadsheet.

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")

Date P/N S/N
6/26/2006 A5055 1234
6/26/2006 A5055 4321
6/27/2006 A5055 1212
6/28/2006 A5055 1212
6/28/2006 A5055 2121

This is the formula I'm trying but is not working.
=SUM(N(FREQUENCY(IF((A33:A2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6))*(A33:A2006<$C $5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7)*(B33:B2006= "5055"),MATCH(C33:C2006,C33:C2006,0)),MATCH(C33:C2 006,C33:C2006,0))0)


"Vegs" wrote:

Hi Biff,

I'm coming up with an "N/A".
The "IF" function needs a "value if false".......
Thanks for your help...

"Biff" wrote:

Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=SUM(N(FREQUENCY(IF((A33:A2006=Date1)*(A33:A2006< Date1+7)*(B33:B2006="A5055"),MATCH(C33:C2006,C33:C 2006,0)),MATCH(C33:C2006,C33:C2006,0))0))

In order to shorten the formula just a little I used a named formula:

Date1 refers to:

=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)

Biff

"Vegs" wrote in message
...
I need this formula to exclude duplicate S/N which are enterd in
C33:C2006
for the part "A5055"

=SUMPRODUCT(--($A$33:$A$2006=$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)),--($A$33:$A$2006<$C$5-CHOOSE(WEEKDAY($C$5),0,1,2,3,4,5,6)+7),--($B$33:$B$2006="A5055")






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
How do I use countif to count values excluding blank cells Glenda Excel Worksheet Functions 4 January 30th 06 04:22 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula to count the cells in a range that have a fill color. Slainteva Excel Discussion (Misc queries) 2 January 19th 05 08:25 PM
Formula to count the cells in a range that have a fill color. Molly F Excel Discussion (Misc queries) 2 January 19th 05 06:15 PM


All times are GMT +1. The time now is 08:02 PM.

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

About Us

"It's about Microsoft Excel"