Coloring partial text within cell in Excel
In Excel there are several ways to dynamically color a full cell based off of its value, but is there any way to dynamically color only part of the cell based on its value?
For example, say I am building a report that looks something like the following:
_________________________
| | Dec | Nov |
|_______|___________|_____|
|Gross R| $75 (-25%)| $100|
|_______|___________|_____|
|Net Inc| $55 (+10%)| $50 |
|_______|___________|_____|
In this scenario I only wish to color the percentage values (-25%) and (+10%), not the dollar values $75 and $55 which are also in the cell. Adding to the problem is the coloring should be dynamic (green for positive, red for negative values), and these cells are references (so manual coloring is off the table).
I have tried using the built in TEXT()
function, but that did not work either. Specifically I tried =TEXT(A1,"$##")&" "&TEXT(A2,"[Green]0%;[Red](-0%)")
where A1
is the cell reference to the dollar amount and A2
is the cell reference to the percentage delta.
The frustrating thing is that the custom formatting [Green]0%;[Red](-0%)
works just fine when applied to the entire cell (via the custom number formatting section), but when applied via the TEXT()
function it stops working. So, how can I custom color a partial value within a cell?
microsoft-excel microsoft-excel-2010
add a comment |
In Excel there are several ways to dynamically color a full cell based off of its value, but is there any way to dynamically color only part of the cell based on its value?
For example, say I am building a report that looks something like the following:
_________________________
| | Dec | Nov |
|_______|___________|_____|
|Gross R| $75 (-25%)| $100|
|_______|___________|_____|
|Net Inc| $55 (+10%)| $50 |
|_______|___________|_____|
In this scenario I only wish to color the percentage values (-25%) and (+10%), not the dollar values $75 and $55 which are also in the cell. Adding to the problem is the coloring should be dynamic (green for positive, red for negative values), and these cells are references (so manual coloring is off the table).
I have tried using the built in TEXT()
function, but that did not work either. Specifically I tried =TEXT(A1,"$##")&" "&TEXT(A2,"[Green]0%;[Red](-0%)")
where A1
is the cell reference to the dollar amount and A2
is the cell reference to the percentage delta.
The frustrating thing is that the custom formatting [Green]0%;[Red](-0%)
works just fine when applied to the entire cell (via the custom number formatting section), but when applied via the TEXT()
function it stops working. So, how can I custom color a partial value within a cell?
microsoft-excel microsoft-excel-2010
1
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18
add a comment |
In Excel there are several ways to dynamically color a full cell based off of its value, but is there any way to dynamically color only part of the cell based on its value?
For example, say I am building a report that looks something like the following:
_________________________
| | Dec | Nov |
|_______|___________|_____|
|Gross R| $75 (-25%)| $100|
|_______|___________|_____|
|Net Inc| $55 (+10%)| $50 |
|_______|___________|_____|
In this scenario I only wish to color the percentage values (-25%) and (+10%), not the dollar values $75 and $55 which are also in the cell. Adding to the problem is the coloring should be dynamic (green for positive, red for negative values), and these cells are references (so manual coloring is off the table).
I have tried using the built in TEXT()
function, but that did not work either. Specifically I tried =TEXT(A1,"$##")&" "&TEXT(A2,"[Green]0%;[Red](-0%)")
where A1
is the cell reference to the dollar amount and A2
is the cell reference to the percentage delta.
The frustrating thing is that the custom formatting [Green]0%;[Red](-0%)
works just fine when applied to the entire cell (via the custom number formatting section), but when applied via the TEXT()
function it stops working. So, how can I custom color a partial value within a cell?
microsoft-excel microsoft-excel-2010
In Excel there are several ways to dynamically color a full cell based off of its value, but is there any way to dynamically color only part of the cell based on its value?
For example, say I am building a report that looks something like the following:
_________________________
| | Dec | Nov |
|_______|___________|_____|
|Gross R| $75 (-25%)| $100|
|_______|___________|_____|
|Net Inc| $55 (+10%)| $50 |
|_______|___________|_____|
In this scenario I only wish to color the percentage values (-25%) and (+10%), not the dollar values $75 and $55 which are also in the cell. Adding to the problem is the coloring should be dynamic (green for positive, red for negative values), and these cells are references (so manual coloring is off the table).
I have tried using the built in TEXT()
function, but that did not work either. Specifically I tried =TEXT(A1,"$##")&" "&TEXT(A2,"[Green]0%;[Red](-0%)")
where A1
is the cell reference to the dollar amount and A2
is the cell reference to the percentage delta.
The frustrating thing is that the custom formatting [Green]0%;[Red](-0%)
works just fine when applied to the entire cell (via the custom number formatting section), but when applied via the TEXT()
function it stops working. So, how can I custom color a partial value within a cell?
microsoft-excel microsoft-excel-2010
microsoft-excel microsoft-excel-2010
asked Jan 3 '13 at 20:10
MosesMoses
68031025
68031025
1
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18
add a comment |
1
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18
1
1
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18
add a comment |
3 Answers
3
active
oldest
votes
There were two approaches I discovered to get around this problem, and neither where really optimal.
The first approach was breaking the strings into two separate columns, that way I could use one of the earlier described custom formatting to set its color. This isn't an ideal solution because I had to compromise on the "look and feel" of the report in order to accommodate that extra column.
The second approach is through using VBA/macros, which though I opted to avoid in this particular scenario, would have been up to the task. While I won't print out the entire working code, it essential boils down to this:
- Find cell you wish to adjust (either through
ActiveCell
or a loop) - Use
Instr
function to find location in string where you wish to modify color - If text length is variable, use
Instr
again to find location in string where you wish to stop the color - Use the
Characters(start, length)
function to highlight the exact characters you want to modify, passing in the values found earlier. - Change the color with
Font.Color = RGB(r,g,b)
add a comment |
An example using a macro can be found here:
Macro to colour part of the text in cells in Excel
Excel Macros - For Loop to Colour Part of Cells
Use an Excel macro that contains a for loop to loop through rows of weather data and colour part of the cell text red if it contains the word hot and blue if it contains the word cool:
Instructions
- Click on the Developer tab in Excel
- Click on the Visual Basic icon and copy the macro text below into 1the code window
- Click the Excel icon to switch back to the Excel view
- Click on the Macros icon, select the macro called TextPartColourMacro and click run
The Completed Macro:
Sub TextPartColourMacro()
' Declarations and Initialisation
Dim Row As Integer, Col As Integer
Dim CurrentCellText As String
Col = 1
' Loop Through Rows 2 to 5
For Row = 2 To 5
' Get Text in Current Cell
CurrentCellText = ActiveSheet.Cells(Row, Col).Value
' Get the Position of the Text Hot and Cool
HotStartPosition = InStr(1, CurrentCellText, "Hot")
CoolStartPosition = InStr(1, CurrentCellText, "Cool")
' Colour the Word Hot Red
If HotStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(HotStartPosition, 3).Font.Color = RGB(255, 0, 0)
End If
' Colour the Word Cool Blue
If CoolStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(CoolStartPosition, 4).Font.Color = RGB(0, 0, 255)
End If
Next Row
End Sub
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
add a comment |
Insert line over text wanting to be highlighted, make the line as wide as you need to high light, change text color to yellow (or any color you choose) and reduce opacity of line to your liking.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f527746%2fcoloring-partial-text-within-cell-in-excel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
There were two approaches I discovered to get around this problem, and neither where really optimal.
The first approach was breaking the strings into two separate columns, that way I could use one of the earlier described custom formatting to set its color. This isn't an ideal solution because I had to compromise on the "look and feel" of the report in order to accommodate that extra column.
The second approach is through using VBA/macros, which though I opted to avoid in this particular scenario, would have been up to the task. While I won't print out the entire working code, it essential boils down to this:
- Find cell you wish to adjust (either through
ActiveCell
or a loop) - Use
Instr
function to find location in string where you wish to modify color - If text length is variable, use
Instr
again to find location in string where you wish to stop the color - Use the
Characters(start, length)
function to highlight the exact characters you want to modify, passing in the values found earlier. - Change the color with
Font.Color = RGB(r,g,b)
add a comment |
There were two approaches I discovered to get around this problem, and neither where really optimal.
The first approach was breaking the strings into two separate columns, that way I could use one of the earlier described custom formatting to set its color. This isn't an ideal solution because I had to compromise on the "look and feel" of the report in order to accommodate that extra column.
The second approach is through using VBA/macros, which though I opted to avoid in this particular scenario, would have been up to the task. While I won't print out the entire working code, it essential boils down to this:
- Find cell you wish to adjust (either through
ActiveCell
or a loop) - Use
Instr
function to find location in string where you wish to modify color - If text length is variable, use
Instr
again to find location in string where you wish to stop the color - Use the
Characters(start, length)
function to highlight the exact characters you want to modify, passing in the values found earlier. - Change the color with
Font.Color = RGB(r,g,b)
add a comment |
There were two approaches I discovered to get around this problem, and neither where really optimal.
The first approach was breaking the strings into two separate columns, that way I could use one of the earlier described custom formatting to set its color. This isn't an ideal solution because I had to compromise on the "look and feel" of the report in order to accommodate that extra column.
The second approach is through using VBA/macros, which though I opted to avoid in this particular scenario, would have been up to the task. While I won't print out the entire working code, it essential boils down to this:
- Find cell you wish to adjust (either through
ActiveCell
or a loop) - Use
Instr
function to find location in string where you wish to modify color - If text length is variable, use
Instr
again to find location in string where you wish to stop the color - Use the
Characters(start, length)
function to highlight the exact characters you want to modify, passing in the values found earlier. - Change the color with
Font.Color = RGB(r,g,b)
There were two approaches I discovered to get around this problem, and neither where really optimal.
The first approach was breaking the strings into two separate columns, that way I could use one of the earlier described custom formatting to set its color. This isn't an ideal solution because I had to compromise on the "look and feel" of the report in order to accommodate that extra column.
The second approach is through using VBA/macros, which though I opted to avoid in this particular scenario, would have been up to the task. While I won't print out the entire working code, it essential boils down to this:
- Find cell you wish to adjust (either through
ActiveCell
or a loop) - Use
Instr
function to find location in string where you wish to modify color - If text length is variable, use
Instr
again to find location in string where you wish to stop the color - Use the
Characters(start, length)
function to highlight the exact characters you want to modify, passing in the values found earlier. - Change the color with
Font.Color = RGB(r,g,b)
answered Jan 7 '13 at 21:16
MosesMoses
68031025
68031025
add a comment |
add a comment |
An example using a macro can be found here:
Macro to colour part of the text in cells in Excel
Excel Macros - For Loop to Colour Part of Cells
Use an Excel macro that contains a for loop to loop through rows of weather data and colour part of the cell text red if it contains the word hot and blue if it contains the word cool:
Instructions
- Click on the Developer tab in Excel
- Click on the Visual Basic icon and copy the macro text below into 1the code window
- Click the Excel icon to switch back to the Excel view
- Click on the Macros icon, select the macro called TextPartColourMacro and click run
The Completed Macro:
Sub TextPartColourMacro()
' Declarations and Initialisation
Dim Row As Integer, Col As Integer
Dim CurrentCellText As String
Col = 1
' Loop Through Rows 2 to 5
For Row = 2 To 5
' Get Text in Current Cell
CurrentCellText = ActiveSheet.Cells(Row, Col).Value
' Get the Position of the Text Hot and Cool
HotStartPosition = InStr(1, CurrentCellText, "Hot")
CoolStartPosition = InStr(1, CurrentCellText, "Cool")
' Colour the Word Hot Red
If HotStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(HotStartPosition, 3).Font.Color = RGB(255, 0, 0)
End If
' Colour the Word Cool Blue
If CoolStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(CoolStartPosition, 4).Font.Color = RGB(0, 0, 255)
End If
Next Row
End Sub
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
add a comment |
An example using a macro can be found here:
Macro to colour part of the text in cells in Excel
Excel Macros - For Loop to Colour Part of Cells
Use an Excel macro that contains a for loop to loop through rows of weather data and colour part of the cell text red if it contains the word hot and blue if it contains the word cool:
Instructions
- Click on the Developer tab in Excel
- Click on the Visual Basic icon and copy the macro text below into 1the code window
- Click the Excel icon to switch back to the Excel view
- Click on the Macros icon, select the macro called TextPartColourMacro and click run
The Completed Macro:
Sub TextPartColourMacro()
' Declarations and Initialisation
Dim Row As Integer, Col As Integer
Dim CurrentCellText As String
Col = 1
' Loop Through Rows 2 to 5
For Row = 2 To 5
' Get Text in Current Cell
CurrentCellText = ActiveSheet.Cells(Row, Col).Value
' Get the Position of the Text Hot and Cool
HotStartPosition = InStr(1, CurrentCellText, "Hot")
CoolStartPosition = InStr(1, CurrentCellText, "Cool")
' Colour the Word Hot Red
If HotStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(HotStartPosition, 3).Font.Color = RGB(255, 0, 0)
End If
' Colour the Word Cool Blue
If CoolStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(CoolStartPosition, 4).Font.Color = RGB(0, 0, 255)
End If
Next Row
End Sub
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
add a comment |
An example using a macro can be found here:
Macro to colour part of the text in cells in Excel
Excel Macros - For Loop to Colour Part of Cells
Use an Excel macro that contains a for loop to loop through rows of weather data and colour part of the cell text red if it contains the word hot and blue if it contains the word cool:
Instructions
- Click on the Developer tab in Excel
- Click on the Visual Basic icon and copy the macro text below into 1the code window
- Click the Excel icon to switch back to the Excel view
- Click on the Macros icon, select the macro called TextPartColourMacro and click run
The Completed Macro:
Sub TextPartColourMacro()
' Declarations and Initialisation
Dim Row As Integer, Col As Integer
Dim CurrentCellText As String
Col = 1
' Loop Through Rows 2 to 5
For Row = 2 To 5
' Get Text in Current Cell
CurrentCellText = ActiveSheet.Cells(Row, Col).Value
' Get the Position of the Text Hot and Cool
HotStartPosition = InStr(1, CurrentCellText, "Hot")
CoolStartPosition = InStr(1, CurrentCellText, "Cool")
' Colour the Word Hot Red
If HotStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(HotStartPosition, 3).Font.Color = RGB(255, 0, 0)
End If
' Colour the Word Cool Blue
If CoolStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(CoolStartPosition, 4).Font.Color = RGB(0, 0, 255)
End If
Next Row
End Sub
An example using a macro can be found here:
Macro to colour part of the text in cells in Excel
Excel Macros - For Loop to Colour Part of Cells
Use an Excel macro that contains a for loop to loop through rows of weather data and colour part of the cell text red if it contains the word hot and blue if it contains the word cool:
Instructions
- Click on the Developer tab in Excel
- Click on the Visual Basic icon and copy the macro text below into 1the code window
- Click the Excel icon to switch back to the Excel view
- Click on the Macros icon, select the macro called TextPartColourMacro and click run
The Completed Macro:
Sub TextPartColourMacro()
' Declarations and Initialisation
Dim Row As Integer, Col As Integer
Dim CurrentCellText As String
Col = 1
' Loop Through Rows 2 to 5
For Row = 2 To 5
' Get Text in Current Cell
CurrentCellText = ActiveSheet.Cells(Row, Col).Value
' Get the Position of the Text Hot and Cool
HotStartPosition = InStr(1, CurrentCellText, "Hot")
CoolStartPosition = InStr(1, CurrentCellText, "Cool")
' Colour the Word Hot Red
If HotStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(HotStartPosition, 3).Font.Color = RGB(255, 0, 0)
End If
' Colour the Word Cool Blue
If CoolStartPosition > 0 Then
ActiveSheet.Cells(Row, Col).Characters(CoolStartPosition, 4).Font.Color = RGB(0, 0, 255)
End If
Next Row
End Sub
edited Jun 21 '15 at 6:13
Mokubai♦
57.1k16135154
57.1k16135154
answered Jun 20 '15 at 21:49
maverick_99maverick_99
511
511
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
add a comment |
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
2
2
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
Super User's purpose is to build a knowledgebase rather than a collection of links to answers elsewhere. External links can break, in which case your answer would have no value. Please include the essential information in your answer and use the link for attribution and further reading.
– fixer1234
Jun 20 '15 at 22:21
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
This is a good solution, I will be deploying it.
– htm11h
Jul 24 '17 at 21:03
add a comment |
Insert line over text wanting to be highlighted, make the line as wide as you need to high light, change text color to yellow (or any color you choose) and reduce opacity of line to your liking.
add a comment |
Insert line over text wanting to be highlighted, make the line as wide as you need to high light, change text color to yellow (or any color you choose) and reduce opacity of line to your liking.
add a comment |
Insert line over text wanting to be highlighted, make the line as wide as you need to high light, change text color to yellow (or any color you choose) and reduce opacity of line to your liking.
Insert line over text wanting to be highlighted, make the line as wide as you need to high light, change text color to yellow (or any color you choose) and reduce opacity of line to your liking.
answered Oct 28 '16 at 19:28
MarkMark
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f527746%2fcoloring-partial-text-within-cell-in-excel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Excel functions can't do it, conditional formatting applies only to whole cells, and it sounds like you've exhausted the possibilities with custom number formats. It might be doable in VBA, though. (For a simple example, take a look here. I'm curious, though. How are you getting two numbers in one cell, building them up as strings, perhaps?
– chuff
Jan 5 '13 at 7:12
@chuff Yes, I was building them up as strings so I could get around the grid limitations of Excel (fixed width column size for each row).
– Moses
Jan 7 '13 at 21:18