Use Query, then Hyperlink

TipFinder

New Member
Joined
Aug 10, 2004
Messages
23
I'm trying to find a way to create a function to do the following:
1.Enter an ID# in Sheet1A1,
2. The query system would use this number to find the matching ID in Sheet 2
3. Once the matching ID in seet 2 has been found, Sheet1A1 would be hyperlink to the matching cell in Sheet 2.

Could this function be done? If so, how?

Thanks for helping.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
My knowledge of VBA is none existance.
:banghead:
Where would I insert the following code in Excel? :pray:

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
'Sub foo()
'Set Target = [E5].... End If
Set WS = Nothing
End If
End Sub

Thanks for helping.
 
Upvote 0
Whewwy! This was a fun little feller for a Friday afternoon!

Okay - no VBA then...

Here's Sheet1:
Hyperlink Test.xls
ABCD
1orangeorange
Sheet1

Formula in B1 is:
=HYPERLINK(RIGHT(CELL("Filename",Sheet2!A1),LEN(CELL("Filename",Sheet2!A1))-FIND("[",CELL("Filename",Sheet2!A1),1)+1)&"!"&ADDRESS(MATCH(A1,Sheet2!A:A,0),1),A1)

Here's Sheet2:
Hyperlink Test.xls
ABCD
1Fruit
2Apple
3Orange
4Grape
Sheet2
 
Upvote 0
Hi Greg,

What's wrong with the formula in Sheet B. The formula is Sheet A works fine, but Sheet B does not; even though it uses the same formula

Sheet A
Records.xls
FGHI
1P/ONO. w/Line#PORecordUnit/PriceShip/Q'ty
24500041579450004157945.20180
345000420924500042092103.0050
445000429544500042954103.0050
54500041144450004114437.79300
64500041579450004157945.20120
74500044291450004429145.20300
84500041144450004114461.20496
94500041579LINE#20#N/A61.2040
SheetA


Sheet B
Records.xls
FGHI
1P/ONO. w/Line#POCopyComcodeNo:Unit/Price
24500246665#N/A500246$54.45
34500266719#N/A500121$7.00
44500274095#N/A500246$58.85
54500291264#N/A500031$65.20
64500301143#N/A500125$8.50
74500304967#N/A500440$55.50
84500301967#N/A500475$18.00
94500286829#N/A500475$18.00
SheetB
 
Upvote 0
My hunch is that you're getting some type of failure to Match(). For troubleshooting you can use Tools | Formula Auditing | Evaluate Formula to step through the formula and see which component is failing. Or you can build the formula up step-by-step to find the fault and then figure out how to fix the fault, i.e.
G2=MATCH(F2,PO!C:C,0)
G3=ADDRESS(MATCH(F3,PO!C:C,0),3)
...
and so forth.
Then twiddle with either formula components or inputs into the formula until it starts behaving itself.

HTH
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,609
Members
452,660
Latest member
Zatman

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