Formulas with Letters and Numbers

TJones85

New Member
Joined
Mar 19, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I want to create a formula on my spreadsheet. There is a scale of values, these are : BKL, 0.25, 0.5, 0.75, K, K.25, K.5, K.75, 1, 1.25 etc.
I want the colour of the cell in the second column to change depending on how far away it is in value from the value in the first column.
So e.g. BKL in the first column to K.25 has increased by 5 points and I would like the colour to show green (in an ideal world I'd love the depth of colour in the cell to get greater as the difference in value increases but will settle for just green at this stage). Similarly I'd like where the value has decreased the second column shows red. I can't work out how to do this when my values aren't simply numeric. Can anyone help?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I am not 100% certain what is the exact result you are after. What do you mean by "the second column"?
I would assign a number value to each scale and then use the number to apply Conditional formatting.
The only thing that does not show in the XLBB code below is that the numbers in column AB have a custom number format set to SPACE character.
Book1
TUVWXYZAAABAC
20
21SCALEDATA1DATA2
22BKL00.2510.25 
230.2510.520.5 
240.52K4K 
250.753k.757k.75 
26K40.7530.75 
27K.255181 
28K.561.2591.25 
29K.757k.56k.5 
3018  
311.259  
32
Sheet2
Cell Formulas
RangeFormula
V23:V31V23=V22+1
Y22:Y31,AB22:AB31Y22=IFERROR(VLOOKUP(""&X22,$U$22:$V$31,2,0),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AB22:AB31Cell Value<$Q21textNO
AB22:AB31Other TypeColor scaleNO
Y22:Y31Cell Value<$Q21textNO
Y22:Y31Other TypeColor scaleNO
V22:V31Other TypeColor scaleNO
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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