Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COMPARING DATES with nested IF not working- Syntax is correct though


Hi,

Is it proper to write this in Excel:(The syntax is correct but not
dates format maybe)

=IF(Current_MONTH<=3/31/2006,C7,IF(
(AND(Current_MONTH3/31/2006,Current_MONTH<=6/30/2006)),H7,
IF(Current_MONTH7/1/2006,I7)) ??

It seems that the dates are not being detected properly. the
current_month is: 6/30/2006.

Any ideas/suggestions would be much appreciated. Thank u


--
Richard Flame
------------------------------------------------------------------------
Richard Flame's Profile: http://www.excelforum.com/member.php...o&userid=35944
View this thread: http://www.excelforum.com/showthread...hreadid=560752

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default COMPARING DATES with nested IF not working- Syntax is correct thou

try to use " " on the formula - eg "3/31/2006"

hth
regards from Brazil
Marcelo

"Richard Flame" escreveu:


Hi,

Is it proper to write this in Excel:(The syntax is correct but not
dates format maybe)

=IF(Current_MONTH<=3/31/2006,C7,IF(
(AND(Current_MONTH3/31/2006,Current_MONTH<=6/30/2006)),H7,
IF(Current_MONTH7/1/2006,I7)) ??

It seems that the dates are not being detected properly. the
current_month is: 6/30/2006.

Any ideas/suggestions would be much appreciated. Thank u


--
Richard Flame
------------------------------------------------------------------------
Richard Flame's Profile: http://www.excelforum.com/member.php...o&userid=35944
View this thread: http://www.excelforum.com/showthread...hreadid=560752


  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default COMPARING DATES with nested IF not working- Syntax is correct thou

Current_MONTH<=3/31/2006

is interpreted as 3 divided by 31 divided by 2006.

If Current_MONTH is a numeric date (not text), try DATE(2006, 3, 31) or
(--"3/31/2006"), or 38,807.



"Richard Flame" wrote:


Hi,

Is it proper to write this in Excel:(The syntax is correct but not
dates format maybe)

=IF(Current_MONTH<=3/31/2006,C7,IF(
(AND(Current_MONTH3/31/2006,Current_MONTH<=6/30/2006)),H7,
IF(Current_MONTH7/1/2006,I7)) ??

It seems that the dates are not being detected properly. the
current_month is: 6/30/2006.

Any ideas/suggestions would be much appreciated. Thank u


--
Richard Flame
------------------------------------------------------------------------
Richard Flame's Profile: http://www.excelforum.com/member.php...o&userid=35944
View this thread: http://www.excelforum.com/showthread...hreadid=560752


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
Comparing Dates using Greater Than and Less than waipio2 Excel Discussion (Misc queries) 1 June 7th 05 09:48 PM
working with dates in fiscal years justin_vasko Excel Worksheet Functions 3 May 18th 05 08:39 PM
pivot table dates are out of order how do I correct them D Beals Excel Worksheet Functions 3 May 18th 05 05:55 PM
Is there a way to calculate business working days between dates i. hjyoungii Excel Worksheet Functions 2 February 23rd 05 04:25 PM
Comparing dates in an IF function Paula Excel Worksheet Functions 3 January 12th 05 02:21 PM


All times are GMT +1. The time now is 09:01 AM.

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"