A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula based on format of cell



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 03:41 AM posted to microsoft.public.excel.misc
Ant
external usenet poster
 
Posts: 65
Default Formula based on format of cell

How do I create a formula based on the format of a cell? For example, I want
to add up all values of the cells that are red. Can I do this? How?
  #2  
Old May 15th, 2009, 08:07 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default Formula based on format of cell

You can't do this with a formula. It would have to be VBA.
http://xldynamic.com/source/xld.ColourCounter.html
http://www.cpearson.com/excel/colors.aspx
--
David Biddulph

ant wrote:
How do I create a formula based on the format of a cell? For example,
I want to add up all values of the cells that are red. Can I do this?
How?



  #3  
Old May 18th, 2009, 03:28 AM posted to microsoft.public.excel.misc
Ant
external usenet poster
 
Posts: 65
Default Formula based on format of cell

The first link I tried but Excel said it was an incorret name. The second
link was way to hard to understand. I need something set out simply and
clearly.

"David Biddulph" wrote:

You can't do this with a formula. It would have to be VBA.
http://xldynamic.com/source/xld.ColourCounter.html
http://www.cpearson.com/excel/colors.aspx
--
David Biddulph


  #4  
Old May 18th, 2009, 08:20 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default Formula based on format of cell

If Excel is telling you that you have an incorrect name, you have presumably
not correctly defined the ColorIndex UDF.

If you are struggling to understand the links I gave you, then I guess
you'll struggle with http://www.ozgrid.com/VBA/Sum.htm too.
As I said, "You can't do this with a formula.". If you can't cope with the
VBA you can't do it.
--
David Biddulph

ant wrote:
The first link I tried but Excel said it was an incorret name. The
second link was way to hard to understand. I need something set out
simply and clearly.

"David Biddulph" wrote:

You can't do this with a formula. It would have to be VBA.
http://xldynamic.com/source/xld.ColourCounter.html
http://www.cpearson.com/excel/colors.aspx
--
David Biddulph



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:17 AM.


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