Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Formula "do if red": Possible?

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Formula "do if red": Possible?

Hey Fak,

Is there a particular reason why the amounts are in red?

Because if the amounts are less than 0, you could use
IF(A45<0;1;2) .

"fak119" wrote:

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Formula "do if red": Possible?

No, unfortunately not

Felix



"The Fool on the Hill" wrote:

Hey Fak,

Is there a particular reason why the amounts are in red?

Because if the amounts are less than 0, you could use
IF(A45<0;1;2) .

"fak119" wrote:

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Formula "do if red": Possible?

Hello Fak,

Well I don't know of a formula that recognises colour.

Maybe you would want to add a column (B), in which you add a particular
character or message, which canbe used in the formula.
For instance A45 has colour red, then in B45 you type the word red and then
you could use your formula IF(B45="red";1;2) .

But I am intrigued, what is your criteria to make an amount red?

Kind regards,

Jay

"fak119" wrote:

No, unfortunately not

Felix



"The Fool on the Hill" wrote:

Hey Fak,

Is there a particular reason why the amounts are in red?

Because if the amounts are less than 0, you could use
IF(A45<0;1;2) .

"fak119" wrote:

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Formula "do if red": Possible?

Hi,

A manual selection , coming from outside the spreadsheet.

On a similar question sombody mentioned a function to be found in

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

where it is says the following:

"Excel does not have any built-in worksheet functions for working with the
colors of cells or fonts. If you want to read or test the color of a cell,
you have to use VBA procedure. This page describes several functions for
counting and summing cells based on the color of the font or background.
All of these functions use the ColorIndex property."

Unfortunately my Excell knowledge is too small to be able to build such a
function.


Thank you anyway for trying to help. For the moment I have to work manually
on that sheet.

Felix



"The Fool on the Hill" wrote:

Hello Fak,

Well I don't know of a formula that recognises colour.

Maybe you would want to add a column (B), in which you add a particular
character or message, which canbe used in the formula.
For instance A45 has colour red, then in B45 you type the word red and then
you could use your formula IF(B45="red";1;2) .

But I am intrigued, what is your criteria to make an amount red?

Kind regards,

Jay

"fak119" wrote:

No, unfortunately not

Felix



"The Fool on the Hill" wrote:

Hey Fak,

Is there a particular reason why the amounts are in red?

Because if the amounts are less than 0, you could use
IF(A45<0;1;2) .

"fak119" wrote:

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Formula "do if red": Possible?

Hello Fak,

Well unfortunately I am not familiar with VBA functions. Maybe someone else
can help you or, you could use my work around !

Kind regards,

Jay

"fak119" wrote:

Hi,

A manual selection , coming from outside the spreadsheet.

On a similar question sombody mentioned a function to be found in

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

where it is says the following:

"Excel does not have any built-in worksheet functions for working with the
colors of cells or fonts. If you want to read or test the color of a cell,
you have to use VBA procedure. This page describes several functions for
counting and summing cells based on the color of the font or background.
All of these functions use the ColorIndex property."

Unfortunately my Excell knowledge is too small to be able to build such a
function.


Thank you anyway for trying to help. For the moment I have to work manually
on that sheet.

Felix



"The Fool on the Hill" wrote:

Hello Fak,

Well I don't know of a formula that recognises colour.

Maybe you would want to add a column (B), in which you add a particular
character or message, which canbe used in the formula.
For instance A45 has colour red, then in B45 you type the word red and then
you could use your formula IF(B45="red";1;2) .

But I am intrigued, what is your criteria to make an amount red?

Kind regards,

Jay

"fak119" wrote:

No, unfortunately not

Felix



"The Fool on the Hill" wrote:

Hey Fak,

Is there a particular reason why the amounts are in red?

Because if the amounts are less than 0, you could use
IF(A45<0;1;2) .

"fak119" wrote:

I have highlighted some amounts in red.

Is there a formula that recognizes the colour of the font, e.g.

IF(A45=red (is in red colour);1;2) ?

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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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