How to delete data from Non colored/Highlights Cell from excel?

yashsrawat

Board Regular
Joined
Aug 11, 2006
Messages
106
Hi There

I am working on big excel , where i have highlighted few cell where which need to be uploaded and rest of data which in non Highlighted should be deleted.
This Data has 300 Column and 10000 Rows

Any help how to delete the data from non highlighted cells.
 
Last edited by a moderator:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Why not copy/paste the highlighted cells to another sheet no need to delete. Are they manual highlighted or is CF involved?
 
Upvote 0
These cells manually highlighted and i want cells which are non colored from them all data should be deleted.
1601362724320.png
 
Upvote 0
If you only want to clear the cell content then try this.

Rich (BB code):
Sub clearCells()
Dim cell As Range
For Each cell In Selection
    If cell.Interior.Pattern = xlNone Then
    cell.Value = ""
    End If
    Next cell
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,118
Members
453,021
Latest member
Justyna P

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