Using dates in Excel 2003

D

dhmilw

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.
 
P

Peo Sjoblom

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
 
D

dhmilw

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%"
 
D

David Biddulph

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top