Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 120
Default If Statements with Dates

I am trying to build a If statement using dates, I am getting all True the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default If Statements with Dates

=IF(B65DATE(2006,9,15),"true","")

or

=IF(B65--"2006-09-15","true","")


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Erika" wrote in message
...
I am trying to build a If statement using dates, I am getting all True the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default If Statements with Dates

TRY:

=IF(B1DATEVALUE("15/9/06"),"true","")

"Erika" wrote:

I am trying to build a If statement using dates, I am getting all True the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 120
Default If Statements with Dates

I entered =IF(B65DATEVALUE("15/9/06"),"true","") and got a Value error

"Toppers" wrote:

TRY:

=IF(B1DATEVALUE("15/9/06"),"true","")

"Erika" wrote:

I am trying to build a If statement using dates, I am getting all True the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default If Statements with Dates

It might be easier, if this is something you do often with different dates,
to enter the date you want to check against in a cell. If 9/15/06 is in cell
D1, then
=if(B65$D$1,"True","") works as well. Then you can change the date in cell
D1 at anytime without having to re-enter the formula.

"Erika" wrote:

I am trying to build a If statement using dates, I am getting all True the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default If Statements with Dates

Probably because Toppers uses UK style dates, you use US. Which is why you
should never use ambiguous date strings like that, see my earlier response
on how to overcome it.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Erika" wrote in message
...
I entered =IF(B65DATEVALUE("15/9/06"),"true","") and got a Value error

"Toppers" wrote:

TRY:

=IF(B1DATEVALUE("15/9/06"),"true","")

"Erika" wrote:

I am trying to build a If statement using dates, I am getting all True
the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default If Statements with Dates

Bob,
Good point (and carelessness on my part in my response). I MUST(!)
use the DATE function in future (write out 100 times).

"Bob Phillips" wrote:

Probably because Toppers uses UK style dates, you use US. Which is why you
should never use ambiguous date strings like that, see my earlier response
on how to overcome it.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Erika" wrote in message
...
I entered =IF(B65DATEVALUE("15/9/06"),"true","") and got a Value error

"Toppers" wrote:

TRY:

=IF(B1DATEVALUE("15/9/06"),"true","")

"Erika" wrote:

I am trying to build a If statement using dates, I am getting all True
the
forumla I have built is =IF(B659/15/06,"true","") B65=9/1/06

What am I doing wrong?




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
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements and Dates Sue New Users to Excel 4 April 21st 06 05:02 PM
Dates in IF statements ScottEslick Excel Discussion (Misc queries) 8 January 20th 06 12:49 AM
if statements & dates? Lynn Excel Worksheet Functions 1 September 19th 05 04:19 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


All times are GMT +1. The time now is 07:47 PM.

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"