+ Reply to Thread
Results 1 to 8 of 8

Look up non numeric value (upwards)

  1. #1
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Look up non numeric value (upwards)

    Hi,

    I was wondering if someone could point me in the right direction please…

    I have a list (see below) and need to search for entries. There are names and numbers. User will enter a number and I need to show the next name searching upwards.
    The list is very long and we have all in column A.

    For example… a search for 11111111 should return Fred.

    Bob
    32123123
    21321312
    56456566
    Fred
    54656566
    11111111
    34345455
    32434344
    33434344
    Marry
    56677689

    Thanks a lot!

  2. #2
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Look up non numeric value (upwards)

    Does someone have an idea on how I can do that? I cant find a solution.

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Look up non numeric value (upwards)

    Try
    =INDEX($A$2:$A$13;MATCH(MATCH(C2;$A$1:$A$13;0);IF(ISTEXT($A$2:$A$13);ROW($A$2:$A$13))))
    Confirm the formula with Ctrl+Shift+Enter, not just Enter. Use ; or , as separators.
    //Ola
    Attached Files Attached Files
    Mark the problem as Solved under the Yellow bar up Top right, under Thread Tools, when you received a solution.
    It saves time, to skip already solved threads.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Look up non numeric value (upwards)

    @ olasa
    Using your example might this be a non-array alternative?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or with semicolon delimiters ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Look up non numeric value (upwards)

    Thanks.

    I tried this:

    =INDEX(A2:INDEX(A:A;MATCH(C2;A:A;0));MATCH(REPT("z";255);A2:INDEX(A:A;MATCH(C2;A:A;0));1))

    I only get a #N/A.

    ---------- Post added at 09:40 AM ---------- Previous post was at 08:38 AM ----------

    Sorry...it works now. Thanks a lot! :-)

  6. #6
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Look up non numeric value (upwards)

    Now I have to find another thing in a different list (see list below). All will be in column A.
    For example a search with Bob, should return:
    C_bla
    B_foo
    I_bar

    The categories like Bob or Rob are starting with a character from A to Z. On the other hand , the list I need to look up starts with C,B or I followed by _.

    Bob
    C_bla
    B_foo
    I_bar
    Rob
    C_abc
    C_bjg
    I_dfg
    B_asd

    Thanks again fro the great help! :-)

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Look up non numeric value (upwards)

    See if this helps
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-26-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Look up non numeric value (upwards)

    Quote Originally Posted by Marcol View Post
    See if this helps
    Like always... simply great support. Thanks a lot!

+ 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