+ Reply to Thread
Results 1 to 3 of 3

problem with entering month of the year

  1. #1
    S S
    Guest

    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. #2
    RWS
    Guest

    RE: problem with entering month of the year

    Couldn't use just use Edit>find 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. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    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,""})

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1