how to find a last value in a column in numbers even when there are empty columns in

In Numbers file, need to find a last value in the column even when there are empty columns in between

Posted on Nov 1, 2024 10:13 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 1, 2024 11:06 AM

It's non-obvious, but to find the last value in column B you can use the formula:


=LOOKUP(REGEX(".*"),B)


(substitute the 'B' for any other column or range to search)


REGEX() uses regular expressions to find values, in this case ".*" represents 'any value', i.e. non-blank cells.

This is passed as a parameter to lookup which creates a reference to a cell and returns the last cell in the range.

2 replies
Question marked as Top-ranking reply

Nov 1, 2024 11:06 AM in response to PrakashKarnam

It's non-obvious, but to find the last value in column B you can use the formula:


=LOOKUP(REGEX(".*"),B)


(substitute the 'B' for any other column or range to search)


REGEX() uses regular expressions to find values, in this case ".*" represents 'any value', i.e. non-blank cells.

This is passed as a parameter to lookup which creates a reference to a cell and returns the last cell in the range.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to find a last value in a column in numbers even when there are empty columns in

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.