+ Reply to Thread
Results 1 to 3 of 3

Moving cells within a formula (forumula includes cells from several tabs within 1 workbook

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1

    Moving cells within a formula (forumula includes cells from several tabs within 1 workbook

    I have an interesting challenge for the excel guru out there. I have a workbook that has a tab for Quarter-to-date employee data and then seperate tabs after that for Month-to-date data for employees. The Quarter-to-date tab has two formulas per employee that pulls data from each of the Month-th-date tabs. If we never added or removed any employees from any of the tabs this would be fine. However, when we add an employee, for example, in alphabetical order that requires us to insert row(s) which moves the cells that are linked to formulas. For example, Jack Doe's formula in the QTD "Billables" cell is the following: [=Dec.12!C9+Nov.12!C9+Oct.12!C9]. If we add employee in the row right above him in December that pushes his cells down to C10 instead of C9 and thus throws the formula off. How can we link all cells connected with a certain person's name to a formula in another tab of the same workbook? I have attached the sample woExcel Example.xlsxrkbook I'm referring to

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Moving cells within a formula (forumula includes cells from several tabs within 1 work

    In your blank cell in D8 I put the following formula (and then set the text colour to white so that it couldn't be seen)

    =MAX(IF(Dec.12!$A$8:$A$10 & " " & Dec.12!$B$8:$B$10 & " QTD"=A6,ROW($A$8:$A$10)))

    This is an array formula, so must be entered with Ctrl-Shift-Enter, not just enter.

    Then in E8 I went with:

    =INDEX(Dec.12!C:C,$D8)+INDEX(Nov.12!C:C,$D8)+INDEX(Oct.12!C:C,$D8)

    Dragged across to F8, and then cells D8:F8 could be copied down to the next employees.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Moving cells within a formula (forumula includes cells from several tabs within 1 work

    VBA solution.

    consolidate all data from all sheets on on summary sheet and after that made an pivot table of it.

    see the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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