Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default reverse conditional formatting

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default reverse conditional formatting

Hi,

If you post the conditional format formula that turns the text red then it
should be possible write a formula that will check the same condition and
return the text string you requires but what you can't do is have a formula
along the lines of

=if(a1=red text,"new",something else)

Mike

"jwbuyer" wrote:

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default reverse conditional formatting

the problem is that I was handed a worksheet that has the cells formatted
manually as opposed to being conditionally formatted.

"Mike H" wrote:

Hi,

If you post the conditional format formula that turns the text red then it
should be possible write a formula that will check the same condition and
return the text string you requires but what you can't do is have a formula
along the lines of

=if(a1=red text,"new",something else)

Mike

"jwbuyer" wrote:

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default reverse conditional formatting

Hi,

Alt +F11 to open vb editor right click 'this workbook' and insert module
and paste the code below in.

call with

=isred(A1)

Function isred(rng As Range) As String
Application.Volatile
If rng.Font.ColorIndex = 3 Then
isred = "New"
Else
isred = ""
End If
End Function

Mike

"jwbuyer" wrote:

the problem is that I was handed a worksheet that has the cells formatted
manually as opposed to being conditionally formatted.

"Mike H" wrote:

Hi,

If you post the conditional format formula that turns the text red then it
should be possible write a formula that will check the same condition and
return the text string you requires but what you can't do is have a formula
along the lines of

=if(a1=red text,"new",something else)

Mike

"jwbuyer" wrote:

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default reverse conditional formatting

did I do something wrong, I keep getting the error that "this formula takes
no arguments." Forgive me, this is my first time editing visual basic in
excel

"Mike H" wrote:

Hi,

Alt +F11 to open vb editor right click 'this workbook' and insert module
and paste the code below in.

call with

=isred(A1)

Function isred(rng As Range) As String
Application.Volatile
If rng.Font.ColorIndex = 3 Then
isred = "New"
Else
isred = ""
End If
End Function

Mike

"jwbuyer" wrote:

the problem is that I was handed a worksheet that has the cells formatted
manually as opposed to being conditionally formatted.

"Mike H" wrote:

Hi,

If you post the conditional format formula that turns the text red then it
should be possible write a formula that will check the same condition and
return the text string you requires but what you can't do is have a formula
along the lines of

=if(a1=red text,"new",something else)

Mike

"jwbuyer" wrote:

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default reverse conditional formatting

Hi,
If the red font is NOT a result of conditional formatting, then by
downloading the "morefunc" you can use on of the formulas from that.
Assuming your text is in A1, then in A2, enter
=IF(XLM.GET.CELL(24,A1)=3,"new","")
and copy dow as far as necessary.

The 24 tells the function to look for the font colour, and the 3 is the
colour index for red.

The function doesn't update automatically, so you need to force a recalc,
for instance by pressing F9.

Dave

"jwbuyer" wrote:

I want a formula to return the the text string "new" if another cell in the
same row has red colored text. How do I do this?

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
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Reverse Conditional Formating Lee Excel Discussion (Misc queries) 2 July 13th 05 11:11 AM


All times are GMT +1. The time now is 10:26 PM.

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"