Hello,
Is there a way to conditionally format duplicates if a value is in a column and if a box is checked? I need this to look through the whole sheet where there are many input values by the customer via a form.
Thank you.
Brian
Hi Brian,
No way to natively locate duplicates and apply conditional formatting, however, you can cheat.
Assuming you have a value column (we'll call it Name) and checkbox column (let's call this one Booked), we can create a Duplicate checkbox column to the right and enter the following formula, copying it all the way down as far as you need:
=IF(AND(COUNTIFS(Name:Name, Name1, Booked:Booked, 1) > 1, Booked1), 1, 0)
You can then use conditional formatting to highlight rows/cells where Duplicate is checked and hide the Duplicate column when you are satisfied with the results.
Hi Chris,
This is helpful, but I have one question. will the formula you listed above only look for Joe Bloggs? you have it listed in the countifs for "Booked 1". What I am looking for is an example where the duplicates box checks if any name is repeated in the name column with the condition that the booked column has been checked.
Basically all the Fred Nerks will have the duplicate checked since there is one Fred Nerks where the booked column has been checked.
We are looking to create a validation check in our sheet for accounts that have been used in the past for billing. New accounts will highlight to not the account needs to be confirmed.
No , the formula is not dependent on any particular value in the Name column.
To break it down, the formula is calculating the count of values that match both these criteria:
If both criteria are fulfilled (i.e. you have a value that occurs more than once in the Name column with the corresponding Booked checkbox ticked), then the Duplicate cell (where the formula lives) is populated with a 1.
If there are 1000 Fred Nerks, but only one row has the Booked checkbox ticked, it will not be shown as a duplicate. If you have 3 Joe Bloggs (or whatever name you chose to include in Name) with all three being Booked, then all three will be marked as duplicates.
If you copy the formula in Duplicate down the column as far as your Name values go, any new values added to Name will ensure a new row is added and the new Duplicate cell will inherit the formula from above.
Based on your initial description and subsequent explanation, it sounds like the above will do what you want. Unless I'm missing something...
Hi,
I had a similar problem I wanted to highlight duplicate in my postcode column
I overcome this problem by doing the following:
As you can see it worked...
The formula is important...
=IF(Postcode@row = "", 0, IF(COUNTIFS(Postcode:Postcode, Postcode@row) > 1, 1))
so broken down i used this part to say if postcode column blank leave unchecked "=IF(Postcode@row = "", 0,"
then this part is to count "(COUNTIFS(Postcode:Postcode, Postcode@row)" my individual postcodes to turn it into a numerical value
then the "IF" before the count and the "> 1, 1))" to say if there is more than 1 , to equal a tick mark
....
For yourself you may want blank rows to highlight so it would be equivelent to
=IF(COUNTIFS(Postcode:Postcode, Postcode@row) > 1, 1)
Just to bear in mind for future reference :)
Is there a way to prevent a shared user from seeing the data in the "View Detail" option? I'm trying to make sure that when a user is given access to view a report, they can only view the columns present in that report. The view might only show certain columns but the user can then click on the record as shown below and…
I have a project sheet with a Gantt chart where the timescale headings are not aligning with my project’s fiscal year and start/end dates. Configuration: - Primary heading: Quarters (displaying as Q4 2026) - Secondary heading: Months (MMM format) - Fiscal year start: February 2 - Week start: Sunday - Project start date:…
Is there an overall calendar setting whereby I can choose a specific column to display in the calendar view? I have created an additional column that gives the task name (located in a child row) as well as the main task (in it's parent row). I want that to display in the calendar. Overall creating a content calendar and…