Copying formulas that result in blanks do not copy as blank?

Pauljj

Well-known Member
Joined
Mar 28, 2004
Messages
2,047
I use a formula like so

=IF(F8="HTL",A8,"")

This is in P3 and copied down, when I copy the range as Values to another sheet and then do ctrl+G, Special then Blanks. It cannot find the blanks. Is there a way to clear contents on the cells that have no text ?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi Paul

To clear contents on the cells that have no text in a column vector try:

Select the range (a a column vector).
Data>Text to Columns. In the first panel click Finish.

Hope this helps
PGC
 
Upvote 0
You can also use a a vba approach.

Select the range. Run this a code like this one

Code:
Sub NoContents()
    
    For Each rc In Selection
        If rc = "" Then rc.ClearContents
    Next
End Sub

HTH
PGC
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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