I am trying to create a formula that will Vlookup on the CC column to another tab and if the Lookup is True it will put a Hyperlink to the other tab. I would like to have the text displayed for the Hyperlink be some generic text (i.e.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Hyperlink in a Formula? (2002 SP3)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Hyperlink in a Formula? (2002 SP3)
- This topic has 9 replies, 4 voices, and was last updated 20 years, 2 months ago.
AuthorTopicWSsobershe
AskWoody LoungerMarch 24, 2005 at 5:17 pm #417529Viewing 1 reply threadAuthorReplies-
WSsdckapr
AskWoody LoungerMarch 24, 2005 at 7:35 pm #937033This will add the Text you want to the cell (based on a modification of Legare’s formula):
=IF(ISERROR(VLOOKUP(B4,’Project Listing’!$A$2:$C$159,3)),””,IF(VLOOKUP(B4,’Project Listing’!$A$2:$C$159,3)>0,HYPERLINK(VLOOKUP(B4,’Project Listing’!$A$2:$C$159,1),”See Projects Tab”)))
I am not sure what you are after, since you aren’t looking up a valid “hyperlink Address” in the datatable…
Steve
-
WSsobershe
AskWoody LoungerMarch 25, 2005 at 11:42 am #937113Thanks Legare and Steve. The formula works except when you click on the hyperlink there is an error message “cannot open the specified file.”
Steve, in answer to your question, what I really want is, if a CC has a project (s) I want to put a link to the Projects listing tab. The formula puts the right text in the hyperlink and correctly identifies CCs that have projects but clicking on the link doesn’t work.
-
WSHansV
AskWoody LoungerMarch 25, 2005 at 12:31 pm #937119Try the attached.
WARNING: don’t open the file directly, but download it and rename it to Loungelookup.xls. The formula I used=IF(ISERROR(MATCH(B3,’Project Listing’!$A$2:$A$160,0)),””,HYPERLINK(“[Loungelookup.xls]’Project Listing’!” & ADDRESS(MATCH(B3,’Project Listing’!$A$2:$A$160,0)+1,3),”See Projects Tab”))
uses the file name.
-
WSsobershe
AskWoody LoungerMarch 25, 2005 at 12:55 pm #937124Hans, works like a charm!
And I see I(I think) that the hyperlink needed the file name also. Can you explain the last part of the formula?
[indent]
=IF(ISERROR(MATCH(B3,’Project Listing’!$A$2:$A$160,0)),””, HYPERLINK(“[Loungelookup.xls]’Project Listing’!” & ADDRESS(MATCH(B3,’Project Listing’!$A$2:$A$160,0) +1,3 ),”See Projects Tab”))
[/indent] What does the +1 do? Is it related to the & ADDRESS? I’m confused about the &ADDRESS(MATCH(
Thanks a lot!!
-
WSHansV
AskWoody LoungerMarch 25, 2005 at 1:04 pm #937125The first argument to the HYPERLINK function is a string value specifying the hyperlink address. If this is a location in an Excel workbook, the string must be of the form
"[Workbook.xls]'Worksheet'!D37"
In your situation, the first part is fixed:
"[Loungelookup.xls]'Project Listing'!"
This is concatenated with the address of the cell you want to jump to. To get this address, we use the ADDRESS(row, column) function. The column number is 3, for column C, and the row number is obtained from the MATCH function.MATCH(B3,'Project Listing'!$A$2:$A$160,0)
looks up the value of B3 in A2:A160 on the Project Listing sheet; the 3rd argument 0 specifies that we’re looking for an exact match. The function returns an index number: 1 if a match was found in the 1st cell, 2 if a match was found in the 2nd cell etc. Since we’re looking in the range A2:A160, we must add 1 to this result to get the actual row number.Clear as mud now?
-
WSsobershe
AskWoody LoungerMarch 28, 2005 at 7:04 pm #937666Hans,
Actually, I think I understand it. I worked through each part of the formula and it makes sense. Well, almost. The only thing that still confuses me is the +1. I took it out just to prove it to myself and it Hyperlinks to the cell above – so I see that you need it. But I’m not sure why. -
WSHansV
AskWoody LoungerMarch 28, 2005 at 7:12 pm #937667The MATCH function looks up the search value in the range A2:A160.
If MATCH returns 1, it means that the search value was found in the very first cell in the range, i.e. in A2.
If MATCH returns 2, it means that the search value was found in the second cell in the range, i.e. in A3.
In general, the row number of the cell where the search value is found is one more than the result of MATCH; this is the +1. This is because the range A2:A160 starts in the second row of the worksheet, not in the first row. If you had searched in A1:A159, you wouldn’t have had to use the +1. On the other hand, if you had searched in A3:A161, you’d have had to use +2, etc.
-
-
-
-
-
H. Legare Coleman
AskWoody PlusMarch 24, 2005 at 8:44 pm #937029Line break inserted by HansV to prevent horizontal scrolling. The formula should be entered as one line, though.
Does this do what you want?
=IF(ISERROR(VLOOKUP(B3,'Project Listing'!$A$2:$C$159,3)),"",IF(VLOOKUP(B3, 'Project Listing'!$A$2:$C$159,3)>0,HYPERLINK(VLOOKUP(B3,'Project Listing'!A2:C159,1),"")))
Formula corrected. Thanks Steve.
-
WSsdckapr
AskWoody Lounger
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
My Simple Word 2010 Macro Is Not Working (Awaiting moderation)
by
mbennett555
6 hours, 59 minutes ago -
Office gets current release
by
Susan Bradley
11 hours, 42 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 4 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
12 hours, 45 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 5 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 14 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 17 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 17 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 18 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 18 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 6 hours ago -
Enabling Secureboot
by
ITguy
1 day, 13 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 2 hours ago -
No more rounded corners??
by
CWBillow
1 day, 22 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 12 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 14 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 17 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 12 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days ago -
May preview updates
by
Susan Bradley
2 days, 12 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 3 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 17 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 14 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 16 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 16 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
14 hours, 14 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 4 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
2 days, 3 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 18 hours ago -
Another test post
by
gtd12345
4 days, 18 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.