VBA Help. Find equal value in different columns

DeadlyGentleman

New Member
Joined
Mar 31, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am in need of assistance with creating a VBA. (below is an attached example document)

I am attempting to create a basic Time sheet for when employees clock in/out.

I am trying to get a macro that will search for the employee's name in the Groups portion of the document (Columns A, F, K, P) and check to see if their name appears in Column U.

Once a match is found, I want the macro to copy the timestamp next to the employee's name (Column V) and paste it next to the correct name in the Time In Column.

Then, do this for all employees as they clock in. However, I also need this to be able to look for the employee's name and check to see if the timestamp is after the time pasted in their "Time In" Column, in order to paste that new time as their "Clock Out" value.

Finally, I need the Macro to delete both rows for that name/timestamp in the responses section (Columns U:V) so that the entire cycle can repeat every day.

Thank you in advance. Any advice helps.
 

Attachments

  • VBA Help.png
    VBA Help.png
    148.9 KB · Views: 8

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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