+ Reply to Thread
Results 1 to 7 of 7

Descriptions based on cell value

Hybrid View

  1. #1
    Registered User
    Join Date
    12-27-2006
    Posts
    10
    Well my little idea worked until the sheet grew to 8 descriptions.. haha (I guess excel is limited to 7 statements in one formula)..

    Can anyone else give me some guidance on using vlookup? I have read the help files but I cannot see how to format it to have multiple results.

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Try using the VLOOKUP function. On your descriptions sheet, add a column before the descriptions so it's like this (the "." are there for spacing):

    .....A.......................B
    1 BASIC......This is a Basic Description
    2 SS..........This is a SS Description
    3 FL...........This is a FL Description
    .
    .
    8 SRC.........This is a SRC Description

    Then, on your main sheet, use this formula to pull out the 'BASIC', 'SS', etc. from after the hyphen and search for that text in the lookup array on the Description Sheet:

    =VLOOKUP(RIGHT(A1,LEN(A1)-FIND("-",A1)),Sheet2!A1:B8,2,0)

    This assumes that all part numbers are in the format "randomtext-YOURCODE". If there is data formatted with multiple hyphens, or such that it is "randomtext-randomtextYOURCODE" then this won't work properly.

  3. #3
    Registered User
    Join Date
    12-27-2006
    Posts
    10
    Thank you! That is exactly what I needed!

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Glad I could help.

+ 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