+ Reply to Thread
Results 1 to 7 of 7

How to vlookup from one sheet to answer another sheet when data is not in ascending ordr

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Post How to vlookup from one sheet to answer another sheet when data is not in ascending ordr

    Hi all,

    HOW TO VLOOKUP FROM ONE EXCEL SHEET TO (ANSWER) ANOTHER SHEET WHEN DATA IS NOT IN ASCENDING ORDER,(OR USING INDEX MATCH FUNCTION).

    I HAVE ATTACHED SAMPLE FILE FOR THE REFERENCE...IN THAT

    IF IN STOCK DETAILS FILE COLUMN D HAS PABW040804(MEANS CELL C5 in sheet1)SO ANSWER SHOULD COME FROM COLUMN H FROM STOCK DETAILS FILE(MEANS QTY/PCS)

    KINDLY DO THE NEEDFUL
    THANKS IN ADVANCE

    Dev.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    If I understand you correctly, you want to find Code PABW0408040 (from sheet1 C5) and search for that code in Stock Details sheet, and the return the value in column Hon that sheet.

    I cannot find PABW0408040 on any other sheet, which sheet and column is it supposed top be in?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    Dear sir,

    I want to search the code exactly which is in sheet1 C5 from sheet "stock details" if it found get the PCS from the H column. for example this time you consider cell 15 in shee1.

    If code PABW0607040 is available in column C in "STOCK DETAILS" answer should be 20 from column H (cell H15) from sheet stock details, in cell E13 of sheet1.

    If code is not exist keep cell blank.

    kindly help

    thanks in advance.

    Dev

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    Try this, copied down...
    =IFERROR(VLOOKUP(C5,'Stock Details'!$C$3:$C$117,6,0),"")

    But I could not find any matches in your data

  5. #5
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    Sir
    thank so much for trying for me but
    Its not working as I want..

    Dev

  6. #6
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    Hi all,

    =OFFSET('Stock Details'!$C$1,MATCH("PABW0608040",'Stock Details'!$C$2:$C$114,0),5)

    I am using the formula above which works just fine, however it returns a #N/A when the criteria do not match

    I would like the formula to return a blank cell.

    plz help

    Dev.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to vlookup from one sheet to answer another sheet when data is not in ascending or

    Quote Originally Posted by devawad View Post
    Sir
    thank so much for trying for me but
    Its not working as I want..

    Dev
    what is it doing? saying what you did does not help us to fix it, and I did tell you I could not find any matches in your data?

    If =OFFSET('Stock Details'!$C$1,MATCH("PABW0608040",'Stock Details'!$C$2:$C$114,0),5)
    is working for you, wrap it in IFERROR() to error-trap...
    =IFERROR(OFFSET('Stock Details'!$C$1,MATCH("PABW0608040",'Stock Details'!$C$2:$C$114,0),5),"")

+ 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. Vlookup to filter data from 2 sheet and compile to one sheet??
    By Superslinky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 07:21 PM
  2. Arrange the sheet name in ascending order
    By PRADEEPB270 in forum Excel General
    Replies: 2
    Last Post: 05-13-2013, 08:08 AM
  3. Linking data from sheet to sheet and VLOOKUP?
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-08-2011, 11:50 AM
  4. Extracting specific data from an XLS survey answer sheet
    By jsad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2011, 03:42 PM
  5. [SOLVED] VBA and use vlookup from one sheet to copy data from another sheet
    By sverre in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 09:24 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