Removing duplicates with a formula. Is the Unique formula an option?

Pibsandsquibs

New Member
Joined
Aug 18, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello

I am using the filter formula to create a dashboard of todays events from our main spreadsheet. The problem I have is each line for each order comes through and some orders could have up to 20 lines. I was looking at using the unique formula in the filter to remove the duplicates (which would be the order number in column A). But not sure where it put it in the formula I already have. Could someone please advise or if there is another option that I can use.

Below is the formula currently in place that I want to remove the duplicates from. Many thanks

=FILTER('[Log.xlsx]Log'!A:CH,('[Log.xlsx]Log'!AW:AW>=TODAY())*('[Log.xlsx]Log'!AW:AW<=TODAY()))
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If every column is the same for the duplicates, then you can use UNIQUE. If not, what output are you expecting for the other columns?
 
Upvote 0
@RoryA

Thinking about it I would choose columns that I want to see in the filter using a formula you have helped me with. So every column would be duplicated as the columns that return different information won't be pulled through.

As per below, but I would only want the information to appear once in line 4.

1726478752171.png


I've amended the formula slightly to

=CHOOSECOLS(FILTER('[Log.xlsx]Log'!A:CH,('[Log.xlsx]Log'!AW:AW>=TODAY())*('[Log.xlsx]Log'!AW:AW<=TODAY())),1,10,33,34,38,47,49,50,53)
 
Upvote 0
In that case, just wrapping that in UNIQUE should work:

Excel Formula:
=UNIQUE(CHOOSECOLS(FILTER('[Log.xlsx]Log'!A:CH,('[Log.xlsx]Log'!AW:AW>=TODAY())*('[Log.xlsx]Log'!AW:AW<=TODAY())),1,10,33,34,38,47,49,50,53))
 
Upvote 0
Solution

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

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