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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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