Help using Less Than, Greater Than in same formula statement!

Ultimate Selector

Board Regular
Joined
Dec 15, 2013
Messages
153
What would the formula be for the following, in using conditional formatting (to determine cell to format).

I can't seem to use both in the same rule. I even tried doing them separately in their own rule but no go.

Here is my statement ... Greater than 1 (>1) but Less than 10 (<10).

Exactly how do I write this formula in the same statement to be able to format this cell I'm trying to Highlight from a different range of numbers that follow this rule?

I know it's simple but I'm brain dead trying to get this done!

Thanks for any help on this!

Regards,
U.S.
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

Not following regarding
format this cell I'm trying to Highlight from a different range of numbers that follow this rule

But based on the rest of the description, CF, use formula:


Book1
AB
11FALSE
22TRUE
33TRUE
44TRUE
55TRUE
66TRUE
77TRUE
88TRUE
99TRUE
1010FALSE
1111FALSE
1212FALSE
1313FALSE
1414FALSE
Sheet420
Cell Formulas
RangeFormula
B1=AND(A1>1,A1<10)
 
Upvote 0
Thanks Jtakw! I haven't got it to work just yet with your advice. I know I'm doing something wrong.

I'm trying to highlight #3 cuz there are four numbers that are less than 10 but more than 1.
I tried this but it's not quite right ... =AND(D4:Q4>1,D4:Q4<10) ... this is the range I'm working with.

Any more suggestions or ideas?

Thanks again!

Here is my layout ...

#1#2#3 #4#5#6#7
#1 3221632918980416
#2 253 22394243312
#3 709
79768
#4 1643114 2726173
#5 633520
32 25130
#6 5030122220 86

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
You should be only using the cell reference of the first cell in the range i.e.
=AND(D4>1,D4<10)
 
Last edited:
Upvote 0
Just a bump here as I still have not found a solution to this statement using greater than and less than in the same line of formula for conditional formatting.

All Help is Appreciated.

Thanks,
U.S.
 
Last edited:
Upvote 0
Now I am home looking at this on a PC I am wondering what is the exact condition that Makes #3 get highlighted?
If it is just if any cell is there between those criteria then...

<b>Sheet2</b><br /><br /><table border="0" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td><td >H</td><td >I</td><td >J</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td > </td><td >#1</td><td >#2</td><td style="background-color:#ff0000; ">#3</td><td >#4</td><td >#5</td><td >#6</td><td >#7</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >#1</td><td > </td><td style="text-align:right; ">322</td><td style="text-align:right; ">163</td><td style="text-align:right; ">291</td><td style="text-align:right; ">89</td><td style="text-align:right; ">80</td><td style="text-align:right; ">416</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >#2</td><td style="text-align:right; ">253</td><td > </td><td style="text-align:right; ">22</td><td style="text-align:right; ">39</td><td style="text-align:right; ">42</td><td style="text-align:right; ">43</td><td style="text-align:right; ">312</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >#3</td><td style="text-align:right; ">70</td><td style="text-align:right; ">9</td><td > </td><td style="text-align:right; ">7</td><td style="text-align:right; ">9</td><td style="text-align:right; ">7</td><td style="text-align:right; ">68</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >#4</td><td style="text-align:right; ">164</td><td style="text-align:right; ">31</td><td style="text-align:right; ">14</td><td > </td><td style="text-align:right; ">27</td><td style="text-align:right; ">26</td><td style="text-align:right; ">173</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td >#5</td><td style="text-align:right; ">63</td><td style="text-align:right; ">35</td><td style="text-align:right; ">20</td><td style="text-align:right; ">32</td><td > </td><td style="text-align:right; ">25</td><td style="text-align:right; ">130</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td >#6</td><td style="text-align:right; ">50</td><td style="text-align:right; ">30</td><td style="text-align:right; ">12</td><td style="text-align:right; ">22</td><td style="text-align:right; ">20</td><td > </td><td style="text-align:right; ">86</td></tr></table> <br /><br /><span </a>

=COUNTIFS($D$4:$J$9,">1",$D$4:$J$9,"<10")>0
 
Last edited:
Upvote 0
Now I am home looking at this on a PC I am wondering what is the exact condition that Makes #3 get highlighted?
If it is just if any cell is there between those criteria then...

Sheet2

CDEFGHIJ
3#1#2#3#4#5#6#7
4#13221632918980416
5#225322394243312
6#370979768
7#416431142726173
8#56335203225130
9#6503012222086

<tbody>
</tbody>
The rows are read from left to right only. The #3 would get Highlighted only because it's range from left to right posses the numbers (9,7,9,7) that are less than 10 but greater than 1 in that row.

Now if row #6 had a number say 5 then it too would be highlighted.

However, I'm having an issue cuz I have to have in the formula stated that It's >1 but <10.
Thanks Mark!
 
Last edited:
Upvote 0
<b>Sheet2</b><br /><br /><table border="0" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td><td >H</td><td >I</td><td >J</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td > </td><td >#1</td><td >#2</td><td >#3</td><td >#4</td><td >#5</td><td >#6</td><td >#7</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="background-color:#92d050; ">#1</td><td style="text-align:right; ">4</td><td style="text-align:right; ">322</td><td style="text-align:right; ">163</td><td style="text-align:right; ">291</td><td style="text-align:right; ">89</td><td style="text-align:right; ">80</td><td style="text-align:right; ">416</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >#2</td><td style="text-align:right; ">253</td><td > </td><td style="text-align:right; ">22</td><td style="text-align:right; ">39</td><td style="text-align:right; ">42</td><td style="text-align:right; ">43</td><td style="text-align:right; ">312</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="background-color:#92d050; ">#3</td><td style="text-align:right; ">70</td><td style="text-align:right; ">9</td><td > </td><td style="text-align:right; ">7</td><td style="text-align:right; ">9</td><td style="text-align:right; ">7</td><td style="text-align:right; ">68</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td >#4</td><td style="text-align:right; ">164</td><td style="text-align:right; ">31</td><td style="text-align:right; ">14</td><td > </td><td style="text-align:right; ">27</td><td style="text-align:right; ">26</td><td style="text-align:right; ">173</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td >#5</td><td style="text-align:right; ">63</td><td style="text-align:right; ">35</td><td style="text-align:right; ">20</td><td style="text-align:right; ">32</td><td > </td><td style="text-align:right; ">25</td><td style="text-align:right; ">130</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="background-color:#92d050; ">#6</td><td style="text-align:right; ">50</td><td style="text-align:right; ">30</td><td style="text-align:right; ">12</td><td style="text-align:right; ">3</td><td style="text-align:right; ">20</td><td > </td><td style="text-align:right; ">86</td></tr></table> <br /><br /><span

=COUNTIFS($D4:$J4,">1",$D4:$J4,"<10")>0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,457
Members
449,161
Latest member
NHOJ

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