Dynamic hyperlink based on groupins

Djmason2001

New Member
Joined
Feb 24, 2020
Messages
14
Office Version
  1. 2013
Platform
  1. Windows
Team,

I need your help with an Excel formula.

I want to create a URL which dynamically populated based on 3 criteria's .

The 3 criteria's are ;

1)ID
2)Master 15id
3)Group_ID

Example Data

IDMaster 15idGROUP_ID
0033a00002WiusTAAR0033a00002WiusT
64​
0033a00002QOJhsAAH0033a00002WiusT
64​
003f100001pOrHCAA00033a00002WiusT
64​
0033a00002dqNb9AAE0033a00002dopw3
120​
0033a00002dopw3AAA0033a00002dopw3
120​
0033a00002TnrLwAAJ0033a00002dopw3
120​

The hyperlink/formula should evaluate those criteria and create the hyperlink appropriately (See expected outcome)

Expected Outcome

IDMaster 15idGROUP_IDmerge Link
0033a00002WiusTAAR0033a00002WiusT
64​
https://salesforce.com/merge/conmer...cid=0033a00002QOJhsAAH&cid=003f100001pOrHCAA0
0033a00002QOJhsAAH0033a00002WiusT
64​
003f100001pOrHCAA00033a00002WiusT
64​
0033a00002dqNb9AAE0033a00002dopw3
120​
https://salesforce.com/merge/conmer...cid=0033a00002dopw3AAA&cid=0033a00002TnrLwAAJ
0033a00002dopw3AAA0033a00002dopw3
120​
0033a00002TnrLwAAJ0033a00002dopw3
120​


The URL is broken down into sections

Full URL :


If we break the URL into chucks The first part of the URL will always be the same : "https://salesforce.com/merge/conmergewizard.jsp?goNext=+Next+"

The next step is is to set the "Master Id". The master ID will always start with "&p2="

&p2=0033a00002WiusT


Once the master id is added to the URL, we then need to append the other IDS onto the URL. To to this we just need to add the following "&cid=" +Id"

As there is more than one ID to append &cid=" +Id" would be repeated 2 times ( this is the number of Ids associated to a group ) The total Number of IDS associated to a group id is 3



Looking forward to your help
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

The total Number of IDS associated to a group id is 3

Always 3?

If so, perhaps you can try this.

Book2
ABCD
1IDMaster 15idGROUP_IDmerge Link
20033a00002WiusTAAR0033a00002WiusT64https://salesforce.com/merge/conmergewizard.jsp?goNext=+Next+&p2=0033a00002WiusT&cid=0033a00002WiusTAAR&cid=0033a00002QOJhsAAH&cid=003f100001pOrHCAA0
30033a00002QOJhsAAH0033a00002WiusT64 
4003f100001pOrHCAA00033a00002WiusT64 
50033a00002dqNb9AAE0033a00002dopw3120https://salesforce.com/merge/conmergewizard.jsp?goNext=+Next+&p2=0033a00002dopw3&cid=0033a00002dqNb9AAE&cid=0033a00002dopw3AAA&cid=0033a00002TnrLwAAJ
60033a00002dopw3AAA0033a00002dopw3120 
70033a00002TnrLwAAJ0033a00002dopw3120 
Sheet1
Cell Formulas
RangeFormula
D2:D7D2=IF(C2=C1,"",HYPERLINK("https://salesforce.com/merge/conmergewizard.jsp?goNext=+Next+"&"&p2="&B2&CONCAT("&cid="&A2:A4)))
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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