Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
WLMPilot
 
Posts: n/a
Default COUNTIF using Dates

I have created a spreadsheet that mirrors my paystubs, ie salary and
deductions in column A and the dates of each payperiod listed B2:AA2. The
dates are caluclated instead of physically being entered, ie since the
payperiod is every two weeks, the first payday of the year is physically
entered in B2, then payday after that is calculated by adding 14 to the
previous cell.

I have been using the COUNTIF function to look at the NET PAY row and count
the number of cells that the NET PAY is 0 in order to determine the current
payperiod. This works great if you have been working from the beginning of
the year. However, if you start a job in the middle of the year, this
formula does not work.

Since the payperiods (dates in cells B2:AA2) were constant, I tried the
following formula: =COUNTIF(B2:AA2,"<=TODAY()). I was hoping this would
count the number of dates that were <= Today' date in order to track what pay
period the company was in. Unfortunately, I could not get this to work, and
if I read the HELP sheet on this, I don't think that "TODAY()" can be used as
the criteria.

Any help on this??

Thanks,
Les
  #2   Report Post  
JMB
 
Posts: n/a
Default

i assume you are using "<=TODAY()"

Try

"<="&TODAY()

(no quotes around the TODAY() function)


"WLMPilot" wrote:

I have created a spreadsheet that mirrors my paystubs, ie salary and
deductions in column A and the dates of each payperiod listed B2:AA2. The
dates are caluclated instead of physically being entered, ie since the
payperiod is every two weeks, the first payday of the year is physically
entered in B2, then payday after that is calculated by adding 14 to the
previous cell.

I have been using the COUNTIF function to look at the NET PAY row and count
the number of cells that the NET PAY is 0 in order to determine the current
payperiod. This works great if you have been working from the beginning of
the year. However, if you start a job in the middle of the year, this
formula does not work.

Since the payperiods (dates in cells B2:AA2) were constant, I tried the
following formula: =COUNTIF(B2:AA2,"<=TODAY()). I was hoping this would
count the number of dates that were <= Today' date in order to track what pay
period the company was in. Unfortunately, I could not get this to work, and
if I read the HELP sheet on this, I don't think that "TODAY()" can be used as
the criteria.

Any help on this??

Thanks,
Les

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
Countif using dates Bugaglugs Excel Worksheet Functions 11 August 23rd 05 05:16 PM
formula for countif between 2 dates ilmeaz Excel Discussion (Misc queries) 2 August 5th 05 09:05 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
countif and dates JAF New Users to Excel 2 December 3rd 04 04:45 PM
COUNTIF With Multiple Dates, Columns and Text Shannon Excel Worksheet Functions 4 November 26th 04 11:12 PM


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