# Hyperlink to first blank cell

To create hyperlinks to the first match in a lookup, you can use a formula based on the HYPERLINK function, with help from CELL, INDEX and MATCH.

In the example shown, the formula in C5 is:

This formula generates a working hyperlink to the first blank cell in column C.

### How this formula works

Working from the inside out, we use MATCH to locate the relative position of the last entry in column C:

MATCH(9.99E+307,C5:C100)

Basically, we are giving match a "big number" it will never find in approximate match mode. In this mode match will "step back" the last numeric value.

*Note: this works in this case because all values in C are numeric, and there are no blanks. For other situations (text values, etc.), see other "last row" formulas mentioned below. You will need to adjust the MATCH part of the formula to suit your needs.*

Next, we use INDEX to get the address of the "entry after the last entry" like this:

INDEX(C5:C100,6))

For array, we give INDEX C:C100 which represents the range we care about. For row number, we give INDEX the result returned by MATCH + 1. In this example, this simplifies to:

INDEX(C5:C100,6)

This appears to return the value at C10 but in fact INDEX actually returns an address ($C$10), which we extract with the CELL function and concatenate to the "#" character:

In this end, this is what goes into the HYPERLINK function:

=HYPERLINK("#$C$10","First blank")

The HYPERLINK function then constructs a clickable link to cell C10 on the same sheet, with "First link" as the link text.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.