Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Shunt
 
Posts: n/a
Default summing a volitile number of cells

I've got a row of numbers A2:K2. I want a formula that will sum from A2 to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default summing a volitile number of cells

Try

=SUM(OFFSET(B2,0,1,1,A2))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Shunt" wrote in message
...
I've got a row of numbers A2:K2. I want a formula that will
sum from A2 to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to
C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...



  #3   Report Post  
Posted to microsoft.public.excel.misc
Trevor Shuttleworth
 
Posts: n/a
Default summing a volitile number of cells

=SUM(OFFSET(A2,,,,A1))

Regards

Trevor


"Shunt" wrote in message
...
I've got a row of numbers A2:K2. I want a formula that will sum from A2
to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...



  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default summing a volitile number of cells

One way

=SUM(A2:INDEX(A2:K2,A1))

it's non volatile as opposed to OFFSET and INDIRECT

Regards,

Peo Sjoblom


"Shunt" wrote:

I've got a row of numbers A2:K2. I want a formula that will sum from A2 to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...

  #5   Report Post  
Posted to microsoft.public.excel.misc
Shunt
 
Posts: n/a
Default summing a volitile number of cells

Thanks Chip, I was cruising your web site when you for answers when you
responded in person.
THX

"Chip Pearson" wrote:

Try

=SUM(OFFSET(B2,0,1,1,A2))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Shunt" wrote in message
...
I've got a row of numbers A2:K2. I want a formula that will
sum from A2 to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to
C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...






  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default summing a volitile number of cells

A non-volatile alternative for you

=SUM(A2:INDEX(2:2,A1))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Shunt" wrote in message
...
Thanks Chip, I was cruising your web site when you for answers when you
responded in person.
THX

"Chip Pearson" wrote:

Try

=SUM(OFFSET(B2,0,1,1,A2))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Shunt" wrote in message
...
I've got a row of numbers A2:K2. I want a formula that will
sum from A2 to
the number of cells I enter in A1.

So if I enter "3" in cell A1, the formula will sum from A2 to
C2.
and if I enter "5" in cell A1, it will sum from A2 to E2.

I've been fiddling around in R1C1 but not getting it to work...






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
I want the greater number of 2 cells to show in a separate cell cfiser Excel Discussion (Misc queries) 2 November 16th 05 10:32 PM
I want the greater number of 2 cells to show in a separate cel cfiser Excel Discussion (Misc queries) 0 November 16th 05 10:03 PM
I want the greater number of 2 cells to show in a separate cell Ron Coderre Excel Discussion (Misc queries) 1 November 16th 05 09:22 PM
Number format exactly the same, displays differently in some cells eider Excel Discussion (Misc queries) 1 July 29th 05 12:26 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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