简体   繁体   中英

VLOOKUP and HLOOKUP with hyperlink in excel

How can I use Hlookup and vlookup with hyperlink formula in excel sheet.

My VlookUP function

=VLOOKUP(A2,Lookup1, 2, FALSE)
 ("idarubicin hydrochloride"[tiab] OR "57852-57-0"[rn] OR "idamycin"[tiab])

and my HlookUP function

=HLOOKUP(C1,Lookup2, 2,FALSE)
 ("triamcinolone acetonide"[tiab])

works fine.

I need to create dynamic hyperlink using above two lookups which should be like

  http://www.ncbi.nlm.nih.gov/pubmed/?term=("idarubicin hydrochloride"[tiab] OR "57852-57-0"[rn] OR "idamycin"[tiab])AND("triamcinolone acetonide"[tiab])

I am able to use one VLOOKUP in hyperlink

=HYPERLINK("http://www.ncbi.nlm.nih.gov/pubmed/?term="&LEFT(VLOOKUP(A2,Lookup1,2,FALSE),200),B2)

But I also need to include HLOOKUP, how can I include that

I found the issue. The resulting http link was too long and thats why it was showing me #value The final query would be

=HYPERLINK("http://www.ncbi.nlm.nih.gov/pubmed/?term="&CONCATENATE(LEFT(VLOOKUP(A2,Lookup1,2,FALSE),200),"AND",LEFT(HLOOKUP(C$1,Lookup2,2,FALSE),255)),B2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM