imogul

New Member
Joined
Apr 21, 2011
Messages
14
So I've applied conditional formatting to columns A and B to highlight and bold any blank entries. However since those guys tend to show up a thousand rows or so down I don't have anything to alert me that there is a problem. I know that I can just filter those columns to check but I'm not the only one using this sheet so I'd really like to have a visual cue.

Is there a way to have cell J1 highlight if any of the cells in the range (A2:H3000) have been bolded?

Thanks!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi

I think a much better approach is to look for blank entries instead of looking for bold ones, and this UDF does just that:
Code:
Public Function FindBlanks(RangeWithBlanks As Range)
Dim FirstBlank As String
Dim NumberOfBlanks As Long


For Each cell In RangeWithBlanks
    If cell.Value = "" Then
        NumberOfBlanks = NumberOfBlanks + 1
        If NumberOfBlanks = 1 Then
            FirstBlank = cell.Address
        End If
    End If
Next


FindBlanks = "There are " & NumberOfBlanks & " blanks in the range, the first one in cell " & FirstBlank


End Function

Then put this formula in J1:
=FindBlanks(A2:H3000)

Of if you don't want to use a UDF this formula will count the number of blanks:
=COUNTIF(A2:H3000,"")

Best regards
Per Erik
 
Upvote 0
what about putting the number or the Item that makes the cells bold in J1
and entering this in conditional formatting
=SUMPRODUCT(--($A$2:$H$3000=$J$1))>0
 
Upvote 0
Hey guys thanks for the reply but it's not that easy. See I forgot to mention that I need watch out for Duplicates as well as blanks. Sorry about that.
 
Upvote 0
BAM! I figured it out. You guys put me on the right track. I just put in two conditional formats. One to look for blanks using count if "" and one using frequency to find duplicates
=SUM(IF(FREQUENCY(MATCH(B2:B10,B2:B10,0),MATCH(B2:B10,B2:B10,0))>0,1))

Thanks for the assist!
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,660
Members
449,462
Latest member
Chislobog

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