Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default If Formula involving date -not right

Hello my formula does not work - it does not give me an error message but
the answer is wrong
THis is what I have
Cell a2=date, cell F2=total sales
in cell G2 I have the following formula
=IF(A21/1/2009,F2*15%,IF(A2<1/1/9,F2*17.5%,FALSE))

in PLain english
if the date in cell A2 is greater than or equal to 1/1/2009 then multiple f2
by 15%, if the date in cell A2 is less than 1/1/09 multiply by 17.5% thanks
in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default If Formula involving date -not right

=IF(A2DATE(2009,1,1)F2*15%,F2*17.5%)


--
__________________________________
HTH

Bob

"Marilyn" wrote in message
...
Hello my formula does not work - it does not give me an error message
but
the answer is wrong
THis is what I have
Cell a2=date, cell F2=total sales
in cell G2 I have the following formula
=IF(A21/1/2009,F2*15%,IF(A2<1/1/9,F2*17.5%,FALSE))

in PLain english
if the date in cell A2 is greater than or equal to 1/1/2009 then multiple
f2
by 15%, if the date in cell A2 is less than 1/1/09 multiply by 17.5%
thanks
in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If Formula involving date -not right

This is probably what you're after:
=IF(A2="","",IF(A2= --"1 Jan 2009",F2*15%,F2*17.5%))
Test it out, satisfy yourself that its ok*

p/s: Make it unambiguous when it comes to using dates

*then do a high five here, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"Marilyn" wrote:
Hello my formula does not work - it does not give me an error message but
the answer is wrong
THis is what I have
Cell a2=date, cell F2=total sales
in cell G2 I have the following formula
=IF(A21/1/2009,F2*15%,IF(A2<1/1/9,F2*17.5%,FALSE))

in PLain english
if the date in cell A2 is greater than or equal to 1/1/2009 then multiple f2
by 15%, if the date in cell A2 is less than 1/1/09 multiply by 17.5% thanks
in advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default If Formula involving date -not right

To Excel, 1/1/2009 is 1 divided by 1 divided by 2009. You need to tell it
you have a date. Bob's formula does this for you, but it is missing a comma.
Try:

=IF(A2DATE(2009,1,1),F2*15%,F2*17.5%)

"Marilyn" wrote in message
...
Hello my formula does not work - it does not give me an error message
but
the answer is wrong
THis is what I have
Cell a2=date, cell F2=total sales
in cell G2 I have the following formula
=IF(A21/1/2009,F2*15%,IF(A2<1/1/9,F2*17.5%,FALSE))

in PLain english
if the date in cell A2 is greater than or equal to 1/1/2009 then multiple
f2
by 15%, if the date in cell A2 is less than 1/1/09 multiply by 17.5%
thanks
in advance


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default If Formula involving date -not right

This seems to work properly.

=IF(A2DATEVALUE("1/1/2009"),F2*15%,IF(A2<DATEVALUE("1/1/9"),F2*17.5%,FALSE))


Gord Dibben MS Excel MVP

On Wed, 11 Feb 2009 15:06:00 -0800, Marilyn
wrote:

Hello my formula does not work - it does not give me an error message but
the answer is wrong
THis is what I have
Cell a2=date, cell F2=total sales
in cell G2 I have the following formula
=IF(A21/1/2009,F2*15%,IF(A2<1/1/9,F2*17.5%,FALSE))

in PLain english
if the date in cell A2 is greater than or equal to 1/1/2009 then multiple f2
by 15%, if the date in cell A2 is less than 1/1/09 multiply by 17.5% thanks
in advance




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 involving buckets Taylor Excel Worksheet Functions 2 June 19th 08 09:34 PM
Formula help involving a Time value please. phowe43 Excel Discussion (Misc queries) 3 May 14th 08 10:21 PM
condition formatting involving formula [email protected] Excel Worksheet Functions 2 May 17th 07 02:19 AM
Formula involving a letter that has to have a numeric value Don Excel Worksheet Functions 4 October 6th 06 09:05 PM
Help with a formula involving 3 columns GoodOldGold Excel Worksheet Functions 11 March 6th 05 09:35 PM


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