Is it possible to apply conditional format always for last row numbers?

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,371
Office Version
  1. 2010
Hello,

I am looking does it possible to apply conditional format always for last row numbers?

For example in the row 5 numbers apply conditional format, which may highlight only last row numbers (in this example last row is 18) but it keep changing

CF12273275869098100107124137138139140145152157210242249
277598100107137138139140152249
277598138140
98138140
98138140
138140
75869098100107124137138139140145152157210242249
758690100107137138139140145152157210242249
8690107137139152210
12273275869098100107124137138139140145157210242
12273275869098100138145210242

For example the sample image is attached.

Thank you all.

I am using Excel 2000

Regards,
Moti
 

Attachments

  • CF-Last Row.png
    CF-Last Row.png
    22.1 KB · Views: 4

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Are you trying to format
- row 5 if the number appear in the last row, or
- the last row if the number appears in row 5, or
- both of the above, or
- something else?
 
Upvote 0
Are you trying to format
- row 5 if the number appear in the last row, or
- the last row if the number appears in row 5, or
- both of the above, or
- something else?
Hello Peter_SSs, thank you for the reply

I need CF to Hifghlight - row 5 if the number appears in the last row.

Regards,
Moti
 
Upvote 0
I need CF to Hifghlight - row 5 if the number appears in the last row.
Thanks for the clarification.
I would use one helper cell (I used C5) to reduce the calculation burden & simplify the CF formulas.
I have assumed that your data will not go past row 1000 but you can easily increase or decrease that number.

21 05 11.xlsm
CDEFGHIJKLMNOPQRSTUVWX
513CF12273275869098100107124137138139140145152157210242249
6
7277598100107137138139140152249
8277598138140
998138140
1098138140
11138140
12
1375869098100107124137138139140145152157210242249
14758690100107137138139140145152157210242249
158690107137139152210
16
1712273275869098100107124137138139140145157210242
1812273275869098100138145210242
19
CF LastRow
Cell Formulas
RangeFormula
C5C5=LOOKUP(9.99E+307,E6:E1000,ROW(E6:E1000))-ROW(E5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:X5Expression=MATCH(E5,INDEX($E$6:$X$1000,$C$5,0),0)textNO
 
Upvote 0
Solution
Thanks for the clarification.
I would use one helper cell (I used C5) to reduce the calculation burden & simplify the CF formulas.
I have assumed that your data will not go past row 1000 but you can easily increase or decrease that number.

21 05 11.xlsm
CDEFGHIJKLMNOPQRSTUVWX
513CF12273275869098100107124137138139140145152157210242249
6
7277598100107137138139140152249
8277598138140
998138140
1098138140
11138140
12
1375869098100107124137138139140145152157210242249
14758690100107137138139140145152157210242249
158690107137139152210
16
1712273275869098100107124137138139140145157210242
1812273275869098100138145210242
19
CF LastRow
Cell Formulas
RangeFormula
C5C5=LOOKUP(9.99E+307,E6:E1000,ROW(E6:E1000))-ROW(E5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:X5Expression=MATCH(E5,INDEX($E$6:$X$1000,$C$5,0),0)textNO
Wow! Peter_SSs, it is an amazing! Solution. My end row could be in the feature 4000+, i just increased the number 1000 to 4108 and it is working, as I wanted.

I am grateful to you for your kind help and time you spent to solve my request.

Have a good day and a great week ahead

Regards,
Moti :)
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

BTW, I forgot to mention that my solution assumes that every row of numbers begins in column E (like your samples).
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

BTW, I forgot to mention that my solution assumes that every row of numbers begins in column E (like your samples).
Yes, I noticed that is an amazing part as soon as the any new number is entered in column E, immediately in the row 5 CF is replaced as per last line-entered new number, which is superb!!!

Thank you Peter, for giving a pretty good Conditional Format solution. ?

Kind Regards,
Moti :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,112
Messages
6,128,901
Members
449,477
Latest member
panjongshing

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