Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default formula to follow preceeding value


Hi,

Is there a function in Excel that will read the cell directly above itself in a column and follow on as the next number. I am currently using the formula ="C4"+1 etc, but this is not an ideal formula as when I insert or delete rows things start to go wrong !.

Any help v much appreciated

Thanks,

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default formula to follow preceeding value

Hi Mike
maybe ROW() is the function you're looking for. Put
=ROW()
in call A1 and copy down

HTH
Frank

Mike wrote:
Hi,

Is there a function in Excel that will read the cell directly above
itself in a column and follow on as the next number. I am currently
using the formula ="C4"+1 etc, but this is not an ideal formula as
when I insert or delete rows things start to go wrong !.

Any help v much appreciated

Thanks,

Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default formula to follow preceeding value

another way if you always want to add 1 to the preceeding row try the
following for column A
=INDIRECT("A" & ROW()-1)+1

Now you can delete rows in between. the formula will still work
Frank

Frank Kabel wrote:
Hi Mike
maybe ROW() is the function you're looking for. Put
=ROW()
in call A1 and copy down

HTH
Frank

Mike wrote:
Hi,

Is there a function in Excel that will read the cell directly above
itself in a column and follow on as the next number. I am currently
using the formula ="C4"+1 etc, but this is not an ideal formula as
when I insert or delete rows things start to go wrong !.

Any help v much appreciated

Thanks,

Mike



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default formula to follow preceeding value

Jepp

It's something like this "=SUM(R[-1]C)"

R = rows C= column and in this case the [-1] means current ROW -1 (but the same column :-)

"=SUM(R[-1]C[-1])" should thefore be one up and one left, and then you can add +1 or whatever....

Kjell
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default formula to follow preceeding value

Kjell,

That's the same formula that he has, just in RC notation. It has the
same problem that he is talking about.

HTH,
Bernie
MS Excel MVP

"Kjell" wrote in message
...
Jepp

It's something like this "=SUM(R[-1]C)"

R = rows C= column and in this case the [-1] means current

ROW -1 (but the same column :-)

"=SUM(R[-1]C[-1])" should thefore be one up and one left, and then

you can add +1 or whatever....

Kjell





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default formula to follow preceeding value

Mike,

=INDIRECT(ADDRESS(ROW()-1,COLUMN()))+1

HTH,
Bernie
MS Excel MVP

"Mike" wrote in message
...

Hi,

Is there a function in Excel that will read the cell directly above

itself in a column and follow on as the next number. I am currently
using the formula ="C4"+1 etc, but this is not an ideal formula as
when I insert or delete rows things start to go wrong !.

Any help v much appreciated

Thanks,

Mike



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
precede or follow formula with text Marge Excel Discussion (Misc queries) 2 March 31st 09 05:59 PM
Complex Autofill does not follow formula The Life Coach Excel Discussion (Misc queries) 4 December 7th 07 06:12 PM
HOW DO I LINK PAGES ON EXCEL TO FOLLOW SAME LINKED FORMULA? al Excel Worksheet Functions 0 February 8th 07 08:32 PM
How to select preceeding cell in a formula? Dennis Excel Worksheet Functions 3 June 22nd 06 11:30 AM
Inserting rows and having the formula follow workofiction New Users to Excel 1 June 21st 05 04:14 PM


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