Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default sum two col one of which is a date.

I have two col. one with names, the second with dates.

I need a COUNT of a specific persons dates before xx/xx/xx.

I can count either with countif but fail when I try to combine.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 267
Default sum two col one of which is a date.

=SUMPRODUCT(--(A2:A7="john"),--(B2:B7<A1))
where john is the name youre searching for and cell a1 contains the date you
want it to fall before.

"MusicMan" wrote:

I have two col. one with names, the second with dates.

I need a COUNT of a specific persons dates before xx/xx/xx.

I can count either with countif but fail when I try to combine.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default sum two col one of which is a date.

Hi MusicMan,

You can try

Given in column A the names and in B the dates, in H1 your reference date.

=SUM((A1:A4="JP")*(B1:B4<=H1))

You have to enter this as an array function: ctrl+shift+enter.

Wkr,

JP

"MusicMan" wrote in message
...
I have two col. one with names, the second with dates.

I need a COUNT of a specific persons dates before xx/xx/xx.

I can count either with countif but fail when I try to combine.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sum two col one of which is a date.

If you're using Excel 2007...

A2:A25 = names
B2:B25 = dates

D2 = target date
E2 = some name

=COUNTIFS(A2:A25,E2,B2:B25,"<"&D2)

--
Biff
Microsoft Excel MVP


"MusicMan" wrote in message
...
I have two col. one with names, the second with dates.

I need a COUNT of a specific persons dates before xx/xx/xx.

I can count either with countif but fail when I try to combine.



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
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
Given a date, how do I get the 1st date and the last date of theprevious month? Author[_2_] Excel Worksheet Functions 5 April 2nd 09 12:59 AM
Making a date go red, if date passes todays date. Jamie Excel Worksheet Functions 2 September 9th 08 02:14 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM


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