help hyperlink multiple cell in a cell

Nguyen Anh Dung

Board Regular
Joined
Feb 28, 2020
Messages
180
Office Version
  1. 2016
Platform
  1. Windows
as below picture. I want hyperlink cell B2,B3,B4 ->hyperlink cell D2 and open picture when click name picture!

1618295308484.png

best regards,
Nguyen Anh Dung
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The challenge is splitting the multicell into its various values. One way may be to use a lambda
Book2
ABCD
1c:\users\dungna\desktop\image\2\G0050579.JPG G0050580.JPG G0050581.JPG
2G0050579.JPG
3G0050579.JPG
4G0050579.JPG
Sheet2
Cell Formulas
RangeFormula
B2:B4B2=HYPERLINK(A1&SplitString(D1),SplitString(D1))
Dynamic array formulas.


The splitstr is a lambda
Excel Formula:
=LAMBDA(txt,TRIM(MID(SUBSTITUTE(txt,CHAR(10),REPT(" ",LEN(txt))),(SEQUENCE(LEN(txt)-LEN(SUBSTITUTE(txt,CHAR(10),""))+1)-1)*LEN(txt)+1,LEN(txt))))

or
Book2
ABCD
1c:\users\dungna\desktop\image\2\G0050579.JPG G0050580.JPG G0050581.JPG
2G0050579.JPG
3G0050579.JPG
4G0050579.JPG
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=HYPERLINK(A1&TRIM(MID(SUBSTITUTE(D1,CHAR(10),REPT(" ",LEN(D1))),(SEQUENCE(LEN(D1)-LEN(SUBSTITUTE(D1,CHAR(10),""))+1)-1)*LEN(D1)+1,LEN(D1))),TRIM(MID(SUBSTITUTE(D1,CHAR(10),REPT(" ",LEN(D1))),(SEQUENCE(LEN(D1)-LEN(SUBSTITUTE(D1,CHAR(10),""))+1)-1)*LEN(D1)+1,LEN(D1))))
Dynamic array formulas.
 
Upvote 0
@Momentman
The OP is using 2016 therefore neither of those solutions will work.
 
Upvote 0
You're formulae don't seem to be working anyway as they all have the 1st value from D1
 
Upvote 0
You're formulae don't seem to be working anyway as they all have the 1st value from D1
Funny though that it works, just that the friendly_name shows incorrectly.

I have modified to work in Excel 2016, i hope :) The friendly name is why the formula appears to be long anyways

Book2
ABCD
1c:\users\dungna\desktop\image\2\G0050579.JPG G0050580.JPG G0050581.JPG
2G0050579.JPG
3G0050580.JPG
4G0050581.JPG
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=HYPERLINK(A$1&TRIM(MID(SUBSTITUTE(D$1,CHAR(10),REPT(" ",LEN(D$1))),(ROWS($1:1)-1)*LEN(D$1)+1,LEN(D$1))),TRIM(MID(SUBSTITUTE(D$1,CHAR(10),REPT(" ",LEN(D$1))),(ROWS($1:1)-1)*LEN(D$1)+1,LEN(D$1))))
 
Upvote 0
Funny though that it works, just that the friendly_name shows incorrectly.

I have modified to work in Excel 2016, i hope :) The friendly name is why the formula appears to be long anyways

Book2
ABCD
1c:\users\dungna\desktop\image\2\G0050579.JPG G0050580.JPG G0050581.JPG
2G0050579.JPG
3G0050580.JPG
4G0050581.JPG
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=HYPERLINK(A$1&TRIM(MID(SUBSTITUTE(D$1,CHAR(10),REPT(" ",LEN(D$1))),(ROWS($1:1)-1)*LEN(D$1)+1,LEN(D$1))),TRIM(MID(SUBSTITUTE(D$1,CHAR(10),REPT(" ",LEN(D$1))),(ROWS($1:1)-1)*LEN(D$1)+1,LEN(D$1))))
Thanks you!!!
i using office 2016 and result as picture.
1618365962118.png


Best regards.
Nguyen Anh Dung
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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