Data Validation Circles Blank Cells

EvonS

Board Regular
Joined
Jun 1, 2016
Messages
111
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I have a large spreadsheet that I have pasted values into from another worksheet (I literally used 'paste values' from the context menu). The sheet I'm pasting into is set up with drop down menus that the data i'm pasting needs to match. I am attempting to us data validation circles to find the items that don't match my drop-down list but Excel keeps circling cells that are blank even though the 'ignore blank' option is checked. Here's what I've tried:


  1. The circle clears when I press 'delete' in one of these circled cells but it's far too many cells for me to do that manually.
  2. =code('cell reference') returns '#value' which i believe means the cell is blank
  3. When I copy a particular column, paste it into notepad, then paste it back into excel, that clears the circle. But, again, this will take too long to do.

Thanks in advance for the help

Sincerely,

Evon
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Have you tried copying one of these 'blank' cells, the using find and replace to replace whatever is there with blank?
 
Upvote 0
Try this:
1. Select the range then run the code
2. Click Circle Invalid Data

Code:
[FONT=Lucida Console][COLOR=Royalblue]Sub[/COLOR] to_ClearBlank()
[COLOR=Royalblue]Dim[/COLOR] c [COLOR=Royalblue]As[/COLOR] Range
Application.ScreenUpdating = False
    [COLOR=Royalblue]For[/COLOR] [COLOR=Royalblue]Each[/COLOR] c In Selection
    [COLOR=Royalblue]If[/COLOR] Len(c) = [COLOR=Brown]0[/COLOR] [COLOR=Royalblue]And[/COLOR] [COLOR=Royalblue]Not[/COLOR] IsEmpty(c) [COLOR=Royalblue]Then[/COLOR] c.ClearContents
    [COLOR=Royalblue]Next[/COLOR]
Application.ScreenUpdating = True
[COLOR=Royalblue]End[/COLOR] [COLOR=Royalblue]Sub[/COLOR]
[/FONT]
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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