Highlight from the bottom n'th number Cell

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,405
Office Version
  1. 2010
Hello,</SPAN></SPAN>

I would like to highlight from the bottom n'th number Cell of the column, column range is variable (the n'th number is in the D2=8 is for column D & the n'th number is in the E2=12 is for column E</SPAN></SPAN>

Like this


Book1
CDEF
1From BottomFrom Bottom
2812
3
4NumbersNumbers
54545
64343
74242
81414
92121
1022
112626
124343
132121
1455
152828
1688
172525
183131
194747
202828
211212
221010
231414
244646
254949
261111
272626
283232
294242
303333
3111
321414
335050
344444
352828
3677
371515
383333
394747
404949
414343
4277
432323
442323
451717
4666
475050
481818
492222
502424
513939
524848
532020
543838
5588
561919
573737
58
59
Sheet1

</SPAN></SPAN>
Thank you all</SPAN></SPAN>
Excel 2000</SPAN></SPAN>
Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about conditional formatting with the formula =(MATCH(9E+99, D:D)-D$2-ROW()+1=0)
Hello mikerickson, Thank you it does work but as I need to apply with multiple columns and with 20000 over rows it slows down other codes.</SPAN></SPAN>

Could it be lighter solution?
</SPAN></SPAN>

Regards,
</SPAN></SPAN>
Moti
</SPAN></SPAN>
 
Upvote 0
The 20,000 rows isn't much of a problem. (Actually its an advantage since there is a maximum number of rows the D:D can be changed to D$1:D$20000)

How many columns make up "multiple"?
I'm also curious why you are highlighting this row? If it to make it easy for the user to find, thats what CF is for, but if the nth cell is being used for downstream calculations, the highlight isn't the way to go for that.
 
Upvote 0
The 20,000 rows isn't much of a problem. (Actually its an advantage since there is a maximum number of rows the D:D can be changed to D$1:D$20000)

How many columns make up "multiple"?
I'm also curious why you are highlighting this row? If it to make it easy for the user to find, thats what CF is for, but if the nth cell is being used for downstream calculations, the highlight isn't the way to go for that.
Hello mikerickson, Thank you limiting the ranges that is the fine now it is much better, but come up with new issue, which I did realize now at the end after the "1" I do put F</SPAN></SPAN>

Please see the example below does this can be solved, so in the D can be highlight 1 not the 26 </SPAN></SPAN>


Book1
CDEF
1From BottomFrom Bottom
222
3
4NumbersNumbers
54545
64343
74242
81414
92121
1022
112626
124343
132121
1455
152828
1688
172525
183131
194747
202828
211212
221010
231414
244646
254949
261111
272626
283232
294242
303333
3111
32FF
335050
344444
352828
3677
371515
383333
394747
404949
414343
4277
432323
442323
451717
4666
475050
481818
492222
502424
513939
524848
532020
543838
55268
56119
57F37
58
59
Sheet1


Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
 
Upvote 0
If the column is a mix of numbers and text, the MATCH approach is more complicated.

Instead of MATCH(9E+99,D:D), you'ld need to use IFERROR(MAX(MATCH(9E+99,D:D),MATCH("zzzz",D:D)),IFERROR(MATCH(9E+99,D:D),MATCH("zzzz",D:D)))
 
Upvote 0
If the column is a mix of numbers and text, the MATCH approach is more complicated.

Instead of MATCH(9E+99,D:D), you'ld need to use IFERROR(MAX(MATCH(9E+99,D:D),MATCH("zzzz",D:D)),IFERROR(MATCH(9E+99,D:D),MATCH("zzzz",D:D)))
Hello mikerickson, Thank you once again for building a formula to work with alphanumerical values, unfortunately it does not worked with my version, goggling </SPAN></SPAN>I found that (IFERROR has only existed in versions from 2007 onwards), if I apply the formula in any cell out side it results #¿NAME? Where the previous post#2 formula was resulting TRUE OR FALSE </SPAN></SPAN>

May it could be easy the VBA solution </SPAN></SPAN>

Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
 
Upvote 0
Maybe...

Select, say, D5:E200

In Conditional Formatting use this formula
=COUNTA(D5:D$200)=D$2
pick the format you want

M.
Beautiful!! Marcelo Branco, this one is a perfect formula, checked with original data has multiple row and columns worked nicely.</SPAN></SPAN>

Thank you for your help
</SPAN></SPAN>

Have a pleasant day
</SPAN></SPAN>

Regards,</SPAN></SPAN>
Moti</SPAN></SPAN>
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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