#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default formula help

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 695
Default formula help

=SUM(A1:INDIRECT("A"&C1))


"yshridhar" skrev:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default formula help

Thanks alot. The reply is excellently fast.
With regards
Sridhar

"excelent" wrote:

=SUM(A1:INDIRECT("A"&C1))


"yshridhar" skrev:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default formula help

=SUM(INDIRECT("a1:a"&c1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"yshridhar" wrote in message
...
Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default formula help

=SUM(A1:OFFSET(A1,C1-1,))
or
=SUM(A1:INDEX(A1:A9,6))


"yshridhar" wrote:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default formula help

Your formula fail if data start other than A1
C1: holds 6

eg. =SUM(A5:INDIRECT("A"&C1))


"excelent" wrote:

=SUM(A1:INDIRECT("A"&C1))


"yshridhar" skrev:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default formula help

Your formula fail if data start other than A1
C1: holds 6

eg. =SUM(A5:INDIRECT("A"&C1))


"Don Guillett" wrote:

=SUM(INDIRECT("a1:a"&c1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"yshridhar" wrote in message
...
Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default formula help

=Sum(A1:Index(A:A,C1))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Teethless mama" wrote in message
...
=SUM(A1:OFFSET(A1,C1-1,))
or
=SUM(A1:INDEX(A1:A9,6))


"yshridhar" wrote:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 229
Default formula help

Thanks RD for your simple formula. I think INDEX is more advantegious than
OFFSET or INDIRECT (being volatile).
With regards
Sridhar

"RagDyeR" wrote:

=Sum(A1:Index(A:A,C1))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Teethless mama" wrote in message
...
=SUM(A1:OFFSET(A1,C1-1,))
or
=SUM(A1:INDEX(A1:A9,6))


"yshridhar" wrote:

Helloo everybody
I want SUM(A1:the value entered i C1). Say if C1=6, SUM(A1:A6). I tried
SUM(A1:address(c1,1)), resulted in error.
Any suggestions pls.
Thank you all
Sridhar




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



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