#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Hyperlink Match

I am trying to match two columns and provide a link in the third column.

Data in Worksheet1
Column H I J
Description Sub Amount
Product 1 100 25000
Product 2 200 40000

Worksheet2
Description Sub Details
Product 1 100 stuff
Product 1 200 stuff
Product 1 100 more stuff
Product 2 200 stuff
Product 2 100 more stuff

In Column G in Sheet1, I have this formula, HYPERLINK("#'Sheet2'!A" & IF
(MATCH(H12,Sheet2!$A$1:$A$29,0)=MATCH(I12,
Sheet2!$A$1:$A$29,0),MATCH(H12,Sheet2!$A$1:$A$29,0 ),0), "Link")

The formula will work only if the first row of data is correct. Could
someone help me fine tune this please?

Thanks, Corrine

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Hyperlink Match

One way to get there ..

Illustrated in this sample:
http://www.flypicture.com/download/Njk5NQ==
Hyperlink n dual criteria match.xls

Put in G2, then array-enter the formula by pressing CTRL+SHIFT+ENTER,
instead of just pressing ENTER:
=HYPERLINK("#"&CELL("address",INDIRECT("'Sheet2'!C "&MATCH(1,(Sheet2!A$2:A$29=H2)*(Sheet2!B$2:B$29=I2 ),0)+1)),H2&"-"&I2)
Copy G2 down as far as required

The above creates hyperlinks in col G which jumps you to the row in
"Details" col C in Sheet1 which matches with the "Product#" & "Sub" (a dual
criteria match). Note that unique "Product#" & "Sub" combos are assumed
within Sheet2's cols A and B, otherwise the hyperlinks can only direct you to
the first matched row in Sheet2.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Corrine" wrote:
I am trying to match two columns and provide a link in the third column.

Data in Worksheet1
Column H I J
Description Sub Amount
Product 1 100 25000
Product 2 200 40000

Worksheet2
Description Sub Details
Product 1 100 stuff
Product 1 200 stuff
Product 1 100 more stuff
Product 2 200 stuff
Product 2 100 more stuff

In Column G in Sheet1, I have this formula, HYPERLINK("#'Sheet2'!A" & IF
(MATCH(H12,Sheet2!$A$1:$A$29,0)=MATCH(I12,
Sheet2!$A$1:$A$29,0),MATCH(H12,Sheet2!$A$1:$A$29,0 ),0), "Link")

The formula will work only if the first row of data is correct. Could
someone help me fine tune this please?

Thanks, Corrine

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Hyperlink Match

Oops, typo correction, line:
.. jumps you to the row in "Details" col C in Sheet1 ..


should read:
.. jumps you to the row in "Details" col C in Sheet2 ..



Put in G2, ...

The hyperlink formula is placed in Sheet1's G2
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Hyperlink Match

Thank you - I will try that. Corrine

"Max" wrote:

One way to get there ..

Illustrated in this sample:
http://www.flypicture.com/download/Njk5NQ==
Hyperlink n dual criteria match.xls

Put in G2, then array-enter the formula by pressing CTRL+SHIFT+ENTER,
instead of just pressing ENTER:
=HYPERLINK("#"&CELL("address",INDIRECT("'Sheet2'!C "&MATCH(1,(Sheet2!A$2:A$29=H2)*(Sheet2!B$2:B$29=I2 ),0)+1)),H2&"-"&I2)
Copy G2 down as far as required

The above creates hyperlinks in col G which jumps you to the row in
"Details" col C in Sheet1 which matches with the "Product#" & "Sub" (a dual
criteria match). Note that unique "Product#" & "Sub" combos are assumed
within Sheet2's cols A and B, otherwise the hyperlinks can only direct you to
the first matched row in Sheet2.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Corrine" wrote:
I am trying to match two columns and provide a link in the third column.

Data in Worksheet1
Column H I J
Description Sub Amount
Product 1 100 25000
Product 2 200 40000

Worksheet2
Description Sub Details
Product 1 100 stuff
Product 1 200 stuff
Product 1 100 more stuff
Product 2 200 stuff
Product 2 100 more stuff

In Column G in Sheet1, I have this formula, HYPERLINK("#'Sheet2'!A" & IF
(MATCH(H12,Sheet2!$A$1:$A$29,0)=MATCH(I12,
Sheet2!$A$1:$A$29,0),MATCH(H12,Sheet2!$A$1:$A$29,0 ),0), "Link")

The formula will work only if the first row of data is correct. Could
someone help me fine tune this please?

Thanks, Corrine

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Hyperlink Match

welcome ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Corrine" wrote in message
...
Thank you - I will try that. Corrine



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
search column, hyperlink, offset, substitute, match (omg) nastech Excel Discussion (Misc queries) 13 July 13th 06 09:58 PM
Moving rows with Hyperlink doesn't move hyperlink address Samad Excel Discussion (Misc queries) 15 June 22nd 06 12:03 PM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 01:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"