+ Reply to Thread
Results 1 to 5 of 5

Pull data from multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    1

    Pull data from multiple sheets

    Hey all,

    Just found this forum and it looks super useful. Apologies if this is in the wrong thread - just had a quick question.

    I'm working on a sheet trying to keep track on which client is working with which employee. The first sheet shows tracking for the year and each additional sheet is the month. Basically the Yearly sheet is there so I can quickly control+f "client name" and see which employee he or she is working with.

    I attached a simple version of the workbook but basically it basically looks like this: Yearly sheet - Row 1 is the employees name, Row 2 is the month, and the rows after that are the clients name until it gets to the next month. January sheet - cell A1 says client, Cell B1 says employee. I'm inputing the clients in column A and the employee in column B and using this formula for the Yearly sheet (starting in row 3) =IF(January!$B2=Yearly!A$1,January!$A2,"")

    This is working for what it's supposed to do, but it's not pretty and leaves a lot of of blank cells. Is there a simpler way of doing this?

    YearlyClientsEmployees.xlsx
    Last edited by FDibbins; 06-04-2014 at 11:15 PM.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Having some trouble using the IF function

    Maybe something like this, pls have a look at the file attach

    Regards
    Attached Files Attached Files

  3. #3
    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,047

    Re: Pull data from multiple sheets

    Hi and welcome to the forum

    Please take a moment to read the forum rules regarding giving your thread a title that is more descriptive of your problem (think google search terms?). I have changed it for you - this time

    My 1st question to you would be - why the need to have each month entered into a separate sheet? If you enter all data onto 1 sheet, then you can easily do extracts to other sheets if needed
    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

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Pull data from multiple sheets

    Try this Array Formula. Since this is an an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. after placing the formula in the cell, hold down the Ctrl+Shift and then press Enter.)

    In A3

    =IFERROR(INDEX(January!$A$2:$A$8,SMALL(IF(January!$B$2:$B$8=A$1,ROW(January!$A$2:$A$8)-ROW(January!$A$2)+1),ROWS(A$3:A3))),"")
    then drag across and down.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pull data from multiple sheets

    pulling in month from Row 2

    =IFERROR(INDEX(INDIRECT(A$2&"!$A$1:$A$100"),(SMALL(IF(INDIRECT(A$2&"!$b$1:$b$100")=A$1,ROW($B$1:$B$100)),ROWS($D$1:D1)))),"")
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Having trouble with the IF Function.
    By nikkismella1 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-26-2011, 05:12 AM
  2. Having trouble with a function
    By Gemstar in forum Excel General
    Replies: 4
    Last Post: 06-08-2011, 10:55 AM
  3. Trouble with a function
    By sperl in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-23-2009, 03:07 AM
  4. Trouble with RSq function in VBA
    By puckalicious in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2008, 08:36 PM
  5. IF function trouble
    By raye in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-06-2005, 09:05 PM

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