We use the attached “Individual Employee Vacation Log” file to enter our employees’ work hours, which determines the amount of vacation they earn. It is set up so all we do is enter their weekly hours and the formulas do the rest of the work. What we need is to have, every week, the most recent “Available Hours” figure from that file automatically populate the “Accrued Hours” cell in the “Accrued Vacation Hours” file. There is a formula there to subtract any vacation hours used to update the vacation balance. Also, if there is a way to automatically update the check date, pay week and week #, that would be a big plus. Any questions, let me know! Thanks for your help, as always!
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Excel macros between two worksheets
Home » Forums » AskWoody support » Microsoft Office by version » Office 2013 for PC » Excel macros between two worksheets
- This topic has 15 replies, 5 voices, and was last updated 3 years, 1 month ago.
Viewing 9 reply threadsAuthorReplies-
anonymous
GuestJanuary 10, 2022 at 4:46 pm #2413231This probably can be done – Excel is a Turing complete language and can do most things – but some types of jobs are meant to be done in databases, not spreadsheets. People, their hours worked, the check number they received. All of this sounds ideal for a database and if you do it in a spreadsheet it will be hard in the future for people to follow your formulas.
-
WSk32rem
AskWoody LoungerJanuary 11, 2022 at 12:12 pm #2414299Thank you for your suggestion. At this time, however, no one where I work uses a database (Access) for anything. We have the program but do not utilize it at this point. Unless there is a way to import the data from Excel to Access, at this point I don’t think it would be worth it to us to “reinvent the wheel”. I am familiar with Access and use it for projects outside of work, but we are a very small company (3 office personnel that use a computer) and we mostly use QuickBooks and Excel.
-
-
anonymous
Guest -
Mike
AskWoody PlusJanuary 11, 2022 at 3:03 pm #2414493I’m certain you can do this, although I’ve never tried it. I think the easiest thing would be to link sheets within a workbook. There’s plenty of examples on the internet such as this one.
https://smallbusiness.chron.com/2-excel-spreadsheets-43626.html
-
WSk32rem
AskWoody LoungerJanuary 19, 2022 at 2:21 pm #2419423Okay, I’m not always the best at explaining my objectives. In the attached Word file is a screenshot of the two aforementioned documents with highlighted cells. My objective is to have Employee #1’s yellow highlighted number in Cell E5 on the lefthand sheet transfer to the yellow highlighted cell (G6) on the righthand sheet. Then the next week it will be Cell E6 on the lefthand sheet that will need to be transferred to Cell G6 on the righthand sheet, and so on down each succeeding week. Obviously, Employee #2 will have to have different references.
Also, it would be great if the “Check Date”, “Pay Week” and “Week Number” fields could be automatically updated each week. I have another file that was set up years ago with the help of either Maudibe (sp?) and/or Zeddy that has a separate sheet for a calendar; then they used formulas that include “IF” and “MATCH” to populate for weekly updates on other sheets. I don’t know how to do any of that, I can just see that’s what they used. Maybe I should put the work sheets in one workbook?
Thanks again for any help!
-
Paul T
AskWoody MVP
-
-
WSk32rem
AskWoody LoungerMarch 16, 2022 at 12:59 pm #2432040Okay, it’s been awhile since I’ve been able to get back to this. Since I’ve changed the screen shot, I will restate my objectives. I have entered only one employee for an example; each employee has its own tab on the actual worsheet:.
Every week I enter the “Total Hours Worked” and the formula calculates the “Wkly Vacation Hours Earned”, which in turn calculates the “Total Vacation Hours Earned”. I then enter any “Vacation Hours Used”, which then calculates the “Available Vac Hours”. There is a formula in “Net Vacation Hours” to account for any vacation hours used the previous week. I know I have to enter the “Total Hours Worked” and “Vacation Hours Used” every week, which is no problem. To reduce data entry errors, can someone come up with a formula to enter into the “Total Vac Hours Earned” and “Vacation Hours Used” on the “Vacation Accrued Hours 2022” worksheet? There is already a simple subtraction formula in the “Available Vac Hrs” (E6). Thanks for any help you can give!
-
Paul T
AskWoody MVPMarch 17, 2022 at 2:49 am #2432158Is there a reason you show hours as decimal instead of HH:MM?
You can enter the time more easily.Net and available vacation hours are the same. Why 2 columns?
Total Hours is =MAX(D:D)
Vac Hours Used is =SUM(F:F)cheers, Paul
-
WSk32rem
AskWoody LoungerMarch 21, 2022 at 11:53 am #2433180 -
Paul T
AskWoody MVPMarch 26, 2022 at 2:51 am #2434368a formula to enter into the “Total Vac Hours Earned” and “Vacation Hours Used” on the “Vacation Accrued Hours 2022” worksheet?
=MAX(D:D) will give you Total Vac Hours Earned. You will need to enter the formula by hand and then point to the sheet and range D:D (click the D column).
=SUM(F:F) gives Vacation Hours Used
cheers, Paul
-
WSk32rem
AskWoody LoungerMarch 31, 2022 at 2:23 pm #2435714Paul, I am sorry I am so dense as to your instructions. I tried entering the formula =MAX(D:D) in the Vacation Accrued Hours worksheet in the Total Vac Hours Earned cell and then tried pointing to Column D in the Attendance Log sheet but I’m not sure that’s correct. Regardless, it didn’t work. I guess I need to be guided specifically the worksheet and cell to enter the formulas. Again, sorry to not understand what you are telling me to do.
-
-
RetiredGeek
AskWoody_MVPMarch 26, 2022 at 7:02 pm #2434497WSk32rem,
Take a look at the formulas in this workbook.
CMV1-0-Employee-Accrued-Vacation-Hours
Note the use of Indirect to matchup with different employees based on Tab name. The formulas in the Summary sheet can be filled down as can the ones in the employee sheets.
For some reason your Net Vacation is .01 off starting in 2/5/2022?1 user thanked author for this post.
-
Paul T
AskWoody MVP
Viewing 9 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Identify a dynamic range to then be used in another formula (Awaiting moderation)
by
BigDaddy07
53 minutes ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
9 hours, 42 minutes ago -
How well does your browser block trackers?
by
n0ads
4 hours, 31 minutes ago -
You can’t handle me
by
Susan Bradley
25 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
5 hours, 22 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
21 hours, 5 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
35 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
21 hours, 29 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
21 hours, 34 minutes ago -
Lumma malware takedown
by
EyesOnWindows
9 hours, 49 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day, 6 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day, 6 hours ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 10 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 10 hours ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 18 hours ago -
Do you have a maintenance window?
by
Susan Bradley
2 hours, 27 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
20 hours, 41 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 21 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
6 hours, 10 minutes ago -
hibernate activation
by
e_belmont
2 days, 6 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 10 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 13 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 13 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 9 hours ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 18 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
3 days, 1 hour ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 days, 8 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 day, 4 hours ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 13 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 11 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.