Quick, clean, and to the point

Hyperlink to first blank cell

Excel formula: Hyperlink to first blank cell
Generic formula 
=HYPERLINK("#"&CELL("address",INDEX(range,MATCH(bignum,range)+1)),"First blank")

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:

=HYPERLINK("#"&CELL("address",INDEX(C5:C100,MATCH(9.99E+307,C5:C100)+1)),"First blank")

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


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


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:


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:


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.

Dave Bruns

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.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.