LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Countifs and date comparison

Okay, trying to figure one out here (although Dave Peterson could probably
do it in his sleep :D).

I have two sheets, Sheet_2 and dB_File. I want to use an employee number to
count the number of sales an employee has made for a particular month.

for example, Cell G13 on Sheet_2 has the employee number and Cell G1 has the
reporting period date (mm/dd/yyyy - i.e. 3/1/2010). In cell G17 on Sheet_2,
I want to count the number of sales that employee number 203 made 3 months
before the reporting period date (i.e. in 12/2009). The employee number is
in Column B of the dB_File sheet and the date the employee made the sale is
in Column BQ of the dB_File sheet. But I don't know how to constrain it to
just the month 3 months ago. This is what I have so far, but don't know how
to finish it.
countifs ( range 1 criteria 1
range2(the date col)
"=COUNTIFS(dB_File!$B$2:$B$99999,Sheet_2!$G$13,dB_ File!$BQ$2:$BQ$99999, ?)

I just can't seem to figure out the date criteria. Would it be something
like ...
Date(Year($G$1),MONTH($G$1)-4)? ($G$1 is the date of the current reporting
period.)
--
Nothing in life is ever easy - just get used to that fact.
 
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
COUNTIFS with a date for criteria... LUSN Excel Worksheet Functions 1 March 3rd 10 08:33 PM
countifs criteria includes date range JayH Excel Worksheet Functions 4 February 3rd 10 01:19 AM
Selecting data in a specific date range using COUNTIFS function Joe R @ AA[_2_] Excel Worksheet Functions 1 May 8th 09 02:29 PM
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
Date comparison adimar Excel Worksheet Functions 14 February 3rd 08 06:44 PM


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