Filter data and return unique rows from one of the columns

mejohn

New Member
Joined
Jun 23, 2018
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hello everyone!

I have the following formula that extracts columns 1,2,3,6,7 from sheet1 into sheet2.

=FILTER(INDEX(Sheet1!A:G,SEQUENCE(ROWS(Sheet1!A:G)),{1,2,3,6,7}),ISNUMBER(SEARCH(Sheet2!B2,Sheet1!F:F)))

How can the formula be modified so that only unique records in sheet1:column2 are ported over to sheet2?

Thank you in advance for taking the time to look into this!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Maybe
Excel Formula:
=LET(Data,Sheet1!A2:G5000,f,FILTER(INDEX(Data,SEQUENCE(ROWS(Data)),{1,2,3,6,7}),ISNUMBER(SEARCH(B2,Sheet1!F2:F5000))),r,ROWS(f),FILTER(f,MMULT((SEQUENCE(r)>=SEQUENCE(,r))*(INDEX(f,,2)=TRANSPOSE(INDEX(f,,2))),SEQUENCE(r,,,0))=1))
 
Upvote 0
Maybe
Excel Formula:
=LET(Data,Sheet1!A2:G5000,f,FILTER(INDEX(Data,SEQUENCE(ROWS(Data)),{1,2,3,6,7}),ISNUMBER(SEARCH(B2,Sheet1!F2:F5000))),r,ROWS(f),FILTER(f,MMULT((SEQUENCE(r)>=SEQUENCE(,r))*(INDEX(f,,2)=TRANSPOSE(INDEX(f,,2))),SEQUENCE(r,,,0))=1))

This works great!

Fluff, you're an Excel Hokage Ninja!

Thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Hi Fluff,
I'm sorry to reach out to you directly, but I was wondering if you have time to look at the following issue I'm having.


Thank you for your time. You've been a great help!
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,708
Members
452,994
Latest member
Janick

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