Macro to analyze,copy and delete column data

delta_negative

New Member
Joined
Mar 11, 2013
Messages
37
I have a spreadsheet with machine readings that is comprised of the following:

Column A
A1 Date
A2 Current temperature data
A3 Now() formatted as :ss
A4:A63 Temperature readings that correspond with each incremented second from A3 0-59

Column B
B1-B4 data collected from A4-A63 calculated as follows;
B1 temp when A3=0
B2 max() temp since A3 = 0 and A3 <= 59
B3 min() temp since A3 = 0 and A3 <= 59
B4 current temp reading

Is there a way to create a macro that would:
1. delete A4:A63 when A3changes from 59 to 0
2. record temp in 1 second increments in A4:A63 starting when A3 = 0
3. calculate the max()and min() as each new temp is recorded
4. record the first temp in B1
5. record the current temp in B4
6. as each new iteration occurs, copy the values in B1:B4 down the sheet so that the last values are always visible at top

I have the calculations working as formulae but MS reference material says that the calcs are what is causing huge processor load. Still can't figure out how to copy without vba and I am totally a newb in vba.

Any help will be greatly appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,196,504
Messages
6,015,587
Members
441,903
Latest member
MG12345

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