xcel VBA Macro to help work scheduling

karnrai

New Member
Joined
Jun 8, 2015
Messages
2
Hi, I am entirely new to Excel and coding in general. I have began to start playing around with it in the simplest form but have the desire to start learning.

I am in dire need of something to help speed up a task that I must do daily at work.

I am working on two Excel Workbooks: one is a master list of all of our employees with columns from monday-sunday and the hours they work; the second one contains daily work hours log with employee names. Currently I look at each name one by one in daily log finding match in the master Workbook and typing in each employees hours for that day.

Question: is there a way to create a VBA macro that matches the names between the two workbooks, and automatically types in the daily hours of that employee if he/she is working - and leaving it blank if they are not?

this is the data, the first workbook is the following:
image removed

Column B is our work force, and column C is what I am trying to automatically capture - employee shift time from the other workbook by name. This is a daily log we post for the workers in the lunch room so they know where they are working for the day This is where the employee shift times are coming from:
image removed

for example, tomorrow Tuesday would capture the information from column J. Let me know if anything else is needed! Thanks so so much.

Any help would be appreciated!!!!!!!!

<tbody>
[TD="class: votecell"]

[/TD]
[TD="class: postcell"]
[/TD]

</tbody>
 
Last edited by a moderator:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Its pretty much the same except you redirect your references to the other workbook,

Also you could try a two dimensional lookup,

Here i've created this one and i think its just what you need.

https://www.dropbox.com/s/rpkbsd5asm0u9ws/Two Dimmensional Lookup.xlsx?dl=0

oh and ignore G1:H2 on sheet 2 that was just a test to get it to work. G1:H2 on sheet one is what you need
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top