+ Reply to Thread
Results 1 to 6 of 6

Update spreadsheet values based on separate data, by changing the date in a single cell.

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Update spreadsheet values based on separate data, by changing the date in a single cell.

    I inherited a nightmare pile of spreadsheets in my new job. I work for an energy engineer on a military installation and track the energy usage and costs. My predecessor had a couple of dozen, loosely organized spreadsheets he updated each month with a lot of redundant information.
    The most time consuming is one with all the reimbursable accounts. In the old system, it took two full work days to update all the information, but as I've consilidated the spreadsheets and manage the data better, I'm down to half a day. My goal is to update one cell or the current month, and have all the relevant cells update. So, from two work days, to two minutes.
    The big challenge with this spreadsheet for reimbursables, is that it is generated externally from my organization. So, even though it's poorly designed and clunky, it's the same spreadsheet they've used since 2002 and they aren't going to change it.
    The way I have my data set up is that each energy usage type is on a separate spreadsheet within the workbook. Each month I get readings from the shops who go and read the meters. I have a tab for water, natural gas, and electricity.
    What I would like to do, is to go through each cell where I have to update the reimbursable amount, link it to the meter reading for that month, and have it update based on the new month selection at the top of the worksheet.
    For example, if I change the spreadsheet from September to October 2020, I would like the cell for electricity for 1234 Delaware Ave to gather data from the electricity tab, but move from the September column to October and so on. But there are 50 buildings or so on the spreadsheet, and each has reimbursibles for water, natural gas, and electricity.
    Last edited by smhelgerson72; 11-30-2020 at 11:13 AM. Reason: Adding Dummy Workbook

  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,805

    Re: Update spreadsheet values based on separate data, by changing the date in a single cel

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    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,933

    Re: Update spreadsheet values based on separate data, by changing the date in a single cel

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Re: Update spreadsheet values based on separate data, by changing the date in a single cel

    Hey...Thanks!
    I uploaded a dummy data workbook.
    If you look at the McGuire Tab, this is a scaled version of an external worksheet that I don't have control over. My responsibility is to update each of the yellow cells each month. These are only a few buildings, but there are dozens of reimbursable accounts.
    The other two sheets are a sample of the monthly data I collect.
    Currently, I have to go through each utility worksheet and manually update the reimbursable quantities. What I'd like to do is update the month at the top of the page, and have the usage update in each of the yellow cells. This way, I can change the month, then copy the tab as a new workbook and break the data links and send the spreadsheet out. If I can do this, I think I could reduce my work time from a full day to about ten minutes.

    Thanks in advance!

    Shawn.

  5. #5
    Registered User
    Join Date
    11-20-2020
    Location
    New Jersey
    MS-Off Ver
    365
    Posts
    14

    Cool Re: Update spreadsheet values based on separate data, by changing the date in a single cel

    Got it! Thanks.
    I created a dummy workbook and uploaded it. I also gave a little more information in my response to AliGW.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Update spreadsheet values based on separate data, by changing the date in a single cel

    Perhaps the following would help.
    Rename the McGuire sheet tab so that it reads Sep
    Paste the following formula into cell C146 on the ANG Worksheet sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Paste the following formula into cell E146:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Macro runs but does not separate data based on cell values
    By AccountingJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2018, 07:54 PM
  2. [SOLVED] Excel2010 IF Formula to return value based on a separate date and two separate text values
    By jakecutler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2015, 03:24 AM
  3. Replies: 3
    Last Post: 08-28-2013, 09:26 AM
  4. Replies: 2
    Last Post: 02-01-2013, 02:53 AM
  5. RTD (Real Time Data) Feed: doesn't update separate linked spreadsheet
    By dooredge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-03-2012, 01:04 PM
  6. Replies: 0
    Last Post: 09-04-2012, 04:27 PM
  7. Searching for values based on a single cell, changing row..
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2012, 10:33 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