Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am using 2003 and counting colored blank cells. The range is several rows
with some rows containing 4 column cells (ie A1, B1, C1, D1) and other rows with only 2 column cells having merged A1 and B1 into one cell with C1 and D1 into a second merged cell. I need the merged cells to only count as one. Currently they count as 2 when I run the following: Sub standard() Set myrange = Range("A1:D20") For Each c In myrange If c.Interior.ColorIndex = 6 Then yellowcells = yellowcells + 1 End If Next MsgBox yellowcells End Sub I am not an expert macro writer so I hope this makes sense :J Thanks in advance for any help. Clint |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofit Merged cell Code is changing the format of my merged cells | Excel Discussion (Misc queries) | |||
Counting values across merged cells. | Excel Discussion (Misc queries) | |||
how do i link merged cells to a merged cell in another worksheet. | Excel Worksheet Functions | |||
Errors in COUNT, COUNTA, COUNTIF when counting merged cells | Excel Worksheet Functions | |||
Sorting merged cellsHow do I sort merged cells not identically siz | Excel Worksheet Functions |