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.

How this formula works

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. This works in this case because all values in C are numeric, and there are no blanks. For other situations, see other "last row" formulas linked on this page.

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.

Excel foundational video course
Excel Pivot Table video training course
Excel formulas and functions video training course
Excel Shortcuts Video Course
Excel Charts video training course
Video training for Excel Tables