Conditional Formatting Based On Two Duplicates

kescco

Board Regular
Joined
Sep 14, 2009
Messages
174
Hello,

I have tried to figure this one out on my own but cannot quite get it right. If you know the answer, please reply.

In a spreadsheet for my finances, I need to highlight all rows which have both the same date and same amount.

The entries are sorted. The DATE is COLUMN D. The AMOUNT is COLUMN I.

Thanks,

Kescco
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Select all your data with A1 being the active cell. Then try this Conditional Formatting formula...

Formula is =AND(COUNTIF($D:$D,$D1)>1,COUNTIF($I:$I,$I1)>1)
 
Upvote 0
Alpha, I was thinking similar, but that would still count even if the duplicate date and value were on different rows.

My suggestion would be =COUNTIFS($D$D,$D1,$I$I,$I1)>1

But that's no good with pre 2007 versions of excel.
 
Upvote 0
Hi,

Maybe this, assuming data in D1:I100

=SUMPRODUCT(--($D$1:$D$100=$D1),--($I$1:$I$100=$I1))>1

HTH

M.
 
Upvote 0
I will try the latest one seeing I am using 2003. Honestly, I do not like the GUI of 2007 and later but may end up there soon anyway.

Kescco
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

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