#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default Date function

I have this function which selects specific months for review dependent on
the month they were set to have actions due.

=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

Is there any way to make this read a date i.e. 31/12/2007 rather than just a
month.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Date function

=IF(AF251="Ongoing","31/12/2007" ....

Is that what you're asking?

Dave
--
Brevity is the soul of wit.


"Pasty" wrote:

I have this function which selects specific months for review dependent on
the month they were set to have actions due.

=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

Is there any way to make this read a date i.e. 31/12/2007 rather than just a
month.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default Date function

What I want it to do is rather than it to just read the month i.e. if someone
input July it would automatically change to the relevant month I want it to
be able to see that if they put in a specific date i.e. 07/07/07 it would see
that it is the month of july involved and apply the same rules to show the
month of review.

"Dave F" wrote:

=IF(AF251="Ongoing","31/12/2007" ....

Is that what you're asking?

Dave
--
Brevity is the soul of wit.


"Pasty" wrote:

I have this function which selects specific months for review dependent on
the month they were set to have actions due.

=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

Is there any way to make this read a date i.e. 31/12/2007 rather than just a
month.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Date function

Your formula outputs a date, it doesn't read one. How does the date input
relate to that formula?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Pasty" wrote in message
...
What I want it to do is rather than it to just read the month i.e. if
someone
input July it would automatically change to the relevant month I want it
to
be able to see that if they put in a specific date i.e. 07/07/07 it would
see
that it is the month of july involved and apply the same rules to show the
month of review.

"Dave F" wrote:

=IF(AF251="Ongoing","31/12/2007" ....

Is that what you're asking?

Dave
--
Brevity is the soul of wit.


"Pasty" wrote:

I have this function which selects specific months for review dependent
on
the month they were set to have actions due.

=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

Is there any way to make this read a date i.e. 31/12/2007 rather than
just a
month.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default Date function

The way it works is that this formula is sat in AG251 (or whichever one)
=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

It then looks at what month is input in AF251 and then puts the relevant
month of review which is based around these rules:

Due
Month of review
Risks with actions due in Nov December
Risk-Action
January
Risks with actions due in December or January February
Risks with actions due in February March
Risks with actions due in March or April May
Risks with actions due in May June
Risks with ongoing actions July
Risks with actions due in June or July August
Risk with actions due in August September
Combined effect of actions October
Risks with actions due in September or October November

The current formula does this but instead of the input for the formula being
a month I would like it to be an actual date where it is clever enough to
pick up what month it is.




"Bob Phillips" wrote:

Your formula outputs a date, it doesn't read one. How does the date input
relate to that formula?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Pasty" wrote in message
...
What I want it to do is rather than it to just read the month i.e. if
someone
input July it would automatically change to the relevant month I want it
to
be able to see that if they put in a specific date i.e. 07/07/07 it would
see
that it is the month of july involved and apply the same rules to show the
month of review.

"Dave F" wrote:

=IF(AF251="Ongoing","31/12/2007" ....

Is that what you're asking?

Dave
--
Brevity is the soul of wit.


"Pasty" wrote:

I have this function which selects specific months for review dependent
on
the month they were set to have actions due.

=IF(AF251="Ongoing","July",IF(AB251="Risk -
Action","January",TEXT(DATEVALUE("01-"&AF251&"-1900")+((MOD(MONTH(DATEVALUE("01-"&AF251&"-1900")),3)=0)+1)*31,"mmmm")))

Is there any way to make this read a date i.e. 31/12/2007 rather than
just a
month.






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
MATCH FUNCTION AND SERIAL DATE CONFLICTS Jones the Scouse Excel Worksheet Functions 4 November 1st 06 01:46 PM
"year" date function scott Excel Discussion (Misc queries) 3 September 11th 06 01:54 PM
Date formulas DRondeau Excel Discussion (Misc queries) 7 September 6th 06 09:53 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM


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