Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Finding the last completed row

I need to do a report on rental property. I've figured out that the best
solution seems to be a consolidation project.

Sheet 1 will be the report proper.

There will be a fixed format for each sheet. At the top of each sheet there
will be an area that has the fixed details of the lease.....leasee, county,
legal description, etc.

Then will start a series of rows numbering from 1 to n. Each row will have
the details (Start, end, payment interval, lease amount, etc.) of a lease
with the nth row containing the current lease.

I need to post forward some of the fixed details. That's easy. But I also
need to find the current lease which will be the last row completed. How do I
find that last row by formula? I need to use a formula for each lease on the
first page sothat the report is always current.

Clear enough to provide an answer?

Thanks.

Eric Johnson
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Finding the last completed row

Hi,

If you don't know which column this is in then it will be difficult with a
formula but if you know the column then this does it for column A

=INDIRECT("A"&SUMPRODUCT(MAX((ROW(A1:A50000))*(A1: A50000<""))))

change 50000 to a realistic likely number greater than your last row

Mike

"Eric" wrote:

I need to do a report on rental property. I've figured out that the best
solution seems to be a consolidation project.

Sheet 1 will be the report proper.

There will be a fixed format for each sheet. At the top of each sheet there
will be an area that has the fixed details of the lease.....leasee, county,
legal description, etc.

Then will start a series of rows numbering from 1 to n. Each row will have
the details (Start, end, payment interval, lease amount, etc.) of a lease
with the nth row containing the current lease.

I need to post forward some of the fixed details. That's easy. But I also
need to find the current lease which will be the last row completed. How do I
find that last row by formula? I need to use a formula for each lease on the
first page sothat the report is always current.

Clear enough to provide an answer?

Thanks.

Eric Johnson

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Finding the last completed row

"Mike H" wrote:

If you don't know which column this is in then it will be difficult with a
formula but if you know the column then this does it for column A

=INDIRECT("A"&SUMPRODUCT(MAX((ROW(A1:A50000))*(A1: A50000<""))))

change 50000 to a realistic likely number greater than your last row


I'll have to experiment. I may be able to do a series of columns (all will
be the same format from shhet to sheet and within a sheet) but at worst I can
plug column formulas in one by one into a single row for the sheet and then
copy that row forward to Sheet 1. Probably better that way anyway.

Thanks for your help.

Eric
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving completed row to another worksheet Doehead Excel Worksheet Functions 2 October 6th 08 11:24 PM
If A1=X cell d1 must be completed before row 2 can be used Paul07 Excel Worksheet Functions 1 September 26th 08 06:59 AM
Completed years and monhts Sai Krishna[_2_] Excel Worksheet Functions 7 May 24th 08 08:34 PM
count how many groups have been completed. excel Excel Worksheet Functions 1 February 18th 07 09:08 PM
IF completed THEN invisible lmv Excel Discussion (Misc queries) 9 November 22nd 06 03:35 PM


All times are GMT +1. The time now is 01:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"