Filling blank cells by date with vba

aegeans

New Member
Joined
Oct 2, 2022
Messages
2
Platform
  1. Windows
Hello,

Actually, exactly what I want to do; to take the average of the hours in the top and bottom rows and fill in the blank cells with 40.4 below the average and 41.3 above the average according to the values of these hours (41.3 and 40.4). It takes a lot of my time because there is a lot of missing data. I would like to handle it in an easy way if possible. Here, the average is 16:33:26. In this case, all empty cells (in the far right column) should be filled as 40.4.

0​
1​
19.9.2021 15:24:10
41,3
0​
1​
19.9.2021 16:39:34​
0​
1​
19.9.2021 16:54:46​
0​
1​
19.9.2021 16:58:00​
0​
1​
19.9.2021 17:00:44​
0​
1​
19.9.2021 17:06:30​
0​
1​
19.9.2021 17:15:04​
0​
1​
19.9.2021 17:33:44​
0​
1​
19.9.2021 17:40:32​
0​
1​
19.9.2021 17:42:43
40,4

Can a vba be written about this?

Thank you...
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
my sample file.
 

Attachments

  • fill.jpg
    fill.jpg
    81.3 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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