LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Sum using ordinal/relative positioning

Hi,

I'm not sure I'm using the correct terminology but here's what I'm trying to
accomplish.

I have an Excel Sheet that is linked to an Access table (I did this by
selecting Data / Import External Data / Import Data...). This works fine.
Let's say there are 300 records in the table not including the header row. I
have formulas in the first empty row in the spreadsheet (row 302, in this
example), that simply subtract the value in the last two rows (so,
=A300-A301, in this example). My table is dynamic and records can be added
or deleted. When records are added and the data in the Excel Sheet is
updated/refreshed the formulas do not retain their ordinal or relative
positions. I.e., rather than subtracting the value in the last two rows they
now subtract the value in what was formally the last row and the value in the
"new" last row. So, in this example, =A301-A304, if three records are added
to the table. I want the formula to reposition to =A303-A304.

How do I get Excel to reference the last two rows regardless of whether rows
are inserted or deleted, i.e. the two rows above where the formula is placed?

Your assistance is greatly appreciated!

Thanks,
Manuel

 
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
how do I format numbers to ordinal i.e. 1st, 2nd etc chieflx Excel Worksheet Functions 9 February 21st 09 11:59 AM
VB macros & "relative positioning" Dave Peterson Excel Programming 0 January 16th 07 12:13 AM
Ordinal Numbers Epinn Excel Worksheet Functions 12 October 27th 06 08:43 AM
Comments positioning relative to cell not worksheet home For the Developers. Excel Discussion (Misc queries) 0 August 18th 06 07:12 PM
Ordinal Nummbers List geotso[_2_] Excel Programming 3 October 31st 04 10:39 PM


All times are GMT +1. The time now is 07:41 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"