How to skip rows

dormond

New Member
Joined
Jul 22, 2019
Messages
7
Hi Guys!!

I'm using the Hyperlink function for a database with different sheets. On my main sheet I have the label of each element, and on my second sheet I have each element with an individual table with some data.

The issue is that I need to link the label on the first sheet with the table of the element on the second sheet. For that, I used:

=HYPERLINK("#'Sheet2'!A1", 'Sheet2'!A1)

Before extending this formula to all the remaining elements (2499). I hided on the Sheet2 all the rows that I dont neet to be linked. But the formula still link them, is there a way to make that HYPERLINK skip all the hided rows?
 

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,670
Office Version
2013
Platform
Windows
Perhaps you could filter after you extend the formula (filter on the rows with errors, then remove those formulas). Otherwise, you'll probably have to explain much better because this is not a typical setup and itsn't isn't so clear what you are doing. Anything with thousands of hyperlinks is probably just fragile and prone to become a mainenance nightmare anyway.
 

dormond

New Member
Joined
Jul 22, 2019
Messages
7
Hi Xenou! Thanks for the answer.

I found a way to do it. The formula searchs for a cell in the second sheet named as the cell in the first sheet, and then it creat the hyperlink.
This website explains it better
https://exceljet.net/formula/hyperlink-to-first-match

=HYPERLINK("#"& CELL("address",INDEX('Sheet2'!A$1:A$4892,MATCH(L28,'Sheet2'!A$1:A$4892,0))),"Go")

I share it, in case someone find it usefull.

See you!
 

Watch MrExcel Video

Forum statistics

Threads
1,102,336
Messages
5,486,250
Members
407,538
Latest member
kbendelac

This Week's Hot Topics

Top