Conditional Format to highlight "in between"

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
784
Office Version
  1. 365
Platform
  1. Windows
Hi

Happy New Year

Can I have a formula for conditional format that will highlight a cell that has a value that is between another value
F1 is the reference cell. A1:B4 is the data cells
I tried using >>>>is between F1 and G1 ( I made a helper cell) but it doesn’t work

All numbers are formatted “General”
Excel 365
I tried 4 times to get A: the same width as B:. in the sample.... I'm giving up !!!!!!!!
mike
test.xlsx
ABCDEFG
1100150202202
2150200
3200250I want A3 and B3 to have a red font
4250300
5
6I only need F1, But I made G1 to have something for "in between"
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B4Cell Valuebetween "F1" and "G1"textNO
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello - Welcome to MrExcel !

Please try this way to solve your query - "Conditional Formatting - New Rule - Format only cells that contain"
 
Upvote 0
Is that what you want?

Book3
ABCDEFG
1100150200250
2150200
3200250I want A3 and B3 to have a red font
4250300
5
6I only need F1, But I made G1 to have something for "in between"
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B4Cell Valuebetween $F$1 and $G$1textNO



as per data there is nothing between 202 and 202 ?
How should it work can you please explain.
 
Upvote 0
So, you would need to highlight the values which is nearer to F1, right?
 
Upvote 0
Hi
I'm trying to get cells A3 and B3 highlighted since 202 (F1) is between 200 and 250. I don't want anything else highlighted. When I tried to use conditional format with >>in between<< I had to have two values., so I made a helper cell and put in the same value. I also tried to have G1 as =F1+1 to have a different value.
If I use >>less than and greater than << (two different conditions) nothing gets highlighted
I even tried just A3 and B3 but nothing gets highlighted.

This is just a very short example of what my actual spreadsheet looks like.

I also tried >>contains, but since no cell in the "data" has 202, nothing is highlighted

I also tried to change "data" to just A1:A4, but that didn't work either
I tried using "use a formula..."
something like =$F$1<,$F$1>
but it wasn't accepted.
I'm guessing I'm using conditional format wrong or ...I'm going crazy..isn't 202 in between 200 and 250 !!!!!!!

I just noticed that in the example the conditional format that is posted in XL2BB, cell format shows TEXT. I double checked that the cells are formatted "general".
I also tried "number"
mike
 
Last edited:
Upvote 0
Try

Book1
ABCDEFG
1100150202202
2150200
3200250I want A3 and B3 to have a red font
4250300
5
6I only need F1, But I made G1 to have something for "in between"
7
8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B4Expression=AND($F$1>=$A1,$F$1<=$B1)textNO
 
Upvote 0
Solution
Try

Book1
ABCDEFG
1100150202202
2150200
3200250I want A3 and B3 to have a red font
4250300
5
6I only need F1, But I made G1 to have something for "in between"
7
8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:B4Expression=AND($F$1>=$A1,$F$1<=$B1)textNO
Glad you assisted - Thanks @Sufiyan97
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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