# Macro to analyze,copy and delete column data

#### delta_negative

##### New Member
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

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)

Replies
1
Views
208
Replies
4
Views
255
Replies
13
Views
270
Replies
1
Views
223
Replies
1
Views
83

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.

### Which adblocker are you using?

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

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