Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
S S
 
Posts: n/a
Default problem with entering month of the year

I am using the following formula to display in cell xx £200 ( I have
altered this slightly as it used to display two different values, 150/200 to
200/200)

=CHOOSE(MATCH(D7,{0;5;7;11},1),"",200,200,"")

The value (£s) is triggered by the month of the year 06/07/08/09 etc, I had
a person fill in the form using Sept rather than 09 and the displayed N/A

Is there a way around this? Or does it just complicate things too much.

thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RWS
 
Posts: n/a
Default problem with entering month of the year

Couldn't use just use Editfind and replace to change the months back to
figures
--
RWS


"S S" wrote:

I am using the following formula to display in cell xx £200 ( I have
altered this slightly as it used to display two different values, 150/200 to
200/200)

=CHOOSE(MATCH(D7,{0;5;7;11},1),"",200,200,"")

The value (£s) is triggered by the month of the year 06/07/08/09 etc, I had
a person fill in the form using Sept rather than 09 and the displayed N/A

Is there a way around this? Or does it just complicate things too much.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default problem with entering month of the year


You could amend formula to cope with Text months only

=CHOOSE(MATCH(MONTH("1-"&D7),{0;5;7;11},1),"",200,200,"")

or to handle either "sept" or 09

=CHOOSE(MATCH(IF(ISTEXT(D7),MONTH("1-"&D7),D7),{0;5;7;11},1),"",200,200,"")

although it might be simpler to use LOOKUP rather than CHOOSE/MATCH

=LOOKUP(IF(ISTEXT(D7),MONTH("1-"&D7),D7),{0;5;7;11},{"",200,200,""})


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

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
how to insert month date year and day of week Sachi Noma Excel Discussion (Misc queries) 3 May 19th 06 03:03 AM
Locate month and year from range of date from another sheet Rao Ratan Singh New Users to Excel 3 March 1st 06 07:55 AM
Sort by Month and Year Yoshi Excel Discussion (Misc queries) 1 February 2nd 06 11:03 PM
How to sort by day and month while ignoring year? Robert Judge Excel Worksheet Functions 4 December 23rd 04 11:37 PM
create a date from year, day and month Baerbel Excel Worksheet Functions 3 November 13th 04 06:46 PM


All times are GMT +1. The time now is 08:53 PM.

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"