conditional format last value

ajith

Board Regular
Joined
Nov 21, 2012
Messages
204
Office Version
  1. 2016
Platform
  1. Windows
Hello,
How to highlight the last cell in column of similar values in column having different sets of values
ABC
1apple
2apple
3orange
4lemon
5lemon
6lemon
7apple
8

<tbody>
</tbody>

So we have to highlight B3,B6 and B7.

Thanks
 
Last edited:

Some videos you may like

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,169
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
try this with CF > formula

=COUNTIF($B$1:B1,B1)=COUNTIF($B:$B,B1)
 

ajith

Board Regular
Joined
Nov 21, 2012
Messages
204
Office Version
  1. 2016
Platform
  1. Windows
Hello AlanY,
Yes it works but it highlights the empty cell,B8 also.
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,169
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
try this

=AND(LEN(B1)>0,COUNTIF($B$1:B1,B1)=COUNTIF($B:$B,B1))
 
Last edited:

ajith

Board Regular
Joined
Nov 21, 2012
Messages
204
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

Hello AlanY,
Great! it works.
But I forgot to tell that I had already applied "=MOD(ROW(),2)=1" for highlighting alternate rows. So in these rows the formatting is not working. I tried to move up/stop if true options the new rule, but still the same. What to do?

Sorry to trouble you.
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,169
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
keep the =MOD(ROW(),2)=1 rule in second and don't check out the stop if true, would that work for you?
 

ajith

Board Regular
Joined
Nov 21, 2012
Messages
204
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

I had tried that also. Not working
 

ajith

Board Regular
Joined
Nov 21, 2012
Messages
204
Office Version
  1. 2016
Platform
  1. Windows
Sorry. It is working. There was an error in my formula when i typed it. Thanks a lot
 

Watch MrExcel Video

Forum statistics

Threads
1,108,911
Messages
5,525,588
Members
409,652
Latest member
strangelyangely

This Week's Hot Topics

Top