Deleting Non-Text Items not containing formulas

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,966
Office Version
  1. 2019
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

agihcam

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

Forum statistics

Threads
1,136,619
Messages
5,676,847
Members
419,655
Latest member
pd2021vb

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