Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
barnsey11
 
Posts: n/a
Default IF function using dates ?


Hi there,

I am trying to create a formula used for commision purposes based on 2
dates. Ex: if we offer a promotion for september 9/1/05- 9/30/05 fo 5%
I would like for the a dicount to apply in the cell but it its after
that date then give a 0 discount.

I thought this would work but if does not for when the date is in OCT.

IF(Cell)<="9/30/05",5,0

If works if the date you specified is before 9/30 but not after..
Any help would be greatly appreciated.
Thanks


--
barnsey11
------------------------------------------------------------------------
barnsey11's Profile: http://www.excelforum.com/member.php...o&userid=30494
View this thread: http://www.excelforum.com/showthread...hreadid=501469

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default IF function using dates ?

=if(a1<=date(2005,9,30),5,0)

Or maybe...

=if(text(a1,"yyyymm")="200509",5,0)



barnsey11 wrote:

Hi there,

I am trying to create a formula used for commision purposes based on 2
dates. Ex: if we offer a promotion for september 9/1/05- 9/30/05 fo 5%
I would like for the a dicount to apply in the cell but it its after
that date then give a 0 discount.

I thought this would work but if does not for when the date is in OCT.

IF(Cell)<="9/30/05",5,0

If works if the date you specified is before 9/30 but not after..
Any help would be greatly appreciated.
Thanks

--
barnsey11
------------------------------------------------------------------------
barnsey11's Profile: http://www.excelforum.com/member.php...o&userid=30494
View this thread: http://www.excelforum.com/showthread...hreadid=501469


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
barnsey11
 
Posts: n/a
Default IF function using dates ?


thank you very much


--
barnsey11
------------------------------------------------------------------------
barnsey11's Profile: http://www.excelforum.com/member.php...o&userid=30494
View this thread: http://www.excelforum.com/showthread...hreadid=501469

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
How do I use the excel timeline function with dates in graphs sweet4511 Excel Worksheet Functions 1 August 2nd 05 05:54 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM
Function Won't Calculate -- Sometimes Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 4 April 13th 05 04:38 PM
Finding dates within a date range Marcus Excel Worksheet Functions 2 April 5th 05 02:03 AM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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