CF help please.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,266
Office Version
  1. 2007
Platform
  1. Windows
Hi,
I'm looking for a CF formula that will highlight duplicate per row ( Not per column ) for those 5 numbers each time, if possible different color for different numbers which are 13 of them ? Maybe that not an option ? Thank you.
Serge.

CF.PNG
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,252
Office Version
  1. 365
Platform
  1. Windows
How about
=COUNTIF($B4:$F4,B4)>1

To have different colour, you would need to setup a rule for each number.
 

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,266
Office Version
  1. 2007
Platform
  1. Windows
Thank you Fluff, I appreciate your help.
Serge.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,252
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,739

ADVERTISEMENT

If you only have 5 columns, you would have a maximum of 2 colors per row. If you want to highlight matching colors on each row, not necessarily a given color for a given value, you can try this:

Book1
ABCDEF
41/1/202031111212221111311212
51/2/202021211311211221212112
61/3/202021121221212111311112
71/4/202011212211121222111122
Sheet29
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:F7Expression=(COUNTIF($B4:$F4,B4)>1)*(MATCH(B4,$B4:$F4,0)=AGGREGATE(15,6,MATCH($B4:$F4,$B4:$F4,0),4))textNO
B4:F7Expression=COUNTIF($B4:$F4,B4)>1textNO


Note that the order of the rules is important. Make sure you enter them in this order, or adjust the order with the "Manage Rules" box.
 

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,266
Office Version
  1. 2007
Platform
  1. Windows
Thank you Eric, The formula dont work, I'm sure it's right but it's because maybe because Excel 7 dont have " AGGREGATE " in the system ?
But Thank you for the help.
Serge.
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,739

ADVERTISEMENT

Sorry, I didn't notice your version. Try this instead:

=(COUNTIF($B4:$F4,B4)>1)*(MATCH(B4,$B4:$F4,0)=LARGE(MATCH($B4:$F4,$B4:$F4,0),4))
 

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,266
Office Version
  1. 2007
Platform
  1. Windows
Very Nice, it works fine, Thank you very much for the help.
Serge.
 

Watch MrExcel Video

Forum statistics

Threads
1,126,985
Messages
5,621,985
Members
415,872
Latest member
ReignEternal

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
Top