+ Reply to Thread
Results 1 to 6 of 6

Excel Match Function not working with Right function.

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Excel Match Function not working with Right function.

    When i use the following formula

    =MATCH(1,$A$24:$A$31,0) --- gives result "1" (correct)

    But when i am trying to use

    =MATCH(RIGHT(A35,1),$A$24:$A$31,0) --gives not available

    where
    =RIGHT(A35,1) -- gives 1


    Cell Value of A35 is - 1_1
    Please correct me.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel Match Function not working with Right function.

    try
    =MATCH(RIGHT(A35,1)+0,$A$24:$A$31,0)

    RIGHT(A35,1) or just RIGHT(A35) is a text number you can make it into a real number by any of
    RIGHT(A35,1)+0
    RIGHT(A35,1)*1
    --RIGHT(A35,1)
    Last edited by martindwilson; 05-16-2013 at 08:57 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    09-11-2009
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: Excel Match Function not working with Right function.

    Hi,
    your formula will be:
    =MATCH(--RIGHT(A35,1),$A$24:$A$31,0)
    --RIGHT(A35,1) is a value, is not a text.

  4. #4
    Registered User
    Join Date
    05-16-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel Match Function not working with Right function.

    @@@martindwilson
    WOW!! Many Thanks!
    Can you please let me know why is that 0 added at the end?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel Match Function not working with Right function.

    see post #2

  6. #6
    Registered User
    Join Date
    05-16-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel Match Function not working with Right function.

    Quote Originally Posted by martindwilson View Post
    see post #2
    Many Thanks. I have been struggling for this since 3 hrs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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