Тёмный

How to Get a UNIQUE List from Many Columns Using FLATTEN in Google Sheets 

Leila Gharani
Подписаться 2,7 млн
Просмотров 161 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 248   
@LeilaGharani
@LeilaGharani 8 месяцев назад
Get access to the complete Google Sheets Masterclass here 👉 www.xelplus.com/course/google-sheets/
@sm0kybare
@sm0kybare 11 месяцев назад
She is one of the best Excel teachers on the Internet.
@stratman21
@stratman21 2 года назад
Once again - Thank you Leila. I have tried for 2 days to figure how to achieve in excel what =UNIQUE(FLATTEN(XX:XXXX)) does in sheets. I have your Udemy PQ course and a couple of your others, searched high, low and in between. Watched hours of you tube vids, and the feeling when all of that gets solved in 2mins40 of your mellifluous voice simply cannot be described. Thanks just is not enough.👍👍😍😍
@LeilaGharani
@LeilaGharani 2 года назад
It's my pleasure! I'm happy it was helpful.
@operlandsen
@operlandsen 3 года назад
This formula will return a similar result in Excel (with or without the SORT function) and should be reasonably short and simple: =SORT(UNIQUE(FILTERXML(""&SUBSTITUTE(TEXTJOIN("|",TRUE,InputRange),"|","")&"","//b"))) Replace InputRange with the cell range you want to use as input. Could also be wrapped in a LAMBDA function for a more user friendly version.
@LeilaGharani
@LeilaGharani 3 года назад
Thanks for sharing, Ole!
@leonardoalvespereira9494
@leonardoalvespereira9494 2 года назад
I love you Ole !!! It works on my workbook!
@IbrahimNgouhouo
@IbrahimNgouhouo 2 года назад
Thanks Ole I don't understand some functions here. I guess i'll just save it somewhere and copy and paste each time I need to use it 😃
@MrHonda52
@MrHonda52 2 года назад
Thats amazing!
@tobydavy2052
@tobydavy2052 2 года назад
works a charm, even where you have multiple ranges on different sheets! Thanks :)
@cenevspeed
@cenevspeed 3 года назад
Thank You So Much Mam!! I understood everything so clearly 🔥🔥 please continue making such astonishing tutorials!! Thanks
@LeilaGharani
@LeilaGharani 3 года назад
Thank you, I will.
@blacktalks256
@blacktalks256 2 года назад
​@@LeilaGharani Have we got a flatten equivalent in excel yet!
@OwenGeeAndre
@OwenGeeAndre Год назад
If I could use a Voice note, you'd have heard me crying tears of joy... As an entry level Data Analyst, this had been an issue for me for hours and I couldn't find a good solution... Thanks and I'm subscribed 😊
@asish_apr12
@asish_apr12 3 года назад
Leila, you are the magician of EXCEL. Every time you post a video I am finding some surprising tricks. Thank you so much.
@LeilaGharani
@LeilaGharani 3 года назад
Happy to hear that!
@HowToAnalyst
@HowToAnalyst 3 года назад
Great tip, echoing everyone else, hoping Excel adds this functionality
@samjain6143
@samjain6143 Год назад
Hi Leila, I have been stuck with this issue for 3 hours but your video has helped me to solve it quickly. Thanks!
@LeilaGharani
@LeilaGharani Год назад
Glad it helped!
@jeremytan9143
@jeremytan9143 3 года назад
Thank you so much for this tutorial. I realised there is no flatten function in Excel. Is there an equivalent function for Excel?
@edwardburns220
@edwardburns220 2 года назад
Hi! Use the =VSTACK formula in excel! Works pretty much the same as the flatten formula but you need to highlight each column and separate with a comma. Hope this helps.
@flashgenai
@flashgenai 2 года назад
@@edwardburns220 I don't have vstack yet. I'm on office 365. Do you know any alternatives?
@vidhyashankarkannan4329
@vidhyashankarkannan4329 2 года назад
Hi, I had the same issue. So I copied my data into google sheets, used Flatten, copied the result back to O365 and then used the functions in Excel to get the unique list.
@vijayarjunwadkar
@vijayarjunwadkar 3 года назад
FLATTENed by this trick, but appears that it is UNIQUE to Google Sheets! Wish we had it in Excel! Thanks Leila for sharing though, as we can bring the end results from Sheets to Excel anyway! Best of both!😊👍
@chinmaya.6934
@chinmaya.6934 3 года назад
You can do this in Excel using Power Query. Append all columns and simple remove duplicates in PQ editor.
@vijayarjunwadkar
@vijayarjunwadkar 3 года назад
@@chinmaya.6934 Thanks Chinmay!
@ConnectLoveStrong
@ConnectLoveStrong 2 месяца назад
Thank you!
@mrongad
@mrongad 3 года назад
Thank you for sharing. This simple tutorial will help me with my projects.
@asmrindia
@asmrindia Год назад
Osum Video Mam, Very Useful to me and all. Thanks Please make a detailed video on Which is better between M.S. Office and Google Sheets. Thanks 😊
@skmaheswaran
@skmaheswaran 3 года назад
Leila : You are explaining things very clearly
@frostysnook
@frostysnook Год назад
thank you for this video. figured out a function ive been trying to get done on a sheet for the last 3 days
@rameshm1145
@rameshm1145 2 года назад
awesome way of teaching
@muzammiltariq3743
@muzammiltariq3743 3 года назад
Ma'am. Thank you so much... Your videos really helpful for me.
@thomaskoo7980
@thomaskoo7980 9 месяцев назад
You are a gem! Thanks for this clear-to-understand tutorial.
@LeilaGharani
@LeilaGharani 9 месяцев назад
Glad it was helpful!
@ash_m_
@ash_m_ 3 года назад
Thank you! Does this work in Excel too?
@zafariqbalkhan6279
@zafariqbalkhan6279 2 года назад
Thanks a lot, I spent 2 hours in doing what you have done in less than a minute, :)
@KatlegoMasego
@KatlegoMasego 3 года назад
Another informative video. Thank you.
@vidhyashankarkannan4329
@vidhyashankarkannan4329 2 года назад
Thank you Ms. Leila for this video tutorial. It is the small things that add up in the end to make a workable solution. And you help me every day.
@jervahnmorgan
@jervahnmorgan 3 года назад
She’s a phenomenal instructor!
@dragonshadow1902
@dragonshadow1902 3 года назад
Always enjoy these videos showing some of the uncommon functions in excel and how they can be used. I know there have been a few times were I could have used this and did it the long way of copying each column of data into 1 column then using the remove duplicate button.
@sunpy7908
@sunpy7908 3 года назад
Good point, I never considered using Flatten with unique. Great tip
@prakashneupane5636
@prakashneupane5636 2 года назад
Thank you So much Big Problem simple solutions
@10129933286568
@10129933286568 3 года назад
Extremely fruitful (info) as always. Thanks.
@abdullah9734
@abdullah9734 2 года назад
Thank You Very Much !
@geoschwa
@geoschwa 3 года назад
Awesome, I’ve been joining arrays
@TIMUAU
@TIMUAU 3 года назад
how?
@geoschwa
@geoschwa 3 года назад
@@TIMUAU curly braces and commas,semicolons
@real5731
@real5731 3 года назад
I am flattened.... There should be option to like it multiple times 👍👍👍👍
@oholyzen9620
@oholyzen9620 3 года назад
Just discover your channel. I just wanted to know how to create a QR code for my landing page business and your video pop up first. thank you for what you are doing
@gumboe2007
@gumboe2007 3 года назад
Almost always learn something new with your videos. Well presented and pitched, thank you
@gioyfa
@gioyfa 3 года назад
Wow 👏 Each time, you just simplify our life! Thank you!
@KNLP23
@KNLP23 2 года назад
Just what I was looking for, thank you.
@nitesh.2019
@nitesh.2019 3 года назад
Can you please suggest the easiest way to do this in O365 if possible.
@patriciadejesus6667
@patriciadejesus6667 2 года назад
Amazing!!! Thank you for this. You're the best!
@hanshans8085
@hanshans8085 Год назад
Holy, you saved my day!
@antonioclementemiari3822
@antonioclementemiari3822 2 года назад
Is there anything similar in Excel instead of Google sheets? Thank you so much for all your advices
@abeel95
@abeel95 2 года назад
AWESOME! I was having a really hard time transforming an array into a single column and filtering
@malikastar9265
@malikastar9265 Год назад
Thank you Leila, that was really helpful!
@cenevspeed
@cenevspeed 3 года назад
Could you please tell me which editing software you use??
@mlittlemlittle2966
@mlittlemlittle2966 3 года назад
This is Google sheets, it is not an editing software, I don't think
@gmscott9319
@gmscott9319 3 года назад
@@mlittlemlittle2966 I wonder if they meant which video editing software.
@mlittlemlittle2966
@mlittlemlittle2966 3 года назад
@@gmscott9319 oh. Makes more since. I was misled by the phrasing regarding the spirit of the question
@LeilaGharani
@LeilaGharani 3 года назад
Mostly Camtasia.
@cenevspeed
@cenevspeed 3 года назад
@@LeilaGharani thanks for telling
@sod_norway
@sod_norway Год назад
I'm using office 365, primarily excel, creating dynamic queries with msqry. Looking into Power query due to enhanced complexity
@suprava11
@suprava11 Год назад
Amazing tip n well explained. thank you very much. 🙂
@leonardoalvespereira9494
@leonardoalvespereira9494 2 года назад
I would like to say you I love you you made my day!!! Thank you!
@LeilaGharani
@LeilaGharani 2 года назад
Glad I could help!
@adnanobaidullah6057
@adnanobaidullah6057 3 года назад
Hi Leila , Thank you for videos. I would appreciate if make videos on VBA excel and SQL Server..
@chrism9037
@chrism9037 3 года назад
Awesome Leila!
@LeilaGharani
@LeilaGharani 3 года назад
Thank you! 😄
@jasonipfatsiong2062
@jasonipfatsiong2062 3 года назад
Useful function many thanks Leila
@junzhang6157
@junzhang6157 2 года назад
FLATTEN does the job!!
@yesichristy5291
@yesichristy5291 2 года назад
Thank you. This video is a life saver!
@TeamWebmekka
@TeamWebmekka 10 месяцев назад
Great "show". It was VERY useful to me - AND I love your mug. Can I buy it somewhere?
@LeilaGharani
@LeilaGharani 10 месяцев назад
Glad you like it! You can get our merch here: xelplus.creator-spring.com/
@ashfaqfaraz9341
@ashfaqfaraz9341 10 месяцев назад
Hi Leila, Please explain the same function how to use in Desktop 365 Excel software Regards
@BalaHumo
@BalaHumo 2 года назад
gracias por tu sabiduría
@charevir56
@charevir56 2 месяца назад
Leila, I love it
@jecvman
@jecvman 3 года назад
If someone is interested in doing this within Excel: With the System.Collections.ArrayList you could do the same(inlcudes the sorting part). You probably have to enable this object in the VBA library first. Put some data in Columns A, B and C and run this macro Sub Flatten_VBA() arr = Sheets(1).Cells(1).CurrentRegion With CreateObject("System.Collections.Arraylist") For Each cl In arr If Not .Contains(cl) Then .Add cl Next .Sort '.Reverse for Descending sort order Sheets(1).Cells(1, 6).Resize(.Count) = Application.Transpose(.toarray) End With End Sub And ofcourse Power Query can do this too very easily
@BasBruijnis
@BasBruijnis 3 года назад
Hi, what is the reference called in the vba library?
@jecvman
@jecvman 3 года назад
@@BasBruijnis Maybe you don't need it. Try to find: mscorlib.dll
@jecvman
@jecvman 3 года назад
Function without object: Function Flat_sort(rng As Range) ar = rng Dim a() For Each cl In ar If cl "" Then ReDim Preserve a(j) a(j) = cl j = j + 1 End If Next For i = 0 To UBound(a) For j = i + 1 To UBound(a) If a(j) < a(i) Then y = a(i) a(i) = a(j) a(j) = y End If Next Next Flat_sort = Application.Transpose(a) End Function
@lpanebr
@lpanebr 3 года назад
Interesting. I had never noticed or used the other parameters for the unique function!
@josepepe741
@josepepe741 3 года назад
Do we have any equivalent formula in Excel? How the same can be achieved in Excel with formulas?
@MohAboAbdo
@MohAboAbdo 3 года назад
Thank you very much, my dear teacher.
@prashantbarot30
@prashantbarot30 3 года назад
Great Ma'am 👍, Very informative
@ohodbaabbad4133
@ohodbaabbad4133 2 года назад
hello, first, thank you for your helpful video. my question about FLATTEN Function is not available any more, could you please give any solution to have my data in one column.
@Simba.Luna.
@Simba.Luna. 2 года назад
YEAH!!!!! Thank You!
@edwinnyaanga3861
@edwinnyaanga3861 3 года назад
You are just amazing. I continue to learn a lot!
@sivareddy3745
@sivareddy3745 9 месяцев назад
Nice Leila.
@realpulsecoin
@realpulsecoin 3 года назад
I'm flattered 😊
@LeilaGharani
@LeilaGharani 3 года назад
😊
@mohammadashiq9996
@mohammadashiq9996 3 года назад
I like simplicity and it's a great help.
@haikasatryan
@haikasatryan 2 года назад
You are a gift. Thanks, Mam 😘
@funkyworm9674
@funkyworm9674 Месяц назад
Can we make a unique table out of it. Pla help
@jiajiaphotography
@jiajiaphotography 3 года назад
OMG I just run into this problem TODAY. And I was wondering, does L has an answer to this 😄😄😄
@RogerStocker
@RogerStocker 3 года назад
As usual absolute extraordinary nice new function, but too new for my company's setup.
@AGAZAH
@AGAZAH 3 года назад
Thank you
@dinoc
@dinoc 3 года назад
Is there a way to copy (automatically) data from one spreadsheet to another spreadsheet (both spreadsheets are online on the web on a sharepoint)? If yes, could you please do a video on this, too? :)
@TarunAgarwalVastu-Dubai
@TarunAgarwalVastu-Dubai 3 года назад
Hi Leila, Everyone does not have office 365 , I am using Excel 2013 as provided by my office. How can I sort this in that ??
@fyrman9092
@fyrman9092 Год назад
Your knowledge is amazing. This video solved a vexing problem I had that no one came close to providing the right formulas.
@PratapSinghSoam
@PratapSinghSoam 3 года назад
Thank You Mam 🙏🙏
@vida1719
@vida1719 3 года назад
Google sheets have some great functions. I wish Excel had more of these
@LeilaGharani
@LeilaGharani 3 года назад
So do I :)
@jonelatendido7205
@jonelatendido7205 Год назад
Is this works in multiple rows ina addition to multiple sheets? Could you make a tutorial of this? unique list from multiple rows and sheets..❤
@abdelkrimmesaiahmed662
@abdelkrimmesaiahmed662 3 года назад
Thank you for this useful video but I want to ask if there is a formula in excel which do the same thing
@MohamedTiour
@MohamedTiour 3 года назад
عيد مبارك Blessed Eid Eid Mubarak
@berndeckenfels
@berndeckenfels 3 года назад
Was looking for a good way to compare two lists to see, what is only in one, both or the other. (I typically do it with Unix „comp“ command)
@tirmistirmis
@tirmistirmis 3 года назад
Thanks for the tutorail. It's been really helpful. Any way to use this in pivot table?
@runwiththerunners8152
@runwiththerunners8152 3 года назад
Another great tutorial -
@taizoondean689
@taizoondean689 3 года назад
Thank you so much. What you suggest Excel or Google sheets. Please advise
@rudingeorge
@rudingeorge 3 года назад
Thanks. Pl do a simple way to get the last data of any column.
@lopher70
@lopher70 3 года назад
Thank you, which would be the similar of Flatten in Excel?, is there one?
@NicolaiKorsmoe
@NicolaiKorsmoe 3 года назад
Awesome... As always 👍🏻
@parshwamehta6108
@parshwamehta6108 2 года назад
First of all, Thank you so much. I have a question here: Once this Unique list is ready, can we use same values/column and apply VLOOKUP value here? For example: In this video, I use VLOOKUP value from column G. Thanks in advance.
@JJ_TheGreat
@JJ_TheGreat 2 года назад
I am curious as to how Google is able to use these new functions which are in Excel in their own product (for example: FILTER, UNIQUE and SORT). I would have thought that Microsoft would have gotten a patent/copyright on them and that Google would get sued. Any info regarding the legal circumstances surrounding this? Thanks.
@LadyOkere
@LadyOkere 4 месяца назад
Will this work in excel
@shantiarichards1012
@shantiarichards1012 Год назад
Hi. I need to filter a pivot table based on unique values of a particular columns data in google sheets. Can you help?
@RMLearningHub
@RMLearningHub 3 года назад
Wowowo awesome trick 👍👍👍👌👌😊
@TomaszKobza
@TomaszKobza 3 года назад
FLATTEN For Excel: Function FLATTEN(r As Range) As Variant Dim A As Variant m = r.Count ReDim A(1 To m, 0) i = 1 For Each c In r If CStr(c.Value) = "" Then A(i, 0) = "" Else A(i, 0) = c.Value End If i = i + 1 Next c FLATTEN = A End Function
@jecvman
@jecvman 3 года назад
Only works with office 365(has spill) ;)
@jecvman
@jecvman 3 года назад
Would prefer below then (no sorting tho) Function Flatt_JEC(rng As Range) For Each cl In rng If cl "" Then c00 = c00 & "~" & cl Next Flatt_JEC = Application.Transpose(Split(Mid(c00, 2), "~")) End Function
@calvinlong1321
@calvinlong1321 3 года назад
Can you do this with LAMBDA Function without VBA ?
@TomaszKobza
@TomaszKobza 3 года назад
@@jecvman Great! It should be noted that it converts everything to text, but I like it.
@TomaszKobza
@TomaszKobza 3 года назад
@@calvinlong1321 I don't know yet. But without VBA it is possible with Powerquery 1. Select range and transform to table (Ctrl+T) 1. Load table to Powerquery editor with Data/From sheet option 2. Select all columns and use "Unpivot columns" 3. Remove Attribute column 4. "Remove duplicates" 5. Close and load to excel
@dicksongan
@dicksongan 2 года назад
I wish you could have heard me scream when you whipped out the FLATTEN function that fixed the exact problem I was having. Thanks for the awesome tutorial!
@harmetup3tegal126
@harmetup3tegal126 6 месяцев назад
makasih
@TamerRagheb
@TamerRagheb Год назад
SWEET!
@ajaychachan6025
@ajaychachan6025 3 года назад
How to do it in excel.
@naaistam6879
@naaistam6879 3 года назад
She never failed me to say "WOW"👍
@findthetruth3021
@findthetruth3021 3 года назад
Thank you so much for this amazing video, but I have an Excel sheet and using it for data collection and things I want from it which is really complicated and don't know how to get in touch with you and explain to you so that you can help me on that????. Is there any way to get in touch with you???. Thanks in advance.
@saurabhjain1809
@saurabhjain1809 2 года назад
MADAM SUPPOSE i want to filter such data which is common in all column for example Baden is common in all columns what will it's formula. Or can you send video link if it's uploaded in channel???
@jiyaarora490
@jiyaarora490 3 года назад
pls upload a video on more features in latest version of windows 10
@AyonBaxter
@AyonBaxter 3 года назад
This is really good Leila. I have a question: Why did you have "Flatten" twice in the formula? =sort(unique(filter(Flatten(B2:B12,D2:D12),Flatten(B2:B12,D2:D12)" ")),1,False)
@thesissuwannakul9432
@thesissuwannakul9432 3 года назад
First flatten is combine data to single column. Second flatten use as a condition for filter function…. “I want only data in this column without blank value (not equal to blank, ””) “
Далее
Excel FILTER Function TRICK for Non Adjacent Columns
12:03
Say Goodbye to IF Statements in Excel with SWITCH
7:45
Google Sheets Query Function Explained
12:35
Просмотров 307 тыс.
How to Use VLOOKUP in Excel (free file included)
15:15
Просмотров 232 тыс.
7 Things You're Doing WRONG⚡in Excel
15:22
Просмотров 1,2 млн