Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Access Newbie looking for help
 
Posts: n/a
Default IF(AND function is not working

Why won't my IFAND function work. below are the columns in my worksheet and
example of the data that is in each column. However, my formula is returning
a " " or blank cell instead of the number 1 for dates that are greater than
12/1/2004 and less than 1/1/2006

Function Costcenter
unit date

A B
C D
IF(AND(D212/1/2004,D2<1/1/2006),1,"") 1200120 3465
8/1/2005

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default IF(AND function is not working

Looks like 12/1/2004 and 1/1/2006 are division problems to Excel
Try:
=IF(AND(D2DATE(2004,1,12),D2<DATE(2006,1,1)),1,"" )
Beege


"Access Newbie looking for help"
. com wrote in message
...
Why won't my IFAND function work. below are the columns in my worksheet
and
example of the data that is in each column. However, my formula is
returning
a " " or blank cell instead of the number 1 for dates that are greater
than
12/1/2004 and less than 1/1/2006

Function Costcenter
unit date

A B
C D
IF(AND(D212/1/2004,D2<1/1/2006),1,"") 1200120 3465
8/1/2005



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Socal Analyst looking for help
 
Posts: n/a
Default IF(AND function is not working

Beege's advise helped and corrected my error

"Access Newbie looking for help" wrote:

Why won't my IFAND function work. below are the columns in my worksheet and
example of the data that is in each column. However, my formula is returning
a " " or blank cell instead of the number 1 for dates that are greater than
12/1/2004 and less than 1/1/2006

Function Costcenter
unit date

A B
C D
IF(AND(D212/1/2004,D2<1/1/2006),1,"") 1200120 3465
8/1/2005

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Socal Analyst looking for help
 
Posts: n/a
Default IF(AND function is not working

That was the problem, thank you for your hlep Beege

"Beege" wrote:

Looks like 12/1/2004 and 1/1/2006 are division problems to Excel
Try:
=IF(AND(D2DATE(2004,1,12),D2<DATE(2006,1,1)),1,"" )
Beege


"Access Newbie looking for help"
. com wrote in message
...
Why won't my IFAND function work. below are the columns in my worksheet
and
example of the data that is in each column. However, my formula is
returning
a " " or blank cell instead of the number 1 for dates that are greater
than
12/1/2004 and less than 1/1/2006

Function Costcenter
unit date

A B
C D
IF(AND(D212/1/2004,D2<1/1/2006),1,"") 1200120 3465
8/1/2005




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default IF(AND function is not working


This is another way

=IF(AND(D2"12/1/2004"+0,D2<"1/1/2006"+0),1,"")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=524488

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
click & drag not working Teresa Excel Discussion (Misc queries) 2 February 25th 06 01:52 AM
amount of working days per month Nigel Excel Discussion (Misc queries) 2 November 29th 05 10:41 AM
Calculation with Working day of the year Box666 Excel Discussion (Misc queries) 4 November 10th 05 06:33 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
Working time and days Nortos Excel Worksheet Functions 5 May 6th 05 04:17 PM


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