Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default how to reference a changing 'last row' cell in a formula

I've done this in a vba macro, but now I have a need to do it in a
cell formula.

In my worksheet, a new row of detail is added daily. In the 'header'
area (rows 1 through 10) I have a cell that needs to make a
calculation based on the value of a cell in the most recently added
(last occupied) detail row. In pseudo code it would be something like
this:

=$B(LastRow) * 23.5

Is there an elegant way to do this?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default how to reference a changing 'last row' cell in a formula

=LOOKUP(1E+100,B:B) * 23.5


Gord Dibben MS Excel MVP


On Fri, 6 Jun 2008 17:11:31 -0700 (PDT), EdStevens
wrote:

I've done this in a vba macro, but now I have a need to do it in a
cell formula.

In my worksheet, a new row of detail is added daily. In the 'header'
area (rows 1 through 10) I have a cell that needs to make a
calculation based on the value of a cell in the most recently added
(last occupied) detail row. In pseudo code it would be something like
this:

=$B(LastRow) * 23.5

Is there an elegant way to do this?

TIA


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to reference a changing 'last row' cell in a formula

For Column B...

=23.5*LOOKUP(2,1/(A1:A65535<""),A:A)

Rick


"EdStevens" wrote in message
...
I've done this in a vba macro, but now I have a need to do it in a
cell formula.

In my worksheet, a new row of detail is added daily. In the 'header'
area (rows 1 through 10) I have a cell that needs to make a
calculation based on the value of a cell in the most recently added
(last occupied) detail row. In pseudo code it would be something like
this:

=$B(LastRow) * 23.5

Is there an elegant way to do this?

TIA


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
copy an exact formula without changing cell reference Vidal Excel Worksheet Functions 1 September 5th 09 09:48 AM
referenceing 'last row' in a cell formula EdStevens Excel Programming 0 June 2nd 08 09:49 PM
Change formula file reference by changing value in cell jrick47 Excel Programming 2 January 18th 06 02:03 AM
A cell reference in a formula changing knemitz Excel Worksheet Functions 1 February 28th 05 06:10 PM
HOW DO I COPY FORMULA WITHOUT CHANGING CELL REFERENCE anantth Excel Discussion (Misc queries) 4 February 6th 05 12:25 PM


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

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

About Us

"It's about Microsoft Excel"