+ Reply to Thread
Results 1 to 4 of 4

Cross Referencing Spreadsheets Query

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    Australia
    MS-Off Ver
    2015
    Posts
    2

    Question Cross Referencing Spreadsheets Query

    Hi,

    I'm trying to put together a small automated timesheet system for a workplace and I have a basic set up where you can manually assign a job to a person on a master spreadsheet and it'll appear on their personal spreadsheet where they can enter their hours. I want to be able to move the time they've entered back to the master spreadsheet but the best I've been able to come up with is a whole bunch of IF formulas which check the person's name one by one. For example:
    =IF($E3="All Staff",SUM('[Person 1.xlsx]Hour Tracker'!G4, '[Person 2.xlsx]Hour Tracker'!G4, '[Person 2.xlsx]Hour Tracker'!G4),IF($E3="Person 1",'[Person 1.xlsx]Hour Tracker'!G4,IF($E3="Person 2",'[Person 2.xlsx]Hour Tracker'!G4,IF($E3="Person 3",'[Person 3.xlsx]Hour Tracker'!G4,"")) etc.
    Is there a more efficient way / better formula to do this?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,755

    Re: Cross Referencing Spreadsheets Query

    Welcome to the forum!

    Without seeing the workbook, it is practically impossible to advise.

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-22-2018
    Location
    Australia
    MS-Off Ver
    2015
    Posts
    2

    Re: Cross Referencing Spreadsheets Query

    Hi Ali,

    Thanks for helping out, I'm super new to this. I've hopefully attached a small mock version of the spreadsheet.

    Any advice is appreciated.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,755

    Re: Cross Referencing Spreadsheets Query

    You will need to use INDIRECT. Have a look here: https://exceljet.net/formula/dynamic-workbook-reference

    So this:

    =IF(C2="Employee 1",'C:\Users\Alison\AppData\Local\Temp\[Employee 1.xlsx]Sheet1'!$D$3,IF(C2="Employee 2",'C:\Users\Alison\AppData\Local\Temp\[Employee 2.xlsx]Sheet1'!$D$3,""))

    would become this (untested):

    =INDIRECT("'["&C2&"]Sheet1'!$D$3")

+ 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] Cross-referencing two spreadsheets
    By dance in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-21-2014, 11:07 AM
  2. Cross Referencing from 3 Spreadsheets
    By emma_edi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2013, 11:22 AM
  3. Cross-Referencing Multiple Spreadsheets
    By vlsbnapa in forum Excel General
    Replies: 2
    Last Post: 03-06-2013, 07:09 PM
  4. Replies: 6
    Last Post: 11-08-2011, 08:59 AM
  5. Cross referencing large spreadsheets for overlap
    By excel novice in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2008, 01:33 AM
  6. Cross Referencing two spreadsheets? (vlookup)
    By AnthonyC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2008, 04:35 PM
  7. cross referencing
    By Phil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

Tags for this Thread

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