Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Use SUMPRODUCT to find duplicate rows (not one column)

I want to use SUMPRODUCT to highlight where I have duplicate information
in rows. I realise that I can find duplicates in other ways but I want
to get this approach working

This formula works fine if I have three columns of data in A to C and
my first data is in A2:C2

D2 =SUM(SUMPRODUCT((A2=$A$2:A2)*(B2=$B$2:B2)*(C2=$C$2 :C2)*1))

so if I copy this down this flags each duplicate row and gives it a
duplicate number

But it will be tiresome to keep on adding elements. So i tried
this
D2 =SUMPRODUCT((A2:C2=$A$2:C2)*1)/3

Thinking that if it worked I could change the C to a Z etc and quickly
long at 26 Column comparisons

The problem with this is that it evaluates any individual comparisons
that match in any row and sums if any are true whereas I essentialy
want a AND like operator to check whether there are three TRUE's per
row and count them as 1.

When I looked at the array like result of the SUMPRODUCT I did notice
that there was a ";" marker showing the end of a Row, ie

TRUE,TRUE,TRUE;TRUE,FALSE,TRUE

I thought this may give a lead?

So my question is can I somehow tweak this formula to look a range of
columns in a row rather than column by column and flag duplicates?

Thank you


---
Message posted from http://www.ExcelForum.com/

Reply
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
How to find duplicate cells in Column a & retrieve column B ghost Excel Discussion (Misc queries) 2 February 22nd 09 05:39 PM
Find duplicate rows then deleting them SSHO_99 Excel Worksheet Functions 4 May 4th 07 11:17 AM
How can I find duplicate occurances of three cells in rows? TnT Tech Man Excel Worksheet Functions 2 February 6th 07 10:28 AM
Find duplicate rows and add together DaleM Excel Discussion (Misc queries) 1 February 9th 05 12:53 AM
How can I find Duplicate Cells or Rows pini35[_8_] Excel Programming 3 November 7th 03 09:10 AM


All times are GMT +1. The time now is 10:26 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"