#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default IF Date formula

I need to a formula that says if a cell (B5) equals a certain month between
11/1 and 3/31 then it's a winter month and therefore give me a price from
cell (W54). If it's a summer month between 4/1 and 10/31 then it gives me the
price from W55.

I have this but it's not working:

=IF(AND(B5=11/1/2006,B5<=3/31/2007),W54,W55)

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default IF Date formula

To make Excel treat your dates as dates, enter them as

DATE(2006,11,1)
and
DATE(2007,3,31)


"Daniel Q." wrote:

I need to a formula that says if a cell (B5) equals a certain month between
11/1 and 3/31 then it's a winter month and therefore give me a price from
cell (W54). If it's a summer month between 4/1 and 10/31 then it gives me the
price from W55.

I have this but it's not working:

=IF(AND(B5=11/1/2006,B5<=3/31/2007),W54,W55)

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default IF Date formula

Change it to this: =IF(AND(B5=DATE(2006,11,1),B5<=DATE(2007,3,31),W5 4,W55)
--
Brevity is the soul of wit.


"Daniel Q." wrote:

I need to a formula that says if a cell (B5) equals a certain month between
11/1 and 3/31 then it's a winter month and therefore give me a price from
cell (W54). If it's a summer month between 4/1 and 10/31 then it gives me the
price from W55.

I have this but it's not working:

=IF(AND(B5=11/1/2006,B5<=3/31/2007),W54,W55)

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default IF Date formula

Assuming you don't want to update this formula each year, try this:
=IF(OR(MONTH(B5)=11,MONTH(B5)<=3),W54,W55)

"Daniel Q." wrote:

I need to a formula that says if a cell (B5) equals a certain month between
11/1 and 3/31 then it's a winter month and therefore give me a price from
cell (W54). If it's a summer month between 4/1 and 10/31 then it gives me the
price from W55.

I have this but it's not working:

=IF(AND(B5=11/1/2006,B5<=3/31/2007),W54,W55)

Thanks for your help.

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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


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