Creating a second sheet based on specific values from first sheet

darmok_jalad

New Member
Joined
Feb 22, 2022
Messages
4
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
I'm hitting my head against the wall on this one....

So I have an issue where I'm tracking over time, the date it occurs, and a rolling count of how many hours each employee has. Easy and done. The part I'm struggling with is writing a code that would allow me (or someone else who isn't as savvy with Excel) to put in the current days' overtime information, and automatically copy anything with today's date on it onto a second worksheet, think as a log of who did overtime specific to that day.

NameEmployee #Total OT HoursDate of OTOT Hours Credited
Joe12345482/21/220
Bill56789522/22/224


So in this example, let's say I were to change Joe to 2/23/22 with 8 hours (my actual sheet adds it and drops the latest date to the bottom) is there a way to create a code that will pull anything that has today's date (lets say 2/23/22 is today) and copy the entire row automatically, and paste it into a separate table in a new worksheet to keep a rolling log of daily activities?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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