Deleting Non-Text Items not containing formulas

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,154
Office Version
  1. 2021
Platform
  1. Windows
I need help in writing code to delete non-text items i.e values that do not have formulas

I have listed an axample below

Column A Column B
Net Profit Achieved Month 1,602, 505 (no Formula)
Net Profit Achieved After Comm 1,566,510 (Formula)
Net Profit Achieved YTD Before Comms 16,201,718 (Formula

Only the value in column B to be cleared as it does not contain a formula. The text must remain intact, only values where there is no formulac must be cleared.

Your assistance will be most appreciated

Howard
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

agihcam

Well-known Member
Joined
Jan 16, 2006
Messages
1,624
Code:
Columns("B").SpecialCells(xlCellTypeConstants).ClearContents
 

Forum statistics

Threads
1,171,207
Messages
5,874,349
Members
433,047
Latest member
Babynod

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