+ Reply to Thread
Results 1 to 5 of 5

Formula to bring up data from one of three worksheets.

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Formula to bring up data from one of three worksheets.

    I have 4 columns of data in three worksheets D1, D2 and D3. In column E on each sheet is a helper column which refers to the data Input in a dropdown list C2 on a Summary sheet.
    The present formula in columns B.C,D on the summary sheet can only draw data from sheet D1. I need help to find a formula that says if the information in C2 is not in sheet D1 then it looks in worksheets D2 or D3 for the information. The data in C2 will only appear on one of the sheets.
    Currently C2 refers to KA1 3RG on worksheet D1 and if I change the data in C2 to KA1 4LY the sheet is blank because that information comes from sheet D3 which, in its present state, the formula does not cover.
    A sample is attached, note that the full data is contained in 3 sheets with 900,000 rows in each sheet.
    Any assistance would be gratefully appreciated
    Thanks
    Mikey
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula to bring up data from one of three worksheets.

    B5: =IFERROR(IFERROR(IFERROR(INDEX(Table1[column 1],SMALL('D1'!$E$4:$E$32,ROW(A1))),INDEX(Table1[column 1],SMALL('D2'!$E$4:$E$32,ROW(A1)))), INDEX(Table1[column 1],SMALL('D3'!$E$4:$E$32,ROW(A1)))), "")

    C5: =IFERROR(IFERROR(IFERROR(INDEX(Table1[column 2],SMALL('D1'!$E$4:$E$32,ROW(B1))),INDEX(Table1[column 2],SMALL('D2'!$E$4:$E$32,ROW(B1)))), INDEX(Table1[column 2],SMALL('D3'!$E$4:$E$32,ROW(B1)))),"")

    D5: =IFERROR(IFERROR(IFERROR(INDEX(Table1[column 3],SMALL('D1'!$E$4:$E$32,ROW(C1))),INDEX(Table1[column 3],SMALL('D2'!$E$4:$E$32,ROW(C1)))), INDEX(Table1[column 3],SMALL('D3'!$E$4:$E$32,ROW(C1)))),"")
    Last edited by JBeaucaire; 10-09-2014 at 11:17 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Formula to bring up data from one of three worksheets.

    Hi, many thanks for your response but it seems the formulae only picks up data from D1 and not from D2 and D3. Not sure how I can reattach the file with the updated formulae in but would appreciate if you could try and resolve. If you put eg KA1 3UJ into C2 the info being extracted is from D1 and not D2 where the helper data is shown, also eg KA1 4LY shows no data when input into C2.
    Would appreciate if you could have another look.
    Rgds

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula to bring up data from one of three worksheets.

    Here's a whole new approach. We'll look up the sheet one time in cell D2, and count how many items there are one time in E2. Then all the formulas in the table will Indirectly reference the chosen sheet in D2.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Formula to bring up data from one of three worksheets.

    Awesome, dont really understand it but it works each time.
    Thank you ever so much
    Best regards
    Mikey

+ 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. [SOLVED] Need formula to bring data (If or any conditions)
    By raysrains in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 05:14 AM
  2. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  3. How to bring second worksheets data in Userform ListBox2 ?
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2014, 02:12 PM
  4. Formula to Find same data in a second workbook and bring associated data
    By nzginga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2011, 03:39 PM
  5. Bring through data on to different worksheets?
    By greeng66 in forum Excel General
    Replies: 2
    Last Post: 01-06-2011, 08:43 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