Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default wanted to use if function by comparing date

I am using if formula and wanted to use date as criteria

for eg.

Cell A Cell B

30/01/2006 =if(cell A.............., x,y)
dd/mm/yyyy

I want to use a date in place of ................... Kindly Suggest
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default wanted to use if function by comparing date

Tyr:-

=IF(DATE(YEAR(A1),MONTH(A1),DAY(A1))TODAY(),"Afte r","Before")

Mike

"Alok Rai" wrote:

I am using if formula and wanted to use date as criteria

for eg.

Cell A Cell B

30/01/2006 =if(cell A.............., x,y)
dd/mm/yyyy

I want to use a date in place of ................... Kindly Suggest

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default wanted to use if function by comparing date

Thanks,

i got the solution

"Mike H" wrote:

Tyr:-

=IF(DATE(YEAR(A1),MONTH(A1),DAY(A1))TODAY(),"Afte r","Before")

Mike

"Alok Rai" wrote:

I am using if formula and wanted to use date as criteria

for eg.

Cell A Cell B

30/01/2006 =if(cell A.............., x,y)
dd/mm/yyyy

I want to use a date in place of ................... Kindly Suggest

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default wanted to use if function by comparing date

Shorter version

=IF(A1TODAY(),"After","Before")


"Mike H" wrote:

Tyr:-

=IF(DATE(YEAR(A1),MONTH(A1),DAY(A1))TODAY(),"Afte r","Before")

Mike

"Alok Rai" wrote:

I am using if formula and wanted to use date as criteria

for eg.

Cell A Cell B

30/01/2006 =if(cell A.............., x,y)
dd/mm/yyyy

I want to use a date in place of ................... Kindly Suggest

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 Date Jac Excel Discussion (Misc queries) 4 October 22nd 06 02:22 PM
Formula for comparing a date to today's date Sellem Excel Worksheet Functions 4 October 5th 06 01:38 PM
FORECAST function isnt producing wanted results lsu-i-like Excel Discussion (Misc queries) 4 August 4th 05 09:53 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM
Comparing Date Fields Cathy Excel Worksheet Functions 1 November 6th 04 01:29 AM


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