+ Reply to Thread
Results 1 to 5 of 5

Help with Vlookup to Cross Ref Items and Prices

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Help with Vlookup to Cross Ref Items and Prices

    I need help with VLookup. In a worksheet named products I have a column of item numbers. I also have equivalent competitive item numbers. In the final XRF worksheet I'm trying to use VLOOKUP to make the cross reference and return the competitive price in its respective column in the XRF worksheet.
    So in the XRF worksheet I'm looking for the same item number in the products worksheet. If equal I want the Column B in XRF to be the item's OEM number.

    then I'd like the subsequent columns to lookup their cross reference number and return the price in that column.

    =IF(ISNA(VLOOKUP($A$2:$A$47,products!$A$2:$A$655,1,TRUE))," ",VLOOKUP($A$2:$A$654,products!$A$2:$A$655,"2"))

    I've attached the file. Hope someone can help. Thanks
    Last edited by nander; 09-06-2006 at 09:59 AM.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    When I changed your formula in the XRF worksheet in Cell B2 to this

    =IF(ISNA(VLOOKUP(A2,products!$A$2:$B$655,2,FALSE))," ",VLOOKUP(A2,products!$A$2:$B$655,2,FALSE))
    it returns the OEM number from the products worksheet. I couldn't really follow the rest of what you wanted but I hope this puts you in the right direction.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Okay looks good, got another question

    Look at the XRF worksheet. I'd like the value of cell C19 to be 786.26, which comes from the RDUCANE worksheet cell C115. What do I change the formula to read the products worksheet and the RDUCANE worksheet and write the value of that cell in RDUCANE worksheet to the XRF worksheet. I've attached the updated worksheet.
    Last edited by nander; 09-06-2006 at 10:01 AM.

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Your RDucan and WDucan spreadsheets are the same data. Is this a mistake? Not sure I can help you any further unless this is corrected.


    Quote Originally Posted by nander
    Look at the XRF worksheet. I'd like the value of cell C19 to be 786.26, which comes from the RDUCANE worksheet cell C115. What do I change the formula to read the products worksheet and the RDUCANE worksheet and write the value of that cell in RDUCANE worksheet to the XRF worksheet. I've attached the updated worksheet.

  5. #5
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    Updated spreadsheet as requested

    The RDUCANE & WDUCANE will differ by the price in the price column. However I removed the DUC. prefix from the items in the RDUCANE worksheet.

    I've uploaded the new version of the spreadsheet.
    Attached Files Attached Files
    Last edited by nander; 09-06-2006 at 10:04 AM.

+ 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