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,""))

URL
GroupURL
https://deserthopetreatment.com/https://deserthopetreatment.com/
https://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/addiction-recovery-program-overviewhttps://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/
https://deserthopetreatment.com/lsd/lsdhttps://deserthopetreatment.com/lsd/
https://deserthopetreatment.com/drug-abuse/pregnancy/drug-abusehttps://deserthopetreatment.com/drug-abuse/pregnancy/
https://deserthopetreatment.com/marijuana/marijuanahttps://deserthopetreatment.com/marijuana/
https://deserthopetreatment.com/drug-abuse/drug-abusehttps://deserthopetreatment.com/drug-abuse/
https://deserthopetreatment.com/drug-recovery/inpatient/drug-recoveryhttps://deserthopetreatment.com/drug-recovery/inpatient/

<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>
</tbody>
https://deserthopetreatment.com/admissions/what-to-expect/admissionshttps://deserthopetreatment.com/admissions/what-to-expect/
https://deserthopetreatment.com/ptsd-substance-abuse/ptsd-substance-abusehttps://deserthopetreatment.com/ptsd-substance-abuse/
https://deserthopetreatment.com/guides/guideshttps://deserthopetreatment.com/guides/
https://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/addiction-recovery-program-overviewhttps://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/
https://deserthopetreatment.com/bpd-substance-abuse/bpd-substance-abusehttps://deserthopetreatment.com/bpd-substance-abuse/
https://deserthopetreatment.com/ocd-substance-abuse/ocd-substance-abusehttps://deserthopetreatment.com/ocd-substance-abuse/
https://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/addiction-recovery-program-overviewhttps://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/
https://deserthopetreatment.com/addiction-recovery-program-overview/addiction-recovery-program-overviewhttps://deserthopetreatment.com/addiction-recovery-program-overview/

<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>
</tbody>
<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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

WilldoSEO

New Member
Joined
May 10, 2019
Messages
2
Sorry correct format...

URLGroupGroup
https://deserthopetreatment.com/
https://deserthopetreatment.com/addiction-recovery-program-overview/specialized-treatment/addiction-recovery-program-overviewaddiction-recovery-program-overview
https://deserthopetreatment.com/lsd/lsdlsd
https://deserthopetreatment.com/drug-abuse/pregnancy/drug-abusedrug-abuse
https://deserthopetreatment.com/marijuana/marijuanamarijuana
https://deserthopetreatment.com/drug-abuse/drug-abusedrug-abuse
https://deserthopetreatment.com/drug-recovery/inpatient/drug-recoverydrug-recovery
https://deserthopetreatment.com/admissions/admissionsadmissions
https://deserthopetreatment.com/privacy-policy/privacy-policyprivacy-policy
https://deserthopetreatment.com/aftercare/aftercareaftercare
https://deserthopetreatment.com/cocaine-abuse/cocaine-abusecocaine-abuse
https://deserthopetreatment.com/aftercare/alumni-program/aftercareaftercare
https://deserthopetreatment.com/salute-to-recovery/salute-to-recoverysalute-to-recovery
https://deserthopetreatment.com/co-occurring-disorders/co-occurring-disordersco-occurring-disorders

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

https://deserthopetreatment.com/guides/guidesguides
https://deserthopetreatment.com/addiction-recovery-program-overview/aftercare/addiction-recovery-program-overviewaddiction-recovery-program-overview
https://deserthopetreatment.com/bpd-substance-abuse/bpd-substance-abusebpd-substance-abuse
https://deserthopetreatment.com/ocd-substance-abuse/ocd-substance-abuseocd-substance-abuse
https://deserthopetreatment.com/addiction-recovery-program-overview/therapy-types/addiction-recovery-program-overviewaddiction-recovery-program-overview
https://deserthopetreatment.com/addiction-recovery-program-overview/addiction-recovery-program-overviewaddiction-recovery-program-overview

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Forum statistics

Threads
1,147,477
Messages
5,741,356
Members
423,657
Latest member
Medrok2021

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
Top