LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toys
 
Posts: n/a
Default If Statement and Dates

I have a list of sequential dates in column A; let's 12/01/05 (Dec 01, 05) to
12/31/05. I want to use a conditional if statement to evaluate if the date
is less than a given day, for example: =IF(A1<12/15/05,"Less","Greater").
Therefore the first 14 should result in "Less" and the last 17 should result
in "Greater". My reslut is returning "Greater" for all of them. Any ideas
why? Two additional things: 1st, if I put the date in column B and then do
=IF(A1<B1,"Less","Greater") then it works fine, its only a problem when I
enter it manually. 2nd, this would be fine, but I'm trying to use a Macro
with an Input box where I enter the date (a variable) which slots into my If
statement. Any suggestions?

Thanks.
 
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
Conditional Formatting Using If Statement On Opening Of Workbook Bill Foley Excel Worksheet Functions 11 October 19th 05 11:18 PM
dates and if statement work on one sheet, not on another John Brown Excel Worksheet Functions 3 September 8th 05 12:58 AM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
Is it an If statement? Steve Excel Worksheet Functions 4 January 9th 05 09:14 PM
How do I set If Statement to set Priorities, off of dates due? K Svoboda Excel Discussion (Misc queries) 4 January 5th 05 03:45 PM


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