+ Reply to Thread
Results 1 to 10 of 10

Vlook between multi-pal sheets

  1. #1
    Registered User
    Join Date
    03-01-2008
    Location
    New Jersey USA
    MS-Off Ver
    2007
    Posts
    32

    Vlook between multi-pal sheets

    I have 6 sheets in one workbook

    Sheet 1 is main sheet
    Sheet 2 Vendor A
    Sheet 3 Vendor B

    I am think to solve like this,

    If I enter in Sheet 1, A2 'P' then data enter in Sheet 2, A2
    If I enter in Sheet 1, A3 'B' then date enter in Sheet 3, A2
    If I enter in Sheet 1, A4 'P' then data enter in Sheet 2, A3
    If I enter in Sheet 1, A5 'P' then date enter in Sheet 2, A4
    If I enter in Sheet 1, A6 'B' then date enter in Sheet 3, A3

    PLEASE HELP

  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
    52,936

    Re: Vlook between multi-pal sheets

    I think you are going to need to upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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
    Registered User
    Join Date
    03-01-2008
    Location
    New Jersey USA
    MS-Off Ver
    2007
    Posts
    32

    Re: Vlook between multi-pal sheets

    Here is test workbook
    Attached Files Attached Files

  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
    52,936

    Re: Vlook between multi-pal sheets

    What determines which sheet gets selected?

    I know you put B and N, but Im sure that is very simplistic, and you probably have more sheets?

    Im thinking that INDIRECT is what we need here, but for that to work, I need to have something (other than B) to link the sheet name to

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Vlook between multi-pal sheets

    Try

    Put in sheet1

    J2=Sheet3
    J3=Sheet2
    K2=N
    K3=B

    Now put below formula in sheet2

    A2=IFERROR(INDEX(Sheet1!$B$2:$E$250,AGGREGATE(15,6,ROW(Sheet1!$B$2:$B$5)-ROW(Sheet1!$B$2)+1/(Sheet1!$A$2:$A$5=VLOOKUP(MID(CELL("filename",$B$1),SEARCH("]",CELL("filename",$B$1))+1, SEARCH("]",CELL("filename",$B$1))-SEARCH("[",CELL("filename",$B$1))-1),Sheet1!$J$2:$K$3,2,0)),ROWS(A$2:A2)),MATCH(Sheet2!A$1,Sheet1!$B$1:$E$1,0)),"")

    above formula will automatically insert data in respected sheet.

    Check the attachment.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlook between multi-pal sheets

    Note that the AGGREGATE function requires Excel 2010 or later.

    The OP's profile says they're using Excel 2007.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Vlook between multi-pal sheets

    Thanks for pointing issue Mr.Biff.

    Then you can amend above post #5 formula with below one.

    A2=IFERROR(INDEX(Sheet1!$B$2:$E$250,SMALL(IF(Sheet1!$A$2:$A$250=VLOOKUP(MID(CELL("filename",$B$1),SEARCH("]",CELL("filename",$B$1))+1,SEARCH("]",CELL("filename",$B$1))-SEARCH("[",CELL("filename",$B$1))-1),Sheet1!$J$2:$K$3,2,0),ROW(Sheet1!$B$2:$B$250)-ROW(Sheet1!$B$2)+1),ROWS(A$2:A2)),MATCH(Sheet2!A$1,Sheet1!$B$1:$E$1,0)),"") with control+Shift+Enter as it is an array formula

    Check attached file.

    Quote Originally Posted by Tony Valko View Post
    Note that the AGGREGATE function requires Excel 2010 or later.

    The OP's profile says they're using Excel 2007.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-01-2008
    Location
    New Jersey USA
    MS-Off Ver
    2007
    Posts
    32

    Re: Vlook between multi-pal sheets

    Thank you Mr. Shukla

    Now I try this in my original workbook.

    Thanks Again

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Vlook between multi-pal sheets

    Glad to help you.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED and add reputation by clicking star * icon left corner on your screen.. Thanks.

  10. #10
    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
    52,936

    Re: Vlook between multi-pal sheets

    shukla.ankur281190 I think OP said they were going to go and try that, not that it worked

+ 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. Multi or two way vlook up and index match tutorial
    By SIEMON7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2013, 10:25 PM
  2. [SOLVED] multi sheets
    By peter renton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2013, 09:06 AM
  3. Replies: 0
    Last Post: 10-07-2012, 01:41 PM
  4. VLOOK UP To return Multi Values. Possible List?
    By jesz1987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2011, 03:49 AM
  5. combining multi sheets into 1
    By MrSales in forum Excel General
    Replies: 1
    Last Post: 05-01-2009, 02:12 AM
  6. [SOLVED] add values using vlookup over multi sheets
    By Noemi in forum Excel General
    Replies: 15
    Last Post: 10-23-2005, 12:42 PM
  7. Vlook up for matching data in two seperate sheets
    By funky via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 06-03-2005, 06:05 PM
  8. Do..Loop in multi sheets
    By norika in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-26-2005, 04:58 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