Copy values from row to another sheet matched to todays date

M4crew

New Member
Joined
Oct 29, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I could use a little help to accomplish what seems to be a simple task, but I can't seem to figure this one out.

The "List" sheet is updated throughout the day by a number of users. From that data, I calculate a few totals and averages into the "Counts" sheet to track certain metrics, etc.

Each morning, I use a macro to run code that re-sorts "List" and removes any completed work. What I would like to do is capture the totals and averages on the

"Counts" sheet and save that information into a row matched to "today's" date on the "Summary" sheet. For simplicity for the users, I'd like to start this new code when the other

code starts (triggered by a key stroke shortcut that everyone is already familiar with). The other critical part is I don't want the "Summary" data to be updated more than once per day.

Any thoughts on how to write this so it checks the row in "Summary" corresponding to today's date and if the row is empty, copy just the values over. But if there is already data there, just end it?

I've learned a lot from this site, but my skill level is ultra-novice, so the simpler the better.

Thanks

"Counts"

Total Pending Avg Hours

5 4 23.4


"Summary"

Date Total Pending AvgHours

10/1/23

10/2/23

10/3/23
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I could use a little help to accomplish what seems to be a simple task, but I can't seem to figure this one out.

The "List" sheet is updated throughout the day by a number of users. From that data, I calculate a few totals and averages into the "Counts" sheet to track certain metrics, etc.

Each morning, I use a macro to run code that re-sorts "List" and removes any completed work. What I would like to do is capture the totals and averages on the

"Counts" sheet and save that information into a row matched to "today's" date on the "Summary" sheet. For simplicity for the users, I'd like to start this new code when the other

code starts (triggered by a key stroke shortcut that everyone is already familiar with). The other critical part is I don't want the "Summary" data to be updated more than once per day.

Any thoughts on how to write this so it checks the row in "Summary" corresponding to today's date and if the row is empty, copy just the values over. But if there is already data there, just end it?

I've learned a lot from this site, but my skill level is ultra-novice, so the simpler the better.

Thanks

"Counts"

Total Pending Avg Hours

5 4 23.4


"Summary"

Date Total Pending AvgHours

10/1/23

10/2/23

10/3/23
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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