ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Last cell in row range with a result (https://www.excelbanter.com/new-users-excel/137762-last-cell-row-range-result.html)

George[_2_]

Last cell in row range with a result
 
I need to see if anyone can tell me if it's possible to find the last
cell in a range that has a result and not just a formulas. We have this
file that has a row of formulas as each cell it a different day of the
month. In another file I need to pull the current cell and at this time
I have to change the cell reference. Please let me know, thanks

Gary''s Student

Last cell in row range with a result
 
if you have a row of data , say row 3, with no included blanks, then the last
value in that row is:

=INDEX($3:$3,COUNTA($3:$3))


--
Gary''s Student - gsnu200713

George[_2_]

Last cell in row range with a result
 
Gary''s Student wrote:
if you have a row of data , say row 3, with no included blanks, then the last
value in that row is:

=INDEX($3:$3,COUNTA($3:$3))


How are formulas that have no results treated.

Gary''s Student

Last cell in row range with a result
 
That cell will be reported if it is the last cell in a row. For example if
the last cell in a row contains:

=INDEX($3:$3,COUNTA($3:$3))

then a blank will be reported.
--
Gary''s Student - gsnu200713


"George" wrote:

Gary''s Student wrote:
if you have a row of data , say row 3, with no included blanks, then the last
value in that row is:

=INDEX($3:$3,COUNTA($3:$3))


How are formulas that have no results treated.


JMB

Last cell in row range with a result
 
You might also try:
=LOOKUP(2,1/($3:$3<""),$3:$3)

"George" wrote:

Gary''s Student wrote:
if you have a row of data , say row 3, with no included blanks, then the last
value in that row is:

=INDEX($3:$3,COUNTA($3:$3))


How are formulas that have no results treated.


George[_2_]

Last cell in row range with a result
 
Gary''s Student wrote:
That cell will be reported if it is the last cell in a row. For example if
the last cell in a row contains:

=INDEX($3:$3,COUNTA($3:$3))

then a blank will be reported.

Thanks

George[_2_]

Last cell in row range with a result
 
JMB wrote:
You might also try:
=LOOKUP(2,1/($3:$3<""),$3:$3)

"George" wrote:

Gary''s Student wrote:
if you have a row of data , say row 3, with no included blanks, then the last
value in that row is:

=INDEX($3:$3,COUNTA($3:$3))


How are formulas that have no results treated.

Thanks


All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com