#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default DATE FORMULA

I have data with date of commissionings of three finantial years. I want to
put the numbers instead of dates ex:01/04/2004 to 01/03/2005 (in between
these years) as 1 and 01/04/2005 to 01/03/2006 as 2 and 01/04/2006 up to
current as 3. I have many different dates in between these years, already I
use IF & datevalue functions. but I'm not getting result accurately.
NOTE : There are some d.o.comm are there before 01/04/2004 also they are
also comes under 1 category.
Kindly give any assistiance please as soon as possible.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default DATE FORMULA

Try:
=IF(A1<=DATEVALUE("01/03/05"),1,IF(AND(A1=DATEVALUE("01/04/05"),A1<=DATEVALUE("01/03/06")),2,3))

What happens to dates from March 2nd to March 31st?

HTH

"deepak bsg" wrote:

I have data with date of commissionings of three finantial years. I want to
put the numbers instead of dates ex:01/04/2004 to 01/03/2005 (in between
these years) as 1 and 01/04/2005 to 01/03/2006 as 2 and 01/04/2006 up to
current as 3. I have many different dates in between these years, already I
use IF & datevalue functions. but I'm not getting result accurately.
NOTE : There are some d.o.comm are there before 01/04/2004 also they are
also comes under 1 category.
Kindly give any assistiance please as soon as possible.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default DATE FORMULA

Thanks for prompt reply, already I used the formula what u have specified(But
I tried u r formula also). When I'm using the formula it is not satisfying
the condition i.e ex: 31/10/2004 has to show in 2 according to our formula
but it is showing 1. & for this date also 30/06/2005 has to show 2, but it is
showing 3.
assume & help me please as early as possible.

"Toppers" wrote:

Try:
=IF(A1<=DATEVALUE("01/03/05"),1,IF(AND(A1=DATEVALUE("01/04/05"),A1<=DATEVALUE("01/03/06")),2,3))

What happens to dates from March 2nd to March 31st?

HTH

"deepak bsg" wrote:

I have data with date of commissionings of three finantial years. I want to
put the numbers instead of dates ex:01/04/2004 to 01/03/2005 (in between
these years) as 1 and 01/04/2005 to 01/03/2006 as 2 and 01/04/2006 up to
current as 3. I have many different dates in between these years, already I
use IF & datevalue functions. but I'm not getting result accurately.
NOTE : There are some d.o.comm are there before 01/04/2004 also they are
also comes under 1 category.
Kindly give any assistiance please as soon as possible.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default DATE FORMULA

31/10/04 is betwen 01/04/04 amd 01/03/05 therefore is 1 not 2!

30/06/05 shows 2 in my worksheet!

Check your data.

"deepak bsg" wrote:

Thanks for prompt reply, already I used the formula what u have specified(But
I tried u r formula also). When I'm using the formula it is not satisfying
the condition i.e ex: 31/10/2004 has to show in 2 according to our formula
but it is showing 1. & for this date also 30/06/2005 has to show 2, but it is
showing 3.
assume & help me please as early as possible.

"Toppers" wrote:

Try:
=IF(A1<=DATEVALUE("01/03/05"),1,IF(AND(A1=DATEVALUE("01/04/05"),A1<=DATEVALUE("01/03/06")),2,3))

What happens to dates from March 2nd to March 31st?

HTH

"deepak bsg" wrote:

I have data with date of commissionings of three finantial years. I want to
put the numbers instead of dates ex:01/04/2004 to 01/03/2005 (in between
these years) as 1 and 01/04/2005 to 01/03/2006 as 2 and 01/04/2006 up to
current as 3. I have many different dates in between these years, already I
use IF & datevalue functions. but I'm not getting result accurately.
NOTE : There are some d.o.comm are there before 01/04/2004 also they are
also comes under 1 category.
Kindly give any assistiance please as soon as possible.

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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


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