+ Reply to Thread
Results 1 to 2 of 2

Tricky index and match

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    13

    Tricky index and match

    Hi! Please see attached worksheet. This is tricky and beyond my Excel skills.

    For each Operation 30, I need to place the correct F & G figure in the manufacturing instructions. So, for the first occurrence on spreadsheet in F4, the detail for the correct product code would come from J38. The second occurrence in F12 would come from J538 and so on.

    Many Thanks. R
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Tricky index and match

    Hi Robbo,

    You can likely use the following function:

    =VLOOKUP(C4,G:J,4,0)

    Note, however, that all of your product codes in column G have trailing spaces after the code. This will cause the VLOOKUP to return "#N/A!" instead of an actual value. To quickly get rid of all of those trailing spaces, do the following:

    Select column G then press CTRL+H to bring up the Replace dialog box. In the "Find what" box, type a space (press the Space Bar once). Leave the "Replace with" box completely empty (no spaces or any other characters). Click "Replace All" then click OK when it states how many replacements were made. Click Close to close the Replace dialog box. (You may want to re-insert the space between Product and Code in cell G1 afterward.)

    Hope that helps!

+ 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