Time Based Counter Buttom

abcjert10

New Member
Joined
Feb 12, 2018
Messages
1
I'm trying to track total units completed hour by hour. What I want to be able to do is have a single button that adds to the number of units complete based on what time it is. So, if it is between 3pm-4pm then pushing the button will add one to cell that is designated Hour 3-4, and so on so forth.

I would like there just to be the one button to simplify things for the operator entering the data.

Is this possible? Has anyone done anything like this?

Any help would be greatly appreciated!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
it seems better to post the timestamp:
TIME, QTY
2/13/2018 8:00:02 AM, 1
2/13/2018 8:00:02 AM, 1

then run a pivot table to sum every record by the hour.

Code:
sub btnGo_click()
activecell.value = now
activecell.offset(0,1).value = 1
activecell.offset(1,0).select
end sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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