Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sam
 
Posts: n/a
Default Add selected numbers in a column that are a different color

I have a column of numbers. Some are black, some are red. I cannot sort the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Take a look at the solution at
http://www.xldynamic.com/source/xld.ColourCounter.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
I have a column of numbers. Some are black, some are red. I cannot sort

the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam



  #3   Report Post  
Sam
 
Posts: n/a
Default

Very cool, Bob. But I get a #NAME? error. I am using the the second
SUMPRODUCT formula under the Summing Coloured Cells section of the link you
provided. BTW, in that formula does the number 3 refer to code number of the
color red?

Thanks for all your help so far. This is really interesting.

Sam

"Bob Phillips" wrote:

Take a look at the solution at
http://www.xldynamic.com/source/xld.ColourCounter.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
I have a column of numbers. Some are black, some are red. I cannot sort

the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam




  #4   Report Post  
Sam
 
Posts: n/a
Default

When I use the =ColorIndex(f3) to determine the colorindex code of what I am
thinking is a red font color, I also get a #NAME? error. Any thoughts?

BTW, Excel is saying my font color is RED.

Sam

"Bob Phillips" wrote:

Take a look at the solution at
http://www.xldynamic.com/source/xld.ColourCounter.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
I have a column of numbers. Some are black, some are red. I cannot sort

the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam




  #5   Report Post  
Sam
 
Posts: n/a
Default

BTW, I am using Excel 2003, Service Pack 1.

"Bob Phillips" wrote:

Take a look at the solution at
http://www.xldynamic.com/source/xld.ColourCounter.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
I have a column of numbers. Some are black, some are red. I cannot sort

the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam






  #6   Report Post  
Gord Dibben
 
Posts: n/a
Default

Sam

How did the numbers' font get colored red? Manually or through Conditional
Formatting?

If by CF, sum on that criteria.

If manually, Excel has no built-in Function for that.

You will need a User Defined Function.

Chip Pearson has one.

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

Look for CellColorIndex UDF and read Chip's instructions on usage.


Gord Dibben Excel MVP

On Fri, 4 Mar 2005 13:29:03 -0800, Sam wrote:

I have a column of numbers. Some are black, some are red. I cannot sort the
red numbers to a specific section. Is there a way of adding just the red
numbers? I was thinking of placing my cursor in an adjacent column (say
column D) and using some sort of of IF formula like: IF C3= red fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam


  #7   Report Post  
Bob Phillips
 
Posts: n/a
Default

Where did you store the ColorIndex function? You did save it in your
workbook I presume?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
BTW, I am using Excel 2003, Service Pack 1.

"Bob Phillips" wrote:

Take a look at the solution at
http://www.xldynamic.com/source/xld.ColourCounter.html

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sam" wrote in message
...
I have a column of numbers. Some are black, some are red. I cannot

sort
the
red numbers to a specific section. Is there a way of adding just the

red
numbers? I was thinking of placing my cursor in an adjacent column

(say
column D) and using some sort of of IF formula like: IF C3= red

fonted
number, then place it here, otherwise leave blank.

Anyone with any ideas? Thanks to anyone who takes the time to respond!

Sam






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
no row numbers or column letters DISPLAYED RagDyer Excel Discussion (Misc queries) 4 April 24th 23 03:42 AM
need to find which numbers (3+) in a column sum to a value Devin Excel Discussion (Misc queries) 1 February 11th 05 10:30 PM
I cannot get a column of numbers to sum, why? HHG Excel Discussion (Misc queries) 8 February 8th 05 12:55 PM
I cannot get a column of numbers to sum, why? HHG Excel Worksheet Functions 4 February 8th 05 04:23 AM
Cannot get a column of numbers to SUM...why? HHG Excel Worksheet Functions 3 February 8th 05 03:49 AM


All times are GMT +1. The time now is 03:57 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"