Highlight only unique values based on 2 columns

ekrause77

New Member
Joined
May 3, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need to take column B and C and highlight the duplicates.
I have over 32000 rows in the spreadsheet.

=SUMPRODUCT(--($B1:$B32244=$B1),--($C1:$C32244=$C1))>1

This solution works, but a) I don't know what it does and b) when I try to sort excel goes into Not Responding.
Any ideas how to make this faster?

Hostname Software Version
servera GConf2.x86_64 3.2.6-22.el8
servera MFEcma.x86_64 5.8.1-313
servera MFEdx.x86_64 6.0.3-1021
servera MFErt.i686 2.0-193
servera McAfeeESP.x86_64 10.7.17-487
servera McAfeeESPAac.x86_64 10.7.17-487
servera McAfeeESPFileAccess.x86_64 10.7.17-487
servera McAfeeFW.x86_64 10.7.17-50
servera McAfeeRt.x86_64 10.7.17-487
servera McAfeeTP.x86_64 10.7.17-66
servera NetworkManager.x86_64 1:1.40.16-9.el8_8
serverb GConf2.x86_64 3.2.6-22.el8
serverb MFEcma.x86_64 5.8.1-313
serverb MFEdx.x86_64 6.0.3-1021
serverb MFErt.i686 2.0-193
serverb McAfeeESP.x86_64 10.7.17-487
serverb McAfeeESPAac.x86_64 10.7.17-487
serverb McAfeeESPFileAccess.x86_64 10.7.17-487
serverb McAfeeFW.x86_64 10.7.17-50
serverb McAfeeRt.x86_64 10.7.17-487
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
what are the duplicates you are trying to flag

with conditional formatting as you have not fixed the rows it will test ever increasing rows
=SUMPRODUCT(--($B1:$B32244=$B1),--($C1:$C32244=$C1))>1
so it will test B1 / C1
then move on to B2 - BUT the formula will be
=SUMPRODUCT(--($B2:$B32245=$B1),--($C2:$C32245=$C2))>1
and so on

for example if you had a 1 in row 1 - it will flag as a duplicate
BUT then if the duplicte is in say row4 - it will not flag that one
=SUMPRODUCT(--($B4:$B32247=$B4),--($C4:$C32247=$C4))>1
as its not testing to see if a duplicate is above row 4

So i guess its ONLY showing the 1st example of a duplicate, BUT not with C included

i just get false for this example - see column E

Book1
ABCDE
113FALSE
241FALSE
351FALSE
411FALSE
Sheet1
Cell Formulas
RangeFormula
E1:E4E1=SUMPRODUCT(--($B1:$B32244=$B1),--($C1:$C32244=$C1))>1


anyway - give an example with expected results

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone

if you have any issues with XL2BB, then the "About this Board" is the forum to ask questions about XL2BB
 
Upvote 0
I think I was trying to do something that didn't make sense.
The ultimate goal was to show the servers missing the software and if versions were different.


Here's a sample document.
 
Upvote 0
sorry i dont understand now what you want to show - can you provide some manual results of the rows you want to highlight in your sample and why
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

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