Array

davidepstein22

New Member
Joined
Aug 27, 2012
Messages
27
Hi, I wrote the formula below and it partially works. I was expecting 3 strings to return, but I am only receiving 2 strings. Syntactically, the formula is correct. I confirmed that the underlying data is correct. I narrowed the error down to the when the Match function leads into the row calculation (to remove duplicates. I can supply the data if needed. Help Please!!!

=TEXTJOIN(", ",TRUE,IF((Table18[Gram]="yes")*(Table18[Scope]="Top 6")*(Table18[Ownership]="CBS Corporation")*(MATCH(Table18[DMA Name],Table18[DMA Name],0)=(ROW(Table18[DMA Name])-ROW(Table18[[#Headers],[DMA Name]]))),Table18[DMA Name],""))
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi, I wrote the formula below and it partially works. I was expecting 3 strings to return, but I am only receiving 2 strings. Syntactically, the formula is correct. I confirmed that the underlying data is correct. I narrowed the error down to the when the Match function leads into the row calculation (to remove duplicates. I can supply the data if needed. Help Please!!!

=TEXTJOIN(", ",TRUE,IF((Table18[Gram]="yes")*(Table18[Scope]="Top 6")*(Table18[Ownership]="CBS Corporation")*(MATCH(Table18[DMA Name],Table18[DMA Name],0)=(ROW(Table18[DMA Name])-ROW(Table18[[#Headers],[DMA Name]]))),Table18[DMA Name],""))

Hi Aladin,

Thanks for the reply. The text below (I realized) will not return a match if the condition is found in any row beyond the first occurance of the DMA Name. Do you know what function I can use to remove duplicate DMA Names from the output string?
*(MATCH(Table18[DMA Name],Table18[DMA Name],0)=(ROW(Table18[DMA Name])-ROW(Table18[[#Headers],[DMA Name]])))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,750
Messages
6,186,805
Members
453,373
Latest member
Ereha

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