Excel - Find Sequential Values with Conditional Formatting

ommni

New Member
Joined
Oct 14, 2006
Messages
6
Hello,

I'm try to devise a conditional formatting formula that will highlight all sequential values in a row. Have tried several variations of this formula (which finds dupes) without success:

=COUNTIF(A$7:F$7,A7)>1

Am aware that the solution can be done in VB but writing something from scratch is a bit outside my realm of skill.

Any suggestions or pointers would be very much appreciated.

-Ommni
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Barry may come up with something better though

Hey Dom, I tried........ :(

I though there might be something you could do with ABS to shorten the formula but I came up with rounding problems so your suggestion looks pretty good to me.

To avoid highlighting duplicates you could add another condition, i.e.

=AND(ISNUMBER(A7),OR(ISNUMBER(MATCH(A7+0.01,$A7:$F7,0)),ISNUMBER(MATCH(A7-0.01,$A7:$F7,0))),COUNTIF($A7:A7,A7)=1)
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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