Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum cells in excel if shaded
How do I conditionally sum a set of cells if I have them highlighted?
|
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum cells in excel if shaded
Hi David,
See Chip Pearson's conting and summing functions at: http://www.cpearson.com/excel/colors.htm --- Regards, Norman "David" wrote in message ... How do I conditionally sum a set of cells if I have them highlighted? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum cells in excel if shaded
http://www.cpearson.com/excel/colors.htm
-- Kind regards, Niek Otten "David" wrote in message ... How do I conditionally sum a set of cells if I have them highlighted? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Sum cells in excel if shaded
You will need a UDF, the following will sum every cell if it has ANY color
shading (will ignore only the cells with no shading). Then, to implement, use the following in any cell on your spreadsheet =SumHighlighted(A1:D100)... change reference to fit your data. Function SumHighlighted(rng As Range) For Each rng In rng If Not (rng.Interior.ColorIndex = xlNone) Then Sum = Sum + rng End If Next SumHighlighted = Sum End Function -- Regards, Dave "David" wrote: How do I conditionally sum a set of cells if I have them highlighted? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER | New Users to Excel | |||
Merging cells in Excel 2003 | Excel Discussion (Misc queries) | |||
EXCEL, VSTO: Fastest way to access multiple cells | Excel Discussion (Misc queries) | |||
How do I merge cells in Excel, like just 2 cells to make one big . | Excel Discussion (Misc queries) | |||
How do I password protect cells in a spreadsheet created in Excel | Excel Worksheet Functions |