+ Reply to Thread
Results 1 to 2 of 2

Is VLOOKUP/HLOOKUP The Right Tool

  1. #1
    Registered User
    Join Date
    08-01-2007
    Posts
    1

    Is VLOOKUP/HLOOKUP The Right Tool

    I am trying to accomplish something and I think that HLOOKUP and/or VLOOKUP is what I need but I have not been able to get it right. I have large grid in Sheet1: (example)
    Please Login or Register  to view this content.
    In a seperate worksheet (sheet2) I have a listing of items where the first four characters would match the items in column 1 (A301) and the 5th and 6th characters would match up with the items in row 1(AN), and need a formula that could use that data to populate the number pulled from that combo. So that if column 1 listed an item as A304AN03, that the formula in column 2 would reflect 460 as the value. Is that possible? Am I making any sense?

    Thanks in advance!
    Ajax

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by ajax
    I am trying to accomplish something and I think that HLOOKUP and/or VLOOKUP is what I need but I have not been able to get it right. I have large grid in Sheet1: (example)
    Please Login or Register  to view this content.
    In a seperate worksheet (sheet2) I have a listing of items where the first four characters would match the items in column 1 (A301) and the 5th and 6th characters would match up with the items in row 1(AN), and need a formula that could use that data to populate the number pulled from that combo. So that if column 1 listed an item as A304AN03, that the formula in column 2 would reflect 460 as the value. Is that possible? Am I making any sense?

    Thanks in advance!
    Ajax
    Hi,

    try

    =INDEX(Sheet3!$B$2:$E$6,MATCH(LEFT(A1,4),Sheet3!$A$2:$A$6,0),MATCH(RIGHT(A1,2),Sheet3!$B$1:$E$1,0))

    where A1 is A302AN etc, and sheet3 contains the table above.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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