Possible change colour from cells with same value in next row

jellevansoelen

New Member
Joined
Mar 1, 2021
Messages
29
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello Ex(cel)perts,

I hope you can help me with the following issue.
We have large excel files with ascending numbers.
textexport-perjaar.xlsx
B
1aktenummer
21
32
43
54
65
76
87
98
109
1110
1211
1312
1413
1514
1615
1716
1816
1917
2018
2119
2220
2321
241
252
263
274
285
296
307
318
Blad2


If you can see is on row number 17 and 18 the same or double number, namely 16.

I hope with conditional logic that it's possible to colour this double numbers if these are under each other.
With conditional logic on double numbers is not what I want, because the number 16 occurs very often.
Important for me when the same (double) number is under each other.

This should be the result:
textexport-perjaar.xlsx
B
1413
1514
1615
1716
1816
1917
2018
2119
Blad2


Tnkyou,
Bye,
Jelle
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Highlight the column starting in row 2, down to the maximum row where you might possibly have data.
Go to Conditional Formatting and add this rule using a formula:

Excel Formula:
=OR(B2=B3,B2=B1)
 
Upvote 0
Solution
I must be making a mistake.

am I doing it right this way?

I don't get the desired result
 

Attachments

  • thisway.png
    thisway.png
    24.9 KB · Views: 4
Upvote 0
You may have to use the Dutch word for "OR". I have no experience with non-English versions.
 
Upvote 0
If you do use Dutch then it would be OF rather than OR
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,413
Messages
6,119,374
Members
448,888
Latest member
Arle8907

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