I know you can copy a cell, then "paste as hyperlink" to generate a link by hand which when clicked will lead you to the pasted cell.
However what I am looking to do is write a formula (no macro) which can generate a link to a cell on a different sheet based upon something like "match" or "vlookup" or "hlookup"
Effectively I need to write a simple search formula that can match a users input and generate a link leading to the cell on anther sheet which matches the given input.
Ex, in cell A1 the user types "301" and in B1 a hyperlink is generated which is "clickable" which upon clicking will lead the user to the cell on the sheet which contains "301". I would like to automate the paste as hyperlink operation based on user input.
Any ideas?
Attached is an example using the HYPERLINK function. This assumes data is in a single column. (If your data is not in a single row or a single column then I'm not sure how to solve this.)
In this example if you enter a number that is not found, the result is "Not Found." If the number is found, then the result is a clickable link that says "Go there".
Making the world a better place one fret at a time
||||||
If someone helped you, please click on the star icon at the bottom of their post
If your problem is solved, please update the first post:
EDIT, Go Advanced button, set Prefix to SOLVED
[code]
' Enclose code in tags like this
[/code]
Don't attach a screenshot--just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.
Hello
Another one.
Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STARicon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.
Dare to give a pencil to a child. http://www.blackpencilproject.org/
I like the error checking because the users of my spread sheet will likely input numbers that don't exist and this way they wont be confused when it bounces.
I have a question though...I will be searching single columns, but over multiple sheets. so the same column across say ten different sheets.
All of the data is organized into tables with unique names. One table per sheet, and the headers of each table are identical. So the first column (A) is always the user numbers. I will include a sample that matches my format so you can tell me if you think this is adaptable.
So I know I can refer to each table easily with "Table1[user]" or "Table2[user]" but is there a way I can refer to every "user" column. Could I set up a named range that spans multiple worksheets? Or can we just adapt the formula to work with multiple ranges?
Your initial post suggested match and lookup, which can only search one sheet (as far as I have been able to find out). Named ranges cannot span sheets. You need a macro, or nested IF tests, one for each sheet.
Yea I have just been playing with this to test multiple sheets. I could use any functions to accomplish this, just my first guess was to use match. I didn't foresee the complication of multiple sheets. I can pursue the nested If's --a bit hacked together but its only 11 sheets so it will still run fine.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks