Run an IF statement using a macro?

helenski69

New Member
Joined
May 10, 2011
Messages
2
Hello there guys and gals,

I have set up a spreadsheet that is updated weekly with my engineers time sheet details and I have setup an If statement that determines if and when each of them is late. I'm trying to figure out a way that I can use a macro that moves down a cell everytime for the start time (highlighted red) but keeps cell H1:


=IF(C2<H1, Time?, ?On p ?Late?)<> < H1, "On Time", "Late")
Is there any way of say setting up a button that will calculate all of the rows entered without me having to physically having to enter the IF statement on each row? Or would I be better off setting up a macro??
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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