Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using dates in Excel 2003

I have a column of dates. If a date falls on 9/1/2008 or later I want 1.5%
to appear in J170. Otherwise I want 0% to appear. I want to use the IF
function. I have written this: =IF(G170=8/31/2008,"1.5%","0%"). It did not
work. I tried =IF(G170<=9/1/2008, "1.5%","0%"). IN the first case it always
returns 1.5%. The 2nd case returns 0%. The date in cell G170 in both cases is
7/25/2008.
--
dhmilw
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Using dates in Excel 2003

Use

If you want it to be real numerical percentage use

=IF(G170=DATE(2008,8,31),0.015,0)

and format the result as percentage

if you want a text result use


=IF(G170=DATE(2008,8,31),"1.5%","0%")



--


Regards,


Peo Sjoblom





"dhmilw" wrote in message
...
I have a column of dates. If a date falls on 9/1/2008 or later I want 1.5%
to appear in J170. Otherwise I want 0% to appear. I want to use the IF
function. I have written this: =IF(G170=8/31/2008,"1.5%","0%"). It did
not
work. I tried =IF(G170<=9/1/2008, "1.5%","0%"). IN the first case it
always
returns 1.5%. The 2nd case returns 0%. The date in cell G170 in both cases
is
7/25/2008.
--
dhmilw



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Using dates in Excel 2003

Thank you. Very helpful. I appreciate that you gave me an option to use text.
My employer wants to see it expressed as "1.5%"
--
dhmilw


"Peo Sjoblom" wrote:

Use

If you want it to be real numerical percentage use

=IF(G170=DATE(2008,8,31),0.015,0)

and format the result as percentage

if you want a text result use


=IF(G170=DATE(2008,8,31),"1.5%","0%")



--


Regards,


Peo Sjoblom





"dhmilw" wrote in message
...
I have a column of dates. If a date falls on 9/1/2008 or later I want 1.5%
to appear in J170. Otherwise I want 0% to appear. I want to use the IF
function. I have written this: =IF(G170=8/31/2008,"1.5%","0%"). It did
not
work. I tried =IF(G170<=9/1/2008, "1.5%","0%"). IN the first case it
always
returns 1.5%. The 2nd case returns 0%. The date in cell G170 in both cases
is
7/25/2008.
--
dhmilw




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Using dates in Excel 2003

So use 1.5%, but don't put it in quotes. A string in quotes is a text
string, not a number.
--
David Biddulph

"dhmilw" wrote in message
...
Thank you. Very helpful. I appreciate that you gave me an option to use
text.
My employer wants to see it expressed as "1.5%"
--
dhmilw


"Peo Sjoblom" wrote:

Use

If you want it to be real numerical percentage use

=IF(G170=DATE(2008,8,31),0.015,0)

and format the result as percentage

if you want a text result use


=IF(G170=DATE(2008,8,31),"1.5%","0%")



--


Regards,


Peo Sjoblom





"dhmilw" wrote in message
...
I have a column of dates. If a date falls on 9/1/2008 or later I want
1.5%
to appear in J170. Otherwise I want 0% to appear. I want to use the IF
function. I have written this: =IF(G170=8/31/2008,"1.5%","0%"). It did
not
work. I tried =IF(G170<=9/1/2008, "1.5%","0%"). IN the first case it
always
returns 1.5%. The 2nd case returns 0%. The date in cell G170 in both
cases
is
7/25/2008.
--
dhmilw






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
Help with dates!! Excel 2003 Susan Excel Discussion (Misc queries) 3 August 21st 08 04:54 PM
Dates in Excel 2003 Dermot Excel Discussion (Misc queries) 5 September 16th 07 04:22 PM
Dates in Excel 2003 Flaco Excel Discussion (Misc queries) 1 January 24th 06 03:32 AM
Excel 2003 dates mdob Excel Discussion (Misc queries) 2 July 14th 05 11:05 PM
dates in Excel 2003 [email protected] Excel Discussion (Misc queries) 3 January 4th 05 11:04 PM


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