Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

create hyperlink using cell value and some additional text in excel

I have excel sheet containing column with values such as

BANDHANBNK
SRF
SRTRANSFIN
L&TFH
IBULHSGFIN
FEDERALBNK
PNB
PEL
VOLTAS

I want to create hyperlink for each of this, url can be created as

https://in.tradingview.com/chart/?symbol=NSE:ACC1!

so I need to concatenate

https://in.tradingview.com/chart/?symbol=NSE: + cell value + 1!

doing this manually is too much work, is there any simpler way to do this?

one more thing is if cell value contains & or - it should be converted to underscore.

solved: final result enter image description here

question from:https://stackoverflow.com/questions/65866987/create-hyperlink-using-cell-value-and-some-additional-text-in-excel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use following formula. Here simply concatenating cell value with URL then concatenate 1!. Use Hyperlink() formula to make hyperlink.

=HYPERLINK("https://in.tradingview.com/chart/?symbol=NSE:" & A1 & "1!",A1)

enter image description here

To replace & and - by underscore _ use below SUBSTITUTE() formula.

=SUBSTITUTE(SUBSTITUTE(A1,"&","_"),"-","_")

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...