+ Reply to Thread
Results 1 to 6 of 6

Multiple lookups returning value after string

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Question Multiple lookups returning value after string

    I am currently, just using the RIGHT formula to return the last 4 characters from the cell, but where i run into problems is when the number at the end is double digits, it cuts off the text portion. So i found some other formulas, but they don't quite work yet so I thought of trying to combine these. I thought i could search for the text items, then once found return anything after that. The two new formulas are as follows:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Maybe there is an easier way. Basically, what should happen is the following:

    TEXT EXPECTED RESULT CURRENT RESULT LOOKUP DATA
    MCLBINDVARR1 AAR1 AAR1 ITR
    MCLBINDVMaj1 Maj1 Maj1 MAJ
    MCLBINDVMaj3 Maj3 Maj3 PMR
    MCLBINDVMaj14 Maj14 aj14
    MCLBINDVPMR1 PMR1
    [blank cell]
    Last edited by maddog9486; 11-04-2014 at 02:45 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Multiple lookups returning value after string

    Assuming the text starts in A1, use the formula below and copy down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Re: Multiple lookups returning value after string

    Quote Originally Posted by hoyasaxa215 View Post
    Assuming the text starts in A1, use the formula below and copy down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sorry, forgot to mention that those first 8 characters in that string could vary. So "MCLBINDV" may be something else. My example was just all set to the same.

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Multiple lookups returning value after string

    So you just want whatever is after the first 8 characters? Does this work for you?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Re: Multiple lookups returning value after string

    Wow, that was simple. Forgot all about MID. Thanks Hoya.

  6. #6
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Re: Multiple lookups returning value after string

    Ok, so I have discovered that in the original text column, the first few characters may be 7 or 8 before the required text is needed. For example:

    TEXT EXPECTED RESULT CURRENT RESULT LOOKUP DATA
    MCLBINDVARR1 AAR1 AAR1 ITR
    MCLBINDVMaj1 Maj1 Maj1 MAJ
    MCLBINDVMaj3 Maj3 Maj3 PMR
    MCLBINDVMaj14 Maj14 aj14
    MCLBINDVPMR1 PMR1
    MLCCSBAPMR10 PMR10 MR10

    So you can see that the MID formula works fine when the starting characters (project code) is 8 digits long, but if the project code is only 7 characters, it pulls incorrectly. I think this might be why I was trying to use FIND or SEARCH originally.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2012, 06:35 PM
  2. sub string search returning multiple values
    By AackwardsBassLogic in forum Excel General
    Replies: 2
    Last Post: 05-23-2012, 10:04 PM
  3. Replies: 18
    Last Post: 02-29-2012, 01:10 PM
  4. Returning Values in Cells via V&H lookups
    By sajeel in forum Excel General
    Replies: 1
    Last Post: 08-11-2010, 11:30 AM
  5. building a string based on multiple lookups
    By grisu76 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2008, 08:27 AM

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