Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike
 
Posts: n/a
Default Formulas: Keeping same row/column reference when columns are inser

I'm trying to create a formula that will return the value of a cell based on
its row and column position in the spreadsheet even if I insert another
column.

Example
Formula in Cell C2 is: =A2+B2.
I insert a new column A.
This moves everything one column right and the formula in cell D2 is now:
=B2+C2.

What I'd like is a formula that references the row/column position in the
spreadsheet repardless of if columns are inserted or deleted so that after
inserting a new column A my formula is the value of the new information in A2
& B2. I'd like the formula that moved to D2 to still give me the value for:
=A2+B2

I suspect that Index might work but haven't been able to figure it out yet.
Thanks!
--
Cheers,
MIke
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=INDIRECT("A2")+INDIRECT("B2")

--

Regards,

Peo Sjoblom

"Mike" wrote in message
...
I'm trying to create a formula that will return the value of a cell based

on
its row and column position in the spreadsheet even if I insert another
column.

Example
Formula in Cell C2 is: =A2+B2.
I insert a new column A.
This moves everything one column right and the formula in cell D2 is now:
=B2+C2.

What I'd like is a formula that references the row/column position in the
spreadsheet repardless of if columns are inserted or deleted so that after
inserting a new column A my formula is the value of the new information in

A2
& B2. I'd like the formula that moved to D2 to still give me the value

for:
=A2+B2

I suspect that Index might work but haven't been able to figure it out

yet.
Thanks!
--
Cheers,
MIke



  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

=SUM(OFFSET($A1,1,,1,2)
or
=SUM(OFFSET($A2,,,1,2)
will do, unless a column left to column A is added.


Arvi Laanemets


"Mike" wrote in message
...
I'm trying to create a formula that will return the value of a cell based

on
its row and column position in the spreadsheet even if I insert another
column.

Example
Formula in Cell C2 is: =A2+B2.
I insert a new column A.
This moves everything one column right and the formula in cell D2 is now:
=B2+C2.

What I'd like is a formula that references the row/column position in the
spreadsheet repardless of if columns are inserted or deleted so that after
inserting a new column A my formula is the value of the new information in

A2
& B2. I'd like the formula that moved to D2 to still give me the value

for:
=A2+B2

I suspect that Index might work but haven't been able to figure it out

yet.
Thanks!
--
Cheers,
MIke



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUM(INDIRECT("A2:B2"))

In article ,
"Mike" wrote:

I'm trying to create a formula that will return the value of a cell based on
its row and column position in the spreadsheet even if I insert another
column.

Example
Formula in Cell C2 is: =A2+B2.
I insert a new column A.
This moves everything one column right and the formula in cell D2 is now:
=B2+C2.

What I'd like is a formula that references the row/column position in the
spreadsheet repardless of if columns are inserted or deleted so that after
inserting a new column A my formula is the value of the new information in A2
& B2. I'd like the formula that moved to D2 to still give me the value for:
=A2+B2

I suspect that Index might work but haven't been able to figure it out yet.
Thanks!

  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

I suspect that's exactly what the OP meant by "inserting a new column
A"...



In article ,
"Arvi Laanemets" wrote:

unless a column left to column A is added.



  #6   Report Post  
Mike
 
Posts: n/a
Default

Thanks Peo. It works! :-)

"Peo Sjoblom" wrote:

One way

=INDIRECT("A2")+INDIRECT("B2")

--

Regards,

Peo Sjoblom

"Mike" wrote in message
...
I'm trying to create a formula that will return the value of a cell based

on
its row and column position in the spreadsheet even if I insert another
column.

Example
Formula in Cell C2 is: =A2+B2.
I insert a new column A.
This moves everything one column right and the formula in cell D2 is now:
=B2+C2.

What I'd like is a formula that references the row/column position in the
spreadsheet repardless of if columns are inserted or deleted so that after
inserting a new column A my formula is the value of the new information in

A2
& B2. I'd like the formula that moved to D2 to still give me the value

for:
=A2+B2

I suspect that Index might work but haven't been able to figure it out

yet.
Thanks!
--
Cheers,
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
Pasting columns but want the formulas to go up in increments of 1 Nicole L. Excel Worksheet Functions 1 February 1st 05 10:11 PM
Incrementing rows (or columns) to a reference in another worksheet Ignobilitor Excel Worksheet Functions 2 January 20th 05 03:45 PM
Relative worksheet reference in 3-D formulas? [email protected] Excel Worksheet Functions 13 January 15th 05 03:01 PM
Formulas Against Columns Gary Excel Discussion (Misc queries) 3 December 20th 04 07:13 PM
formulas against columns not cells Gary Excel Worksheet Functions 1 December 20th 04 06:04 PM


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