#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 106
Default If formula error

I have a date field in column U and I wanted to return an I in this column if
the date in U2 is higher (in the future) then 7/2/2008 - I wrote the below
formula but its returning an E in every case which it should not. Have I
written this wrong?

=IF(U2="7/02/2008","I","E")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default If formula error

You need to ensure the date in quotes is treated as a number, easy way is
with --.

So your entry would be:
=IF(U2=--"7/02/2008","I","E")

--
John C


"Belinda7237" wrote:

I have a date field in column U and I wanted to return an I in this column if
the date in U2 is higher (in the future) then 7/2/2008 - I wrote the below
formula but its returning an E in every case which it should not. Have I
written this wrong?

=IF(U2="7/02/2008","I","E")

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 106
Default If formula error

thanks, that worked!

"John C" wrote:

You need to ensure the date in quotes is treated as a number, easy way is
with --.

So your entry would be:
=IF(U2=--"7/02/2008","I","E")

--
John C


"Belinda7237" wrote:

I have a date field in column U and I wanted to return an I in this column if
the date in U2 is higher (in the future) then 7/2/2008 - I wrote the below
formula but its returning an E in every case which it should not. Have I
written this wrong?

=IF(U2="7/02/2008","I","E")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default If formula error

Always best to use a non-ambguous date format, in case it gets sent abroad

=IF(U2=--"2008-07-02","I","E")

--
HTH

Bob

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

"Belinda7237" wrote in message
...
I have a date field in column U and I wanted to return an I in this column
if
the date in U2 is higher (in the future) then 7/2/2008 - I wrote the below
formula but its returning an E in every case which it should not. Have I
written this wrong?

=IF(U2="7/02/2008","I","E")



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
Formula error Jeremy Excel Discussion (Misc queries) 1 June 20th 08 06:14 PM
error with formula prem New Users to Excel 4 May 3rd 08 01:10 PM
Formula Error DavidB New Users to Excel 10 October 19th 06 06:12 AM
How do I replace "#N/A" error, to continue my formula w/o error? Ali Khan Excel Worksheet Functions 2 February 20th 06 03:49 PM
Formula error Russell Pennington Excel Worksheet Functions 1 January 17th 06 09:09 PM


All times are GMT +1. The time now is 05:17 PM.

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"