Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sum of all cells with red shading

I want to add all cells that have a certain color of shading. For example, in
one cell, give me the sum of all cells with red shading. In another cell,
give me the sum of all cells with blue shading. This is so straightforward
that Excel must be capable of doing it, but how to tell it what I want? This
is related to the concept of conditional formatting, but kind of the reverse
of it. I am a regular Joe who is not fluent in VBA or macros. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Sum of all cells with red shading

What criteria was used for the shading? Was / Is it mathematically
predictable?


"IndexTurret" wrote:

I want to add all cells that have a certain color of shading. For example, in
one cell, give me the sum of all cells with red shading. In another cell,
give me the sum of all cells with blue shading. This is so straightforward
that Excel must be capable of doing it, but how to tell it what I want? This
is related to the concept of conditional formatting, but kind of the reverse
of it. I am a regular Joe who is not fluent in VBA or macros. Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Sum of all cells with red shading

If you have Excel 2003(don't know about 2007)

You could try this alternate method which doesn't use VBA or any add-ins but
cannot return a SUM to a cell.

In 2003 you can specify the Format color to look for under
EditFindOptionsFormatFormat.

Select the color from the Patterns dialog and Find All.

In the found dialog box the first cell will be highlighted.

SHIFT + End + Down Arrow to select all found cells.

The selected cells can then be summed by right-click on Status Bar and "Sum".

Otherwise you would need VBA code.

See Chip Pearson's site for code if you want to try that........specifically his
SumByColor function.

http://www.cpearson.com/excel/colors.htm


Gord Dibben MS Excel MVP

On Tue, 27 Nov 2007 13:51:05 -0800, IndexTurret
wrote:

I want to add all cells that have a certain color of shading. For example, in
one cell, give me the sum of all cells with red shading. In another cell,
give me the sum of all cells with blue shading. This is so straightforward
that Excel must be capable of doing it, but how to tell it what I want? This
is related to the concept of conditional formatting, but kind of the reverse
of it. I am a regular Joe who is not fluent in VBA or macros. Any ideas?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Sum of all cells with red shading

Look he

http://xldynamic.com/source/xld.ColourCounter.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"IndexTurret" wrote in message ...
|I want to add all cells that have a certain color of shading. For example, in
| one cell, give me the sum of all cells with red shading. In another cell,
| give me the sum of all cells with blue shading. This is so straightforward
| that Excel must be capable of doing it, but how to tell it what I want? This
| is related to the concept of conditional formatting, but kind of the reverse
| of it. I am a regular Joe who is not fluent in VBA or macros. Any ideas?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sum of all cells with red shading

Thank you all for your help! I will investigate each tip and probably find
something that works for me. You are truly MVPs!
---IndexTurret

"IndexTurret" wrote:

I want to add all cells that have a certain color of shading. For example, in
one cell, give me the sum of all cells with red shading. In another cell,
give me the sum of all cells with blue shading. This is so straightforward
that Excel must be capable of doing it, but how to tell it what I want? This
is related to the concept of conditional formatting, but kind of the reverse
of it. I am a regular Joe who is not fluent in VBA or macros. Any ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shading Cells Crazydad42 Excel Discussion (Misc queries) 1 November 10th 06 01:44 AM
shading used cells only mrharpo2u Excel Discussion (Misc queries) 4 June 26th 06 09:36 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
Shading Cells Charlie Birkett Excel Discussion (Misc queries) 1 January 6th 06 12:12 PM
Shading Cells Jeff Excel Worksheet Functions 1 May 3rd 05 11:18 PM


All times are GMT +1. The time now is 07:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"