Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default how to do a countif - want cells that are before or on a certain dateand do not want to hard code that date

hi - i need to do a countif function that will count all the cells
that have a date on or before a certain date. i have a spreadsheet at
the very beginning that has this threshold date and want to reference
that cell in the count if function because it may be changing.

i have tried :
countif(firstcell:last cell,<=Worksheet1A1)

and have included paratheses but it always returns zero. both the
reference cell and the range with dates are set to mm/dd/yyyy.

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default how to do a countif - want cells that are before or on a certain d

=COUNTIF(B:B,"<="&A1)

--
Gary''s Student - gsnu2007k
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
Hard code date in excel . . . Rachel Costanza[_2_] Excel Discussion (Misc queries) 2 November 7th 08 10:40 PM
Hard code month in Excel Rachel Costanza Excel Discussion (Misc queries) 6 November 7th 08 02:04 AM
Not Hard Code If FIRSTROUNDKO via OfficeKB.com Excel Discussion (Misc queries) 3 July 10th 07 04:11 PM
Hard-code source data Melanie Martin Charts and Charting in Excel 5 December 29th 05 02:07 PM
Excel formula randomly changes to hard-code number Ned Excel Discussion (Misc queries) 3 February 14th 05 11:31 PM


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