Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Formula to display number from the last (rightmost) non-blank cell in a specific row in another sheet...

The title mostly covers it. I have a cell in Sheet 1 in which I want to display a number from a cell in Sheet 2. But, when a new value is added in the next column I want to see the newly added value.


Say I have this in Sheet 2:


ColA ColB ColC ColD ColE, etc.

Row1 28 36 15

Row2 54 19 30

Row3 16 22 41


I want the cell in Sheet 1 to display the 41 from C3, but if anything is ever entered in D3—55 for example—then I want to display the 55. If something is entered in E3, I want to see that, etc.


In case it matters, there are no blank cells in row 3 prior to column C, and nothing but blanks in that row from D and beyond.


Thanks!


Posted on Apr 29, 2022 7:29 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 29, 2022 9:16 AM

One way is to do something like this:



=XLOOKUP(REGEX("."),Table 2::3:3,Table 2::3:3,"",2,-1)



Or, if you are in a region that uses , as the decimal separator:


=XLOOKUP(REGEX(".");Table 2::3:3;Table 2::3:3;"";2;-1)


This tells Numbers to search from last to first in the range for the first cell with a character in it.


SG


4 replies
Question marked as Top-ranking reply

Apr 29, 2022 9:16 AM in response to David Dixon

One way is to do something like this:



=XLOOKUP(REGEX("."),Table 2::3:3,Table 2::3:3,"",2,-1)



Or, if you are in a region that uses , as the decimal separator:


=XLOOKUP(REGEX(".");Table 2::3:3;Table 2::3:3;"";2;-1)


This tells Numbers to search from last to first in the range for the first cell with a character in it.


SG


Formula to display number from the last (rightmost) non-blank cell in a specific row in another sheet...

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