copy data if cell has values

surkdidat

Active Member
Joined
Oct 1, 2011
Messages
361
Hi there

I need some sort of code if cell in row G has a value of £0.01 or more, then it copies this data, onto the next available line in a spreadsheet (ie Row 100 being the first line, then the next data held in Row G will go to row 101.) It will need to copy all data from cells A:G in that particular row
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

surkdidat

Active Member
Joined
Oct 1, 2011
Messages
361
Update - I have found the below code, which I have modified, but for the bit where it states .EntireRow.Select, I only want it to select cells A:F in that particular row. I then need to have a formula to multiply data in cells C x D x E. If I add the formula in, it deletes this when I run the macro. **And I would like this on the main worksheet, starting from row 159 !!


For Each i In Range("f38:f57")
If i.Value > 0.01 Then
i.Select
ActiveCell.Rows("1:1").EntireRow.Select
Selection.Copy
Sheets("Sheet2").Range("A65000").End(xlUp).Offset(1, 0).PasteSpecial
End If
Next i
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,653
Members
414,083
Latest member
Mrsash

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
Top