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
|
|
0
|
|
|
|
Reply
|
Utf
|
11/20/2009 5:38:03 PM |
|
Try this formula in A302 and copy it across as needed...
=INDEX(A1:A300,ROW(A300))-INDEX(A1:A300,ROW(A301))
--
Rick (MVP - Excel)
"Manuel" <Manuel@discussions.microsoft.com> wrote in message
news:6D512FDE-9353-43F2-8C87-811BC639DF40@microsoft.com...
> 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
>
|
|
0
|
|
|
|
Reply
|
Rick
|
11/20/2009 5:58:24 PM
|
|
Thank you for the suggestion but unfortunately it did not work. The formula
references are still not adjusting to the last two rows. Any other
suggestions? I suspect that this can be done with VBA.
"Rick Rothstein" wrote:
> Try this formula in A302 and copy it across as needed...
>
> =INDEX(A1:A300,ROW(A300))-INDEX(A1:A300,ROW(A301))
>
> --
> Rick (MVP - Excel)
>
>
> "Manuel" <Manuel@discussions.microsoft.com> wrote in message
> news:6D512FDE-9353-43F2-8C87-811BC639DF40@microsoft.com...
> > 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
> >
>
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
11/20/2009 9:42:01 PM
|
|
Excel 2007
With dynamic Tables
http://c0444202.cdn.cloudfiles.rackspacecloud.com/11_21_09.xlsx
|
|
0
|
|
|
|
Reply
|
Herbert
|
11/22/2009 6:01:28 PM
|
|
|
3 Replies
181 Views
(page loaded in 0.192 seconds)
Similiar Articles: Cannot sum in report footer based on group footer - microsoft ...Cannot sum in report footer based on group footer - microsoft ... Cannot sum in report footer based on group footer - microsoft ... Grand Totals In Report Footer for ... Calculate the position of a formula and number of cells from it ...If the formula is copied, the relative reference ... Is there a formula, (not code), I >can use to calculate the sum of ... could help me with a formula to find the position ... Control Msgbox position - microsoft.public.access.modulesdaovba ...... files and when the windows are tiled for best use ... way in Access 03 to make the message box location relative ... will be displayed in a message box at the end. ... sum ... Sorting Table of Contents - microsoft.public.word.docmanagement ...I have only just starting using Word 2007 and I am ... Hi Nylex, TOCs always sort by relative position in the document. ... sort by sum of a field - microsoft.public.access ... Indentation in bulleted list - microsoft.public.word.pagelayout ...In the dialog box, "Bullet position" is the distance ... Relative indentation in Word 2007? - microsoft.public.word ... ... List | eHow.com A list in a document can help sum up ... small letters after numbers - microsoft.public.word.docmanagement ...sum letters with values and numbers - microsoft ... HOW DO I WORD A "Position has already been filled" LETTER? ... These ordinal abbreviations are actually hybrid ... I need to change from "=E7" to (equals the current value ...(see code below) In my Code, I use "=E7, =G7, =F36..." ... type =IF((C7-B7)<31,D7*0.03,0) ... the value of the sum ... You need to understand absolute vs. relative ... numbers in ... Ordinal number - Wikipedia, the free encyclopediaThe Cantor normal form uniquely represents each ordinal as a finite sum of ordinal powers ... used for two purposes: to describe the size of a set, or to describe the position of ... How to Teach Ordinal Positions to Kindergarten | eHow.comTeaching ordinal numbers and their positions to kindergarten students can be a challenge since most kindergartners have only just mastered counting and numbers. Young ... Basic Concepts of Quantitative Research - KsuWeb Home Page... measures of variability, measures of relative position, and ... only appropriate measure of variability for ordinal ... the number of subjects, 2) Calculate the sum of ... Ordinal number | Define Ordinal number at Dictionary.comordinal number —n: 1. Sometimes shortened to: ordinal a number denoting relative position in a sequence, such as first, second, third: 2. logic, maths a measure of not only ... First Grade Mathematics Pacing Guide• use the terms sum and difference in appropriate context • use conventional ... Determine relative position using ordinal numbers (first through twelfth) 7/31/2012 7:24:12 AM
|