Column Duplicate and Search

peerogel

Board Regular
Joined
Jan 25, 2011
Messages
108
Hello, I cant figure out how to do a "double search" in a column. Conditional formatting would be better but entering a formula along a row could do. Hopefully I can explain what I am tryin to do. I am trying to find duplicates within a column (F through S), then in the duplicate row see, if there is any value in column T.

For example: in column 'F', I have duplicate values in rows 30, 34, 50, and 61 (all four say read "test") within those rows, if more than one has comments in Column 'T', I would like to have the cell (in column 'T') with a different fill color.

For example: if in Column 'T' only row 30 has comments, nothing happens.
if in Column 'T' rows 30 and 50 have comments, both T30 and T50's cell fill should change.
if in Column 'T' all rows have comments, then T30, T34, T50 and T61's cells fill should change.

Hope that makes sense. Thanks in advance.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,557
Office Version
365
Platform
Windows
Select the data in col T (for instance T2:T100) and use this formula
=COUNTIFS(F$2:F$100,F2,T$2:T$100,"<>")>1
 

peerogel

Board Regular
Joined
Jan 25, 2011
Messages
108
Thanks for your quick reply. The formula almost works, the only thing is that it returns "True" on all duplicates. Going back to the example, if rows f30, f34, f50, and f61 have duplicates (the same value) but only rows t30 and t34 have comments, all rows (30, 34, 50, and 61 ) return true.

Maybe using the "true" and "<>" I can use a conditional format. But I'm worse in those.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,557
Office Version
365
Platform
Windows
Apologies, the formula should be
=AND(T2<>"",COUNTIFS(F$2:F$100,F2,T$2:T$100,"<>")>1)

also this is a CF formula, select the data in col T > conditional format > New rule > Use a formula > enter the above formula > select your format > OK.

Change the range in the formula to suit.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
30,557
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Forum statistics

Threads
1,078,487
Messages
5,340,633
Members
399,387
Latest member
amrita34

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top