Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How I get total of highlighted/Coloured Cell in a Colum .
How to get total of highlighted/coloured Cell in a Worksheet. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
A couple of questions spring to mind - Are all the coloured cells the same colour? You could use a VBA routine to count the number of coloured cells. Below is the code I used in a standard VBA module.This assumes that there are no blank cells in the range. Sub countColouredCells() Dim wb As Workbook Dim ws As Worksheet Dim rg As Range Dim i As Integer Set wb = ThisWorkbook Set ws = wb.Worksheets(1) Set rg = ws.Range("B1") i = 0 Do Until IsEmpty(rg) If rg.Interior.ColorIndex = 3 Then i = i + 1 Set rg = rg.Offset(1, 0) Else Set rg = rg.Offset(1, 0) End If Loop Debug.Print i End Sub "Qazi Ahmad" wrote: How I get total of highlighted/Coloured Cell in a Colum . How to get total of highlighted/coloured Cell in a Worksheet. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Qazi Ahmad" wrote in message ... How I get total of highlighted/Coloured Cell in a Colum . How to get total of highlighted/coloured Cell in a Worksheet. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Far better than my solution
"Bob Phillips" wrote: See http://www.xldynamic.com/source/xld.ColourCounter.html for a working solution -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Qazi Ahmad" wrote in message ... How I get total of highlighted/Coloured Cell in a Colum . How to get total of highlighted/coloured Cell in a Worksheet. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear
I want to clear my Question that in Selected Cell Range I have some colored cell not all selected raged full on colored cells. I use different colors in selected range. Now I want to count how many colored cell in range and what the total to different colors which I use. (Below mentioned VB Module, where it display Result ??) Ahmad "steve_doc" wrote: Hi A couple of questions spring to mind - Are all the coloured cells the same colour? You could use a VBA routine to count the number of coloured cells. Below is the code I used in a standard VBA module.This assumes that there are no blank cells in the range. Sub countColouredCells() Dim wb As Workbook Dim ws As Worksheet Dim rg As Range Dim i As Integer Set wb = ThisWorkbook Set ws = wb.Worksheets(1) Set rg = ws.Range("B1") i = 0 Do Until IsEmpty(rg) If rg.Interior.ColorIndex = 3 Then i = i + 1 Set rg = rg.Offset(1, 0) Else Set rg = rg.Offset(1, 0) End If Loop Debug.Print i End Sub "Qazi Ahmad" wrote: How I get total of highlighted/Coloured Cell in a Colum . How to get total of highlighted/coloured Cell in a Worksheet. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to keep the total colum | Excel Worksheet Functions | |||
how to total amounts in one colum | Excel Worksheet Functions | |||
total colum using x instesd of numbers what is the formula | Excel Worksheet Functions | |||
find text in column h and total the corresponding numbers if colum | Excel Discussion (Misc queries) | |||
total a colum using data from another column | Excel Worksheet Functions |