Vba auto copy data from sheets to sheet based on criteria

ste33uka

Active Member
Joined
Jan 31, 2020
Messages
471
Office Version
  1. 365
Platform
  1. Windows
Hi sheet 1 to sheet 4 are identical,
They have live data from stocks that is auto updated every 30 seconds
Each sheet uses rows 2 to 20

column A = Stock name
column C = total amount sold in pounds
column O = price stock last sold in pound
column P = formula =(C2/O2) which gives answer of units of stock sold

Everytime 50 stocks are sold, is it possible that data from column A,C,O,P can auto copy to 1st available row on Sheet5

Example
A7= apples
C7=£100
O7=£2
P7= 50

1st avaialbe row on sheet 5 would read
A1 =apples
B1 =£100
C1 = £2
D1 = 50

Hope someone can help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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