Numbers to be black

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
884
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

I have kept the condition on symbol and it appeared on number also but I need the number to be black is any there anyway.

Cell Formulas
RangeFormula
G63:M72G63=IFERROR(VALUE(G85&" "&IF(IFERROR(ROUND(IF(FIND(G$39,AC41),G85-AC85),0),"")="","","("&IFERROR(ROUND(IF(FIND(G$39,AC41),G85-AC85),0),"")&IFERROR(IF(FIND($D$64,AC41),$C$64),"")&")")&IF(IFERROR(ROUND(IF(FIND(AC$39,G41),G85-AC85),0),"")="","","(+"&IFERROR(ROUND(IF(FIND(AC$39,G41),G85-AC85),0),"")&IFERROR(IF(FIND($D$63,G41),$C$63),"")&")")),G85&" "&IF(IFERROR(ROUND(IF(FIND(G$39,AC41),G85-AC85),0),"")="","","("&IFERROR(ROUND(IF(FIND(G$39,AC41),G85-AC85),0),"")&IFERROR(IF(FIND($D$64,AC41),$C$64),"")&")")&IF(IFERROR(ROUND(IF(FIND(AC$39,G41),G85-AC85),0),"")="","","(+"&IFERROR(ROUND(IF(FIND(AC$39,G41),G85-AC85),0),"")&IFERROR(IF(FIND($D$63,G41),$C$63),"")&")"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G63:W79Expression=FIND($C$64,G63)textNO
G63:W79Expression=FIND($C$63,G63)textNO




Thanks.
Regards,
Sanjeev
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Conditional formatting applies to the entire cell, so you cannot just change the colour of the symbol on it's own.
 
Upvote 0
Conditional formatting applies to the entire cell, so you cannot just change the colour of the symbol on it's own.
Hi Fluff,

I have applied condition forming to the symbol also but still color change to font also.
Please see the screenshot

Let us know if we find out in another way :)
Regards,
Sanjeev
 

Attachments

  • symbol color.png
    symbol color.png
    34 KB · Views: 11
Upvote 0
As long as you have a formula in the cell, there is no way to change the colour of one part of the value.
 
Upvote 0
As long as you have a formula in the cell, there is no way to change the colour of one part of the value.

Hi Fluff,

I can help with a few things like I have a macro for this but I am facing a challenge when I am pasting this data to the PPT table I am getting all in black but in excel it showing the color. can we get some idea on the below macro? also please see the image as attached

Sub changecolor()

Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer

For i = 4 To 20
For j = 4 To 20

Cells(i, j).Interior.ColorIndex = 0

a = InStr(Cells(i, j).Value, "+")
b = Len(Cells(i, j).Value)

If a > 2 Then
Worksheets("Sheet1").Cells(i, j).Characters(Start:=a - 1, Length:=b).Font.ColorIndex = 10
End If

c = InStr(Cells(i, j).Value, "-")
d = Len(Cells(i, j).Value)

If c > 2 Then
Worksheets("Sheet1").Cells(i, j).Characters(Start:=c - 1, Length:=d).Font.ColorIndex = 3
End If

Next j
Next i

MsgBox ("Task Done")
Cells(4, 4).Select

End Sub
 

Attachments

  • macro output.png
    macro output.png
    25.4 KB · Views: 8
Upvote 0
If those cells contain a formula as in your op, then you cannot change the colour of just part of the cell.
As regards PPT, that is a totally different question & will need a new thread.
 
Upvote 0
If those cells contain a formula as in your op, then you cannot change the colour of just part of the cell.
As regards PPT, that is a totally different question & will need a new thread.

Sure Fluff :)

Thank you.

Will create a new thread for this.

Regards,
Sanjeev
 
Upvote 0
Sure Fluff :)

Thank you.

Will create a new thread for this.

Regards,
Sanjeev
Hi Fluff,

To make it simple I have removed all formulas in the cells and now only kept condition formating but still, I am getting color in data. now there is any way to keep data in black color I have


Book1
ABC
1
2
330 (+4▲)30 (+4)
431 (+4)31 (+4)
532 (-4▼)32 (+4▼)
633 ▼33 (+4)
734 ▲34 (+4)
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:C7Expression=FIND($A$2,B3)textNO
B3:C7Expression=FIND($A$1,B3)textNO


Thanks in advance.
Sanjeev
 
Upvote 0
Not with conditional formatting, you will need to use your macro.
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,575
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top