Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Altstatten
 
Posts: n/a
Default Formula help for counting,with a column of dates and a column of n

Got a column of names and a corresponding column of dates. Am trying to
figure out how to write a formula that will a) select a pre-specified name
from the first column and count the number of times it occurs BASESD ON b)
the dates in the second column if they fall within a specified range.

If the date in the date column is within (the last week), then count the
name in the corresponding name column if it's (name goes here).

Both lists have data added to them daily and I don't want to get in and have
to move ranges or anything else manually every day.

How do I do that?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Formula help for counting,with a column of dates and a column of n

Assuming that data (and future data to be added) are in range A2:B1000.
Assuming requested name is in K1.

=SUMPRODUCT(--($A$2:$A$1000=K1)*--($B$2:$B$1000=TODAY()-6))

or, for any range of dates, earlier in L1 and later in M1,

=SUMPRODUCT(--($A$2:$A$1000=K1)*--($B$2:$B$1000=L1))*--($B$2:$B$1000<=M1))

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Altstatten
 
Posts: n/a
Default Formula help for counting,with a column of dates and a column

This formula finally worked. Thank you! When I attempt to change the range
from $E$2:$E$105 to anything else (specifically the 105 to any other number)
I get an #N/A message in the formula cell. Why? How can I increase the field
range to 1000??


"vezerid" wrote:

Assuming that data (and future data to be added) are in range A2:B1000.
Assuming requested name is in K1.

=SUMPRODUCT(--($A$2:$A$1000=K1)*--($B$2:$B$1000=TODAY()-6))

or, for any range of dates, earlier in L1 and later in M1,

=SUMPRODUCT(--($A$2:$A$1000=K1)*--($B$2:$B$1000=L1))*--($B$2:$B$1000<=M1))

HTH
Kostis Vezerides


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
formula needed to track dates event happened ilmeaz Excel Worksheet Functions 1 November 15th 05 02:52 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
I need a formula to sum column b if column a is between two dates Pam Excel Discussion (Misc queries) 2 April 18th 05 06:18 PM
I need a formula to sum column b if column a is between two dates Pam Excel Discussion (Misc queries) 0 April 18th 05 05:33 PM
formula to calculate a column based on dates in a different colum. Pam Excel Worksheet Functions 1 April 7th 05 07:59 PM


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