copy data if cell has values

surkdidat

Active Member
Joined
Oct 1, 2011
Messages
468
Office Version
  1. 2016
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
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

surkdidat

Active Member
Joined
Oct 1, 2011
Messages
468
Office Version
  1. 2016
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:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,652
Messages
5,854,960
Members
431,689
Latest member
jacker01

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