Is there a formula that I can use to pull a number from the rightmost column with data? The row will never change and length of the column range is already predefined. I will just be adding data in each column over time and would like the most recent number to appear in a separate cell.
Thanks,
Yes, you can do that. If you input data in row 1, you can use:
=INDEX(1:1,MATCH(9^99,1:1,1))
Or
=LOOKUP(9^99,1:1)
To get the most recent number . Those won't work with text, but you can replace 9^99
with zzz
for text.
If you can have a number larger than the result of 9^99
though, you need to pick a higher number in the above formulae.
对于第3行,假设最后一列的数据没有空白:
=INDEX(3:3,1,COUNTA(3:3))
This one works for numbers and strings and ignores blanks. It's an array formula, so must be entered with ctrl-shift-enter:
=INDEX(2:2,MAX((2:2<>"")*(COLUMN(2:2))))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.