#1   Report Post  
Posted to microsoft.public.excel.misc
PK PK is offline
external usenet poster
 
Posts: 69
Default Excell Functions

I have a spredsheet that has a column of colours related to work i.e. Red,
white the a second column has numbers. I would like to use a function that
can add only cells that match certain colours. i.e if B2, 5,7,10 has Red and
D25.7.10. has value but the imbetween cells have different colours. I need to
be able to use a some to only add up the value in column D which relate to
Red in column B.

Can anyone help on this one.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Excell Functions

Take a look he

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

In article ,
PK wrote:

I have a spredsheet that has a column of colours related to work i.e. Red,
white the a second column has numbers. I would like to use a function that
can add only cells that match certain colours. i.e if B2, 5,7,10 has Red and
D25.7.10. has value but the imbetween cells have different colours. I need to
be able to use a some to only add up the value in column D which relate to
Red in column B.

Can anyone help on this one.

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
PK PK is offline
external usenet poster
 
Posts: 69
Default Excell Functions

Thank you what I should of said is that the colour is in text Format i.e Red,
White.
--
pk


"PK" wrote:

I have a spredsheet that has a column of colours related to work i.e. Red,
white the a second column has numbers. I would like to use a function that
can add only cells that match certain colours. i.e if B2, 5,7,10 has Red and
D25.7.10. has value but the imbetween cells have different colours. I need to
be able to use a some to only add up the value in column D which relate to
Red in column B.

Can anyone help on this one.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Excell Functions

There is no built-in function to allow you to count colours directly,
so you have to make use of a user-defined function to return the
colour of a cell, and then count this. JE gave you a link to Chip
Pearson's site which shows how to do it - here's another link to Bob
Phillip's site which covers the same topic:

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

Read one of them !!

Hope this helps.

Pete

On Oct 25, 7:05 pm, PK wrote:
Thank you what I should of said is that the colour is in text Format i.e Red,
White.
--
pk



"PK" wrote:
I have a spredsheet that has a column of colours related to work i.e. Red,
white the a second column has numbers. I would like to use a function that
can add only cells that match certain colours. i.e if B2, 5,7,10 has Red and
D25.7.10. has value but the imbetween cells have different colours. I need to
be able to use a some to only add up the value in column D which relate to
Red in column B.


Can anyone help on this one.


Thank you- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Excell Functions

Try this:

=Sumif(B:B,"Red",D:D)

OR
Enter the color you're looking for in another cell, so you can change it
without having to change the formula itself, say A1.

Then try this:

=Sumif(B:B,A1,D:D)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"PK" wrote in message
...
Thank you what I should of said is that the colour is in text Format i.e
Red,
White.
--
pk


"PK" wrote:

I have a spredsheet that has a column of colours related to work i.e.
Red,
white the a second column has numbers. I would like to use a function
that
can add only cells that match certain colours. i.e if B2, 5,7,10 has Red
and
D25.7.10. has value but the imbetween cells have different colours. I
need to
be able to use a some to only add up the value in column D which relate
to
Red in column B.

Can anyone help on this one.

Thank you





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
How to open MS Excell 2007 Sheet in MS Excell 2000??? Alek Luchnikov New Users to Excel 1 March 22nd 07 04:40 PM
excell functions dglass Excel Discussion (Misc queries) 2 August 21st 06 02:02 PM
create a slides show with excell spreadsheets using excell wantabepas Charts and Charting in Excel 0 June 16th 06 07:46 PM
editing documents with excell that are not excell format Jim Excel Discussion (Misc queries) 1 May 8th 06 06:31 PM
how do you open an excell email attacment, if I dont have excell Gary Excel Discussion (Misc queries) 1 February 22nd 06 10:26 PM


All times are GMT +1. The time now is 10:03 AM.

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

About Us

"It's about Microsoft Excel"