Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formulas that refer to a cell in the last row

I have the following two functions in the following cells on my worksheet.

AJ10 =IF(SUM(AB7:AG7)<0,(E47+SUM(AB7:AG7))/(C47+SUM(AB4:AG4)),"")

AJ17 =IF(AB15<"",IF(AB14<"",(((AB15+C47)*AB14)-E47)/AB15,""),"")

The first formula uses C47 and the second uses C47 and E47. These cells were
the last row of my sheet when I made them. However this row changes and row
57 is now the last row. I need help setting up my formulas so they update
accordingly.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formulas that refer to a cell in the last row

Try these formulas and see if they work...

AJ10:
=IF(SUM(AB7:AG7)<0,(LOOKUP(2,1/(E$1:E$65535<""),E:E)+SUM(AB7:AG7))/(LOOKUP(2,1/(C$1:C$65535<""),C:C)+SUM(AB4:AG4)),"")

AJ17:
=IF(AB15<"",IF(AB14<"",(((AB15+LOOKUP(2,1/(C$1:C$65535<""),C:C))*AB14)-LOOKUP(2,1/(E$1:E$65535<""),E:E))/AB15,""),"")

where I used this to get the contents or the last cell in the specified
column (just change the Column A references)...

LOOKUP(2,1/(A$1:A$65535<""),A:A)

Rick


"JBoyer" wrote in message
...
I have the following two functions in the following cells on my worksheet.

AJ10 =IF(SUM(AB7:AG7)<0,(E47+SUM(AB7:AG7))/(C47+SUM(AB4:AG4)),"")

AJ17 =IF(AB15<"",IF(AB14<"",(((AB15+C47)*AB14)-E47)/AB15,""),"")

The first formula uses C47 and the second uses C47 and E47. These cells
were
the last row of my sheet when I made them. However this row changes and
row
57 is now the last row. I need help setting up my formulas so they update
accordingly.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Formulas that refer to a cell in the last row

Try these:

=IF(SUM(AB7:AG7)<0,(LOOKUP(99^99,E:E)+SUM(AB7:AG7 ))/(LOOKUP(99^99,C:C)+SUM(AB4:AG4)),"")

=IF(AB15<"",IF(AB14<"",(((AB15+LOOKUP(99^99,C:C) )*AB14)-LOOKUP(99^99,E:E))/AB15,""),"")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"JBoyer" wrote in message
...
I have the following two functions in the following cells on my worksheet.

AJ10 =IF(SUM(AB7:AG7)<0,(E47+SUM(AB7:AG7))/(C47+SUM(AB4:AG4)),"")

AJ17 =IF(AB15<"",IF(AB14<"",(((AB15+C47)*AB14)-E47)/AB15,""),"")

The first formula uses C47 and the second uses C47 and E47. These cells
were
the last row of my sheet when I made them. However this row changes and
row
57 is now the last row. I need help setting up my formulas so they update
accordingly.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formulas that refer to a cell in the last row

Thanks Rick! Yes they both work perfect.

"Rick Rothstein (MVP - VB)" wrote:

Try these formulas and see if they work...

AJ10:
=IF(SUM(AB7:AG7)<0,(LOOKUP(2,1/(E$1:E$65535<""),E:E)+SUM(AB7:AG7))/(LOOKUP(2,1/(C$1:C$65535<""),C:C)+SUM(AB4:AG4)),"")

AJ17:
=IF(AB15<"",IF(AB14<"",(((AB15+LOOKUP(2,1/(C$1:C$65535<""),C:C))*AB14)-LOOKUP(2,1/(E$1:E$65535<""),E:E))/AB15,""),"")

where I used this to get the contents or the last cell in the specified
column (just change the Column A references)...

LOOKUP(2,1/(A$1:A$65535<""),A:A)

Rick


"JBoyer" wrote in message
...
I have the following two functions in the following cells on my worksheet.

AJ10 =IF(SUM(AB7:AG7)<0,(E47+SUM(AB7:AG7))/(C47+SUM(AB4:AG4)),"")

AJ17 =IF(AB15<"",IF(AB14<"",(((AB15+C47)*AB14)-E47)/AB15,""),"")

The first formula uses C47 and the second uses C47 and E47. These cells
were
the last row of my sheet when I made them. However this row changes and
row
57 is now the last row. I need help setting up my formulas so they update
accordingly.



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
Formulas that refer to (several) other columns for arguments... audreyglennette Excel Worksheet Functions 5 April 1st 06 04:04 AM
Formulas that refer to other colums for arguments? audreyglennette Excel Worksheet Functions 6 March 31st 06 12:19 AM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM
How to refer to every 5 th cell? R.P.McMurphy Excel Discussion (Misc queries) 21 August 27th 05 06:13 PM
Excel should let me use formulas that refer to other cells w/ form Chenopod Excel Worksheet Functions 7 May 31st 05 04:21 PM


All times are GMT +1. The time now is 07:26 AM.

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"