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. |
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. |
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. |
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. |
All times are GMT +1. The time now is 04:50 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com