LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Find duplicate, but only if an adjacent cell is identical

There is plenty of advice across the internet if you have some records
in a sheet, and want to find out if a value in a cell (a reference
number, for example) is duplicated anywhere else in that column. The
commonly used formula is =COUNTIF($B:$B,B1)1, used in conjunction
with the Conditional Formatting feature.

However, is there a way I can engage the conditional formatting only
if that cell is duplicated *and* the cell next to it in that row is
the same as the cell next to the other duplicate entry? So for
instance, if a reference number is identical, and the next column has
a month in it (eg November), the conditional formatting only engages
if the number is the same, and the month is the same too? Or am I
asking too much here?

Also, in a similar vein, is there a way I can adapt the formula only
to engage conditional formatting if the next row down contains an
identical value? I tried =COUNTIF(B1,B2)1 but that doesn't work. I
must admit I'm not entirely sure I know how the first CountIf is
working - I know that $B:$B if referring to the entire B column
(absolute), but I want to only refer to the next row down. So with
relative references, I thought this second formula would work. What
am I doing wrong?

Thank you for any help you can give.

Steve Wylie
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find lowest number and return it's adjacent cell Erik Excel Worksheet Functions 7 October 2nd 07 02:37 PM
find and return adjacent value (redux)! Todd Lietha Excel Discussion (Misc queries) 3 September 26th 07 01:59 AM
find and return adjacent value Todd Lietha Excel Discussion (Misc queries) 2 September 25th 07 01:26 AM
find data in adjacent cell Leon Jaeggi Excel Discussion (Misc queries) 2 May 27th 06 01:36 PM
subtotal of identical data and deleting its duplicate PaolaAndrea Excel Discussion (Misc queries) 2 February 17th 06 06:10 PM


All times are GMT +1. The time now is 01:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"