+ Reply to Thread
Results 1 to 5 of 5

How to find and return value

  1. #1
    Registered User
    Join Date
    11-21-2007
    Posts
    3

    How to find and return value

    This is what I'm trying to do:
    I need to find C1 within a text string C1, C2, C3 and return the value on the next cell in an array. The problem is that the lookup functions do not recognize C1 within the C1, C2, C3 string. Other functions like Find or Search will find the C1 within the C1, C2, C3 but they can not be used in arrays
    Can anyone help me with this one
    Thank you in advance
    Marta

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373
    Hi Marta

    The problem is that the lookup functions do not recognize C1 within the C1, C2, C3 string
    Yes they do, you just have to use wildcards.

    Ex.:

    =VLOOKUP("*c2*",A14:B19,2,0)

    finds c2 inside "c1,c2,c3".

    HTH
    lecxe
    Last edited by lecxe; 11-22-2007 at 03:09 AM.

  3. #3
    Registered User
    Join Date
    11-21-2007
    Posts
    3
    Hello Lecxe,
    Thank you very much for your help
    it really works!
    Please see attach file
    Formula in B2 cell works using your suggestion, however, formula in B3 cell does not work, which is if I want to look for the value in another cell instead of a value itself
    Thank you again
    Marta
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    You have to use absolute reference for the lookuparea. This means putting $ symbol in the cell reference. Then you can copy the formula to the other cells.


    Put this formula in B1 and copy down

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-21-2007
    Posts
    3
    Bjornar and Lecxe,
    Thank you very much for your help
    You have no idea of how much time you have saved me
    I missed the $ in the sheet sample I sent, but I always do that. What I had missing was
    "*"&A1&"*"
    Thank you again, I really appreciate your help
    Marta

+ 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