TextJoin with 2 criteria

Dani_LobP

Board Regular
Joined
Aug 16, 2019
Messages
134
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am struggling to make Textjoin work with an additional criteria.

VBA Code:
=TEXTJOIN(", ",TRUE,UNIQUE(FILTER(RawData[ID],RawData[Issue Status]="","")))

I am using the above code, which works, but then i want to use the same one, but adding an additional condition, which should be the below:

Code:
=IF(RawData[Aggregate status]="Open",TEXTJOIN(", ",TRUE,UNIQUE(FILTER(RawData[ID],RawData[Issue Status]="",""))),"")

Problem, i see.. is that apart from seeing #Spill! error, is that it should actually give empty result.

The idea is to obtain IDs from a table, where there is blank cell in specific columns.
And also, same as above, but when at the same time, the status is Open.

There is a table called RawData, and column names are as mentioned in the code. All i care is about the empty cells from the columns, and obtain the ID.

Hope it makes sense the explanation.

Thanks in advance!
Dani
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about
Excel Formula:
=TEXTJOIN(", ",TRUE,UNIQUE(FILTER(RawData[ID],(RawData[Issue Status]="")*(RawData[Aggregate status]="Open"),"")))
 
Upvote 0
Solution
How about
Excel Formula:
=TEXTJOIN(", ",TRUE,UNIQUE(FILTER(RawData[ID],(RawData[Issue Status]="")*(RawData[Aggregate status]="Open"),"")))
oh great! that works, thanks!

so if i add the * , its like adding criteria one after the other?
 
Upvote 0
The * is multiplying the 2 arrays so that both have to be true for a value to be returned. If you wanted to return values where one or the other was true you would use + instead.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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