Copy, Paste, Delete Macro needed

Bret1

Board Regular
Joined
Jun 14, 2013
Messages
199
Hello,
Can you please help me with the following Macro?
Copy (R17:S17) and paste all the way down R:S (>row 17) until data stops, then delete all cells in (R:S) that have "#value!" and the cell above it.
The cells to delete would look similar to attached pic...
Thanks!
 

Attachments

  • Chart pic.jpg
    Chart pic.jpg
    84 KB · Views: 11

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This may solve deleting the cells issue...
I found "=IFERROR" and '=IF", but don't know how to use them, or if I can put multiple strings for one cell?

For the "R" column cells, the 2 formulas I need in each cell are....
=IFERROR((K640+M640)/2, "")
OR, if cell=0, ""

For the "S" column cells, I need...
=IFERROR((R639)-ABS(J639-$A$7), "")
OR, if cell=$A$7, ""
 
Upvote 0

Forum statistics

Threads
1,214,815
Messages
6,121,715
Members
449,049
Latest member
THMarana

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