Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default count between dates

I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 257
Default count between dates

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use =COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default count between dates

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01 in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use =COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default count between dates

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01 in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use =COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default count between dates

Hi,
I've tried everything. =SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )
gives me #NA.
Am I just being a complete idiot? I'm sure feeling like one.

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01 in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use =COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default count between dates

That suggests that you've got the #N/A error in at least one of the cells
which are feeding into the formula.

Mike did, of course, mean "Where J7 and K7 are you first and last dates",
rather than J1 and K1 (or he meant to change the J7 and K7 references in the
formula to J1 and K1), but that would not give an #N/A error so you need to
look at your input data values.
--
David Biddulph

"Vicki Leibowitz" wrote in
message ...
Hi,
I've tried everything. =SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )
gives me #NA.
Am I just being a complete idiot? I'm sure feeling like one.

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01
in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use
=COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how
many
names there are say between 1 Jan & 8 Jan. Help before my brain
explodes....



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default count between dates

Hi all,
Thanks for assistance. I started from scratch and managed to get the answers
using the sumproduct formula:
=SUMPRODUCT((Date=B2)*(Date<=B3))
So basic I could kick myself!
Thanks again.

"Vicki Leibowitz" wrote:

Hi,
I've tried everything. =SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )
gives me #NA.
Am I just being a complete idiot? I'm sure feeling like one.

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01 in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use =COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how many
names there are say between 1 Jan & 8 Jan. Help before my brain explodes....

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default count between dates

I gathered thanks.
I figured it out - the formula turned out to be so basic!
I should start learning what the different error messages mean.
Thank you.

"David Biddulph" wrote:

That suggests that you've got the #N/A error in at least one of the cells
which are feeding into the formula.

Mike did, of course, mean "Where J7 and K7 are you first and last dates",
rather than J1 and K1 (or he meant to change the J7 and K7 references in the
formula to J1 and K1), but that would not give an #N/A error so you need to
look at your input data values.
--
David Biddulph

"Vicki Leibowitz" wrote in
message ...
Hi,
I've tried everything. =SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )
gives me #NA.
Am I just being a complete idiot? I'm sure feeling like one.

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01
in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use
=COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how
many
names there are say between 1 Jan & 8 Jan. Help before my brain
explodes....



.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default count between dates

Thanks for spotting my error David.

Vixter,

The formula =SUMPRODUCT((Date=B2)*(Date<=B3))
will corectly count dates in a range but based upon the original post it
doesn't answer the question.

I have dates in column A and names in column B.


What if column B has blanks in?
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vixter" wrote:

I gathered thanks.
I figured it out - the formula turned out to be so basic!
I should start learning what the different error messages mean.
Thank you.

"David Biddulph" wrote:

That suggests that you've got the #N/A error in at least one of the cells
which are feeding into the formula.

Mike did, of course, mean "Where J7 and K7 are you first and last dates",
rather than J1 and K1 (or he meant to change the J7 and K7 references in the
formula to J1 and K1), but that would not give an #N/A error so you need to
look at your input data values.
--
David Biddulph

"Vicki Leibowitz" wrote in
message ...
Hi,
I've tried everything. =SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )
gives me #NA.
Am I just being a complete idiot? I'm sure feeling like one.

"Mike H" wrote:

Hi,

=SUMPRODUCT((A1:A30=J7)*(A1:A30<=K7)*(B1:B30<"") )

Where J1 and k1 are you first and last dates
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Vicki Leibowitz" wrote:

Hi Bob.
Basically I have named the date range as "Date" and the name range as
"Names". I have used another sheet for my formulas and have 2010/01/01
in
cell B2 and 2010/01/08 in cell B3 (which I had to use for sumproducts).
I tried your formula but it comes back as FALSE?
Surely if I can sumproduct between dates there must be a way to
countproduct? I don't need to eliminate any duplicates.
I am a new excel learner.
Your assistance is much appreciated.
Thanks,
Vicki

"Bob Bridges" wrote:

Here's how I'd do it, Vicki: Create a helper column, say in N,
"=AND(A2=DATE(2010,1,1),A2<=DATE(2010,1,8))". Then use
=COUNTIF(N:N,TRUE)
and it'll count how many rows have dates in that range.

Do you need to eliminate duplicate names?

--- "Vicki Leibowitz" wrote:
I have dates in column A and names in column B. I need to count how
many
names there are say between 1 Jan & 8 Jan. Help before my brain
explodes....



.

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 Dates between Dates exclude Text Ken Excel Discussion (Misc queries) 3 April 8th 09 07:59 PM
I want to count the total Number of dates between two dates How? seshu Excel Worksheet Functions 3 February 7th 08 05:41 PM
count between two dates capt Excel Discussion (Misc queries) 9 December 11th 07 10:31 PM
Count of Dates Zoltan Excel Discussion (Misc queries) 1 March 13th 07 12:41 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


All times are GMT +1. The time now is 06:13 AM.

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"