Return Related URLs into one string (Textjoin)

WilldoSEO

New Member
Joined
May 10, 2019
Messages
2
So I have a list of URLS and I need to return all the related ones into one string. The urls are laid out in a logical manner Domain / directory / sub-directory /

In theory this should work, but I'm getting some random urls in there. I just want any url that contains the group slug none others.
Code:
           =TEXTJOIN(", ",TRUE,IF(B3:B500=D3,A2:A500,""))

[TABLE="width: 1256"]
<colgroup><col style="mso-width-source:userset;mso-width-alt:20821;width:488pt" width="651"> <col style="mso-width-source:userset;mso-width-alt:8490;width:199pt" width="265"> <col style="width:65pt" width="87"> <col style="mso-width-source:userset;mso-width-alt:21504;width:504pt" width="672"> </colgroup><tbody>[TR]
[TD="class: xl68, width: 651"]URL
[/TD]
[TD="class: xl68, width: 265"]Group[/TD]
[TD="class: xl69, width: 87"][/TD]
[TD="class: xl68, width: 672"]URL[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/[/TD]
[TD][/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/[/TD]
[/TR]
[TR]
[TD="class: xl67"]https://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD="class: xl67"]https://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/lsd/[/TD]
[TD]lsd[/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/lsd/[/TD]
[/TR]
[TR]
[TD="class: xl67"]https://deserthopetreatment.com/drug-abuse/pregnancy/[/TD]
[TD]drug-abuse[/TD]
[TD][/TD]
[TD="class: xl67"]https://deserthopetreatment.com/drug-abuse/pregnancy/[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/marijuana/[/TD]
[TD]marijuana[/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/marijuana/[/TD]
[/TR]
[TR]
[TD="class: xl67"]https://deserthopetreatment.com/drug-abuse/[/TD]
[TD]drug-abuse[/TD]
[TD][/TD]
[TD="class: xl67"]https://deserthopetreatment.com/drug-abuse/[/TD]
[/TR]
[TR]
[TD="class: xl65"]https://deserthopetreatment.com/drug-recovery/inpatient/[/TD]
[TD]drug-recovery[/TD]
[TD][/TD]
[TD="class: xl65"]https://deserthopetreatment.com/drug-recovery/inpatient/[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1256"]
<colgroup><col style="mso-width-source:userset;mso-width-alt:20821;width:488pt" width="651"> <col style="mso-width-source:userset;mso-width-alt:8490;width:199pt" width="265"> <col style="width:65pt" width="87"> <col style="mso-width-source:userset;mso-width-alt:21504;width:504pt" width="672"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 651"]https://deserthopetreatment.com/admissions/what-to-expect/[/TD]
[TD="width: 265"]admissions[/TD]
[TD="width: 87"][/TD]
[TD="class: xl66, width: 672"]https://deserthopetreatment.com/admissions/what-to-expect/[/TD]
[/TR]
[TR]
[TD="class: xl65"]https://deserthopetreatment.com/ptsd-substance-abuse/[/TD]
[TD]ptsd-substance-abuse[/TD]
[TD][/TD]
[TD="class: xl65"]https://deserthopetreatment.com/ptsd-substance-abuse/[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/guides/[/TD]
[TD]guides[/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/guides/[/TD]
[/TR]
[TR]
[TD="class: xl65"]https://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD="class: xl65"]https://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/bpd-substance-abuse/[/TD]
[TD]bpd-substance-abuse[/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/bpd-substance-abuse/[/TD]
[/TR]
[TR]
[TD="class: xl65"]https://deserthopetreatment.com/ocd-substance-abuse/[/TD]
[TD]ocd-substance-abuse[/TD]
[TD][/TD]
[TD="class: xl65"]https://deserthopetreatment.com/ocd-substance-abuse/[/TD]
[/TR]
[TR]
[TD="class: xl66"]https://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD="class: xl66"]https://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/[/TD]
[/TR]
[TR]
[TD="class: xl65"]https://deserthopetreatment.com/addiction-recovery-program-overview/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD="class: xl65"]https://deserthopetreatment.com/addiction-recovery-program-overview/[/TD]
[/TR]
</tbody>[/TABLE]
<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border-color: rgb(142, 169, 219) currentcolor rgb(142, 169, 219) rgb(142, 169, 219); border-style: solid none solid solid; border-width: 0.5pt medium 0.5pt 0.5pt; background: rgb(217, 225, 242) none repeat scroll 0% 0%; }.xl66 { border-color: rgb(142, 169, 219) currentcolor rgb(142, 169, 219) rgb(142, 169, 219); border-style: solid none solid solid; border-width: 0.5pt medium 0.5pt 0.5pt; }</style><style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border-color: rgb(142, 169, 219) currentcolor rgb(142, 169, 219) rgb(142, 169, 219); border-style: solid none solid solid; border-width: 0.5pt medium 0.5pt 0.5pt; background: rgb(226, 239, 218) none repeat scroll 0% 0%; }.xl66 { border-color: rgb(142, 169, 219) currentcolor rgb(142, 169, 219) rgb(142, 169, 219); border-style: solid none solid solid; border-width: 0.5pt medium 0.5pt 0.5pt; background: rgb(217, 225, 242) none repeat scroll 0% 0%; }.xl67 { border-color: rgb(142, 169, 219) currentcolor rgb(142, 169, 219) rgb(142, 169, 219); border-style: solid none solid solid; border-width: 0.5pt medium 0.5pt 0.5pt; }.xl68 { font-weight: 700; text-align: center; }.xl69 { font-weight: 700; }</style>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sorry correct format...

[TABLE="width: 1268"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]URL[/TD]
[TD]Group[/TD]
[TD][/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD]addiction-recovery-program-overview[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/lsd/[/TD]
[TD]lsd[/TD]
[TD][/TD]
[TD]lsd[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/drug-abuse/pregnancy/[/TD]
[TD]drug-abuse[/TD]
[TD][/TD]
[TD]drug-abuse[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/marijuana/[/TD]
[TD]marijuana[/TD]
[TD][/TD]
[TD]marijuana[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/drug-abuse/[/TD]
[TD]drug-abuse[/TD]
[TD][/TD]
[TD]drug-abuse[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/drug-recovery/inpatient/[/TD]
[TD]drug-recovery[/TD]
[TD][/TD]
[TD]drug-recovery[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/admissions/[/TD]
[TD]admissions[/TD]
[TD][/TD]
[TD]admissions[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/privacy-policy/[/TD]
[TD]privacy-policy[/TD]
[TD][/TD]
[TD]privacy-policy[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/aftercare/[/TD]
[TD]aftercare[/TD]
[TD][/TD]
[TD]aftercare[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/cocaine-abuse/[/TD]
[TD]cocaine-abuse[/TD]
[TD][/TD]
[TD]cocaine-abuse[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/aftercare/alumni-program/[/TD]
[TD]aftercare[/TD]
[TD][/TD]
[TD]aftercare[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/salute-to-recovery/[/TD]
[TD]salute-to-recovery[/TD]
[TD][/TD]
[TD]salute-to-recovery[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/co-occurring-disorders/[/TD]
[TD]co-occurring-disorders[/TD]
[TD][/TD]
[TD]co-occurring-disorders
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 1268"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]https://deserthopetreatment.com/guides/[/TD]
[TD]guides[/TD]
[TD][/TD]
[TD]guides[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD]addiction-recovery-program-overview[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/bpd-substance-abuse/[/TD]
[TD]bpd-substance-abuse[/TD]
[TD][/TD]
[TD]bpd-substance-abuse[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/ocd-substance-abuse/[/TD]
[TD]ocd-substance-abuse[/TD]
[TD][/TD]
[TD]ocd-substance-abuse[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD]addiction-recovery-program-overview[/TD]
[/TR]
[TR]
[TD]https://deserthopetreatment.com/addiction-recovery-program-overview/[/TD]
[TD]addiction-recovery-program-overview[/TD]
[TD][/TD]
[TD]addiction-recovery-program-overview[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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