LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Counting Cells with certain date ranges as values

Are you sure they are dates, compare them like =O1364-O1351
do you get a number as result or do you get the value error, if you get a
number they are real excel dates, if you get the error they are text and
cannot be used in calculations. If you don't have any leading or trailing
spaces you can convert them by copying an empty cell, select the dates and
do edit paste special and select add. However since you say you enter them
like 12/1/05 and use formatting to display as Dec-05 (I assume you had a
typo since 12/1/05 should not be Dec-06) then they are dates

Try

=COUNTIF('All Employees'!O1351:O1364,""&E1)-COUNTIF('All
Employees'!O1351:O1364,"="&F1)

and put the dates 12/31/05 in E1 and 02/01/06 in F1, make sure they are
dates (widen the column and see that they are right aligned without any
formatting applied) if you get zero it's text, if you get an error
then there's an error in the range itself or the formula has been copied and
pasted incorrectly


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"audreyglennette" wrote in
message ...
What do you mean real dates? I am entering them as 12/1/05 and having the
cell display as Dec-06 for conciseness. Is this wrong?




 
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
Minimum Date Range from other cells JLT Excel Worksheet Functions 1 January 1st 06 08:29 PM
Counting Multiple Values In A Cell DiamondDean Excel Worksheet Functions 1 August 20th 05 07:22 AM
Test IF Two Numeric Values Match (from two separate Dynamic Ranges) Sam via OfficeKB.com Excel Worksheet Functions 3 August 14th 05 12:20 AM
Min/Max formulas using cells with date format WDS2000 Excel Worksheet Functions 1 February 7th 05 06:03 PM
Date Formatted Cells Mike Excel Worksheet Functions 3 December 3rd 04 05:55 PM


All times are GMT +1. The time now is 07:56 AM.

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"