UNIQUE values in matrix formula

FreddieITA91

New Member
Joined
May 30, 2024
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hi all,

I have a Gaant Chart where i set daily activities details.
In C column for each row have formula that collect weeknum from row1, corresponding every no-empty cell for that row.

1717112979009.png


matrix formula in Cx:
VBA Code:
=TEXTJOIN(", ", TRUE, IF(F4:AAE4<>"", F$1:AAE$1,""))

As you see, this matrix formula collect all values, even duplicates.

I should collect unique values, but i have not UNIQUE function on my excel version. How can i solve this?

for example, in C4 expected "WK#22, WK#23" only values
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try this:

Thong tin xuat du lieu.xlsx
EFGHIJKLMNOPQRSTUV
1ww1ww1ww1ww1ww1ww2ww2ww2ww2ww2ww3ww3ww3ww3ww3ww4ww4
2
3
4ww1, ww2, ww311222333
Sheet1
Cell Formulas
RangeFormula
E4E4=TEXTJOIN(", ",TRUE,IF(COUNTIFS(F4:AAE4,"<>",F$1:AAE$1,IF(F$1:AAE$1<>$G$1:$AF$1,F$1:AAE$1,""))>0,F$1:AAE$1,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 1
Solution
but i have not UNIQUE function on my excel version
Which version are you using? You have listed 5 different versions & none of them have the Textjoin function.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 1
Which version are you using? You have listed 5 different versions & none of them have the Textjoin function.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
You re right, personal detail has been updated.

Try this:

Thong tin xuat du lieu.xlsx
EFGHIJKLMNOPQRSTUV
1ww1ww1ww1ww1ww1ww2ww2ww2ww2ww2ww3ww3ww3ww3ww3ww4ww4
2
3
4ww1, ww2, ww311222333
Sheet1
Cell Formulas
RangeFormula
E4E4=TEXTJOIN(", ",TRUE,IF(COUNTIFS(F4:AAE4,"<>",F$1:AAE$1,IF(F$1:AAE$1<>$G$1:$AF$1,F$1:AAE$1,""))>0,F$1:AAE$1,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
Works perfectly!! Thanks :)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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