Heatmap with Text

smms1

New Member
Joined
Aug 28, 2013
Messages
8
I was wondering if I could do a heatmap but with some texts in each cell. I know how to make numeric values invisible but not how to add text. Much appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
@smms1 Welcome.
The lack of response on this would reinforce my thoughts that what I think you want to do is not straightforward.
So maybe the silly example below, using a dat range and a text range, will give some food for thought?
I reckon you will need both a numeric data range (can be remote or hidden) and a related 'text' range.
I've used LOOKUP to get related text. Then depending upon how you envisage data will be edited you will need Change Event vba like one or other of the below.

Book1
DEFGHIJKL
7Lookup
8HighestLowMid421Lowest
9LowestLowest112LowMid
10HighestLowMid423HighMid
11HighMidHighest344Highest
Sheet1
Cell Formulas
RangeFormula
D8:E11D8=LOOKUP(H8,$K$8:$L$11)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H8:I11Other TypeColor scaleNO



VBA Code:
Private Sub vvWorksheet_Change(ByVal Target As Range)
'If ONLY one root cell is to be updated at any given time

If Intersect(Target, Range("H8:I13")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub

Target.Offset(0, -4).Interior.Color = Target.DisplayFormat.Interior.Color

End Sub

Or

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'If more than one root cell might be updated eg paste Values to whole range

If Intersect(Target, Range("H8:I13")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Application.ScreenUpdating = False
For Each Cell In Range("H8:I11").Cells
    Cell.Offset(0, -4).Interior.Color = Cell.DisplayFormat.Interior.Color
Next
Application.ScreenUpdating = True
Application.EnableEvents = True

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,856
Messages
6,181,425
Members
453,039
Latest member
jr25673

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