Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a situation here. 1.) I need to select a range of cells, 2.) count the number of cells in the range that contains values and also 3.) count the number of cells in the range that have a RED fill How do I accomplish this? This is what I have so far: marketWS.Range("D6:BG" & marketCurrRow - 1).Select With Selection cnt = .Cells.Count End With marketWS.Range("M1") = cnt But cnt is counting all the cells in the range("D6:BG" & marketCurrRow - 1) but I only want to count the cells that have values in them. Any ideas? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
counting spercific charaters in selected cells | Excel Programming | |||
How do I set a range to the currently selected cells? | Excel Programming | |||
Set Range Using Selected Cells | Excel Programming | |||
Compare a selected Range with a Named range and select cells that do not exist | Excel Programming | |||
max/min of a selected range of cells | Excel Programming |