Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default Counting text and dates

I have one column with names, the other with dates. Each name has multiple
rows of different dates.
I'd like to count the number of times each individual name has a date
occurrence before a specific date.
e,g.,
A B
Smith 7/31/2009
8/3/2009
7/24/2009
7/25/2009
8/4/2009

Jones 7/26/2009
8/5/2009
8/8/2009
7/31/2009

Specific date is 7/31/2009, so Smith would have 2, and Jones would have 1.

Thanks a million.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Counting text and dates

First of all fill in the names to all rows.. and use the below formula

C1 = Smith
D1 = 7/31/2009 (in the same format as col B)

In E1 try the below formula
=SUMPRODUCT((A1:A100=C1)*(B1:B100<D1))

To fill the names in all rows try the below

--Select a unused cell say E2
--Enter the formula in cell E2 which references the top cell (=E1)
--Copy the cell
--Keeping the copy select the data range in ColA
--Press F5. From Goto window select blanks
--This will select all blanks.. Now Right clickPasteSpecialFormulas. will
fill in with the data you need..

If this post helps click Yes
---------------
Jacob Skaria


"Steve" wrote:

I have one column with names, the other with dates. Each name has multiple
rows of different dates.
I'd like to count the number of times each individual name has a date
occurrence before a specific date.
e,g.,
A B
Smith 7/31/2009
8/3/2009
7/24/2009
7/25/2009
8/4/2009

Jones 7/26/2009
8/5/2009
8/8/2009
7/31/2009

Specific date is 7/31/2009, so Smith would have 2, and Jones would have 1.

Thanks a million.

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
Counting a text value between dates Lucy_C Excel Discussion (Misc queries) 2 April 22nd 09 02:11 PM
Counting Dates - Not Text Danny Excel Worksheet Functions 2 August 17th 07 02:19 AM
Counting Dates - Not Text Danny Excel Worksheet Functions 1 August 17th 07 01:58 AM
Counting Dates - Not Text Biff Excel Worksheet Functions 0 August 17th 07 01:49 AM
counting occasions dates occur between 2 dates hoyt New Users to Excel 5 June 16th 06 08:11 AM


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