Combine multiple columns into one Unique List - Excel

Combine multiple columns into one Unique List - Excel

ExcelMoments

2 года назад

42,487 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Neil Winegarden
Neil Winegarden - 24.04.2023 21:32

Amazing - learned three new functions in one short video. Cheers!

Ответить
Jahanzaib Chaudhary
Jahanzaib Chaudhary - 25.03.2023 07:40

Brother you did well, but try this with TOCOL function, believe me you'll be amazed. This is way to complex and is not a dynamic formula but TOCOL is a dynamic one. May you be blessed.

Ответить
Bruno Falcon
Bruno Falcon - 24.03.2023 16:21

forgot to mention, JOBS represents the range in my case, Omisile I just saw you got the same one

Ответить
Bruno Falcon
Bruno Falcon - 24.03.2023 16:19

I just found this one, I don't know what it does but it works =UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",TRUE,JOBS)&"</b></a>","//b")), Mani I tried VSTACK, but it left some empty cells in my list, is there any formula to remove the empty cell in this list that I need to add. Thank you all 😀

Ответить
Bruno Falcon
Bruno Falcon - 24.03.2023 15:52

Thank you very much, it works perfect! but, in my range, I have 7 columns which represent the seven days of one week, and 30 rows, what if there are empty cells in the columns, and one column (Sunday) is usually entirely empty, I selected my range but the results are incomplete and with empty rows, I know it may be too much to ask but it would be grat to find a way to solve it. Thank you, again

Ответить
Tony D-C
Tony D-C - 16.03.2023 20:23

You, sir, have just saved me a ton of work!! Thank you, this is awesome

Ответить
An. Cr.
An. Cr. - 05.03.2023 15:52

Thank you very much. I've been having trouble with this.

Ответить
Maku
Maku - 17.02.2023 06:27

what if the colums are on different sheets? can i still use this? tia

Ответить
fact gasm
fact gasm - 27.11.2022 03:24

Thanks!

Ответить
Maia B
Maia B - 15.11.2022 22:10

This is exactly what I’ve been looking for, however I need to do it on Google sheets and i can only get this to work on Excel. Do you know how I can do this in Google sheets?

Ответить
Olivier Racine
Olivier Racine - 24.10.2022 16:50

I found this on google sheet: =unique({C5:C14,D5:D14,E5:E14,F5:F14})
I suppose it works on Excel too.

Ответить
Meni Porat
Meni Porat - 25.09.2022 23:39

An even better solution than VSTACK:
=UNIQUE(TOCOL(C5:F14)
😎😎😎

Ответить
Glen Mitchell
Glen Mitchell - 24.09.2022 12:23

This is something I've wanted to be able to do for years so thanks so much for posting. Took me a bit of thought to realise that the divisor for each of the functions should always be the number of rows in your table - would have been worth mentioning that to make it a completely generic solution.

Ответить
Meni Porat
Meni Porat - 04.08.2022 11:10

with the new VSTACK function everything is much simpler:
you can achieve the same result thus:
=VSTACK(C5:C14,D5:D14,E5:E14,F5:F14)

Ответить
Will M
Will M - 11.07.2022 20:03

Hi Victor
Great Video can you please attach the files so that we can follow along
regards
😃

Ответить
Kyai Fadillah
Kyai Fadillah - 28.06.2022 11:08

Hello, i am having a problem with FILTERXML formula. It works for small data, but seems to give a calc error on big data.

Apparently TEXTJOIN is too long. Do you know a way this would work with bigger datasets? Maybe an alternative for TEXTJOIN?

Ответить
Kiet Nguyen
Kiet Nguyen - 20.05.2022 18:45

Exactly what I needed to do! Thanks a lot!

Ответить
Ho
Ho - 05.05.2022 15:49

wow ! this is amazing , you are incredible 👍 👍

Ответить
Wayne Edmondson
Wayne Edmondson - 07.01.2022 04:11

Hi Victor. An awesome way to start the new year! Thanks for sharing this technique. Thumbs up!!
Note - for anyone interested in a solution with a VBA user defined function, this will work
Function StackRangeByColumn(rng As Range) As Variant
Dim r As Long, c As Long, n As Long
r = rng.Rows.Count
c = rng.Columns.Count
n = rng.Cells.Count
Dim arr As Variant
ReDim arr(1 To n, 1 To 1)
Dim i As Long, j As Long
n = 1
For i = 1 To c
For j = 1 To r
arr(n, 1) = rng.Cells(j, i).Value
n = n + 1
Next j
Next i
StackRangeByColumn = arr
End Function

Ответить
Omisile Kehinde Olugbenga
Omisile Kehinde Olugbenga - 06.01.2022 22:06

This formula would do same using the FILTERXML() function:

=UNIQUE(FILTERXML("<z><m>"&TEXTJOIN("</m><m>",,C5:F14)&"</m></z>","//m"))

Ответить