+ Reply to Thread
Results 1 to 4 of 4

Using the value in a cell to reference the range of cells to use in a formula

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    hawaii
    MS-Off Ver
    Ecxel in Windows XP
    Posts
    9

    Using the value in a cell to reference the range of cells to use in a formula

    Hi All,
    This seems a bit hard to explain, but Ill do my best.
    I want to write a formula that sums an array of cells. I want the array of cells to be based on the number I input in another cell. For example, I will have A1:A365 with values. I want A366 to sum the values starting at A1, and ending at A(the number that I enter in cell B2).
    The attached example explains. I want the denominator in cell A366 to be the value in cell b1
    Any ideas?
    Thanks
    Attached Files Attached Files
    Last edited by dannybten23; 02-05-2014 at 11:30 PM. Reason: Forgot Attachment

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Using the value in a cell to reference the range of cells to use in a formula

    So try:
    =SUM($A$1:INDEX($A$1:$A$365,$B$1))
    does it work?
    Quang PT

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    hawaii
    MS-Off Ver
    Ecxel in Windows XP
    Posts
    9

    Re: Using the value in a cell to reference the range of cells to use in a formula

    Yes, that is what I needed. Thank you!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Using the value in a cell to reference the range of cells to use in a formula

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dividing a range of cells by a reference cell
    By hooman_teh in forum Excel General
    Replies: 4
    Last Post: 08-04-2010, 09:48 AM
  2. Finding a particular cell reference among a range of cells
    By deathbybowtie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2009, 04:42 AM
  3. Fastest way to reference a cell - Range() or Cells() ?
    By StephanieD in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-29-2008, 01:19 AM
  4. Replies: 1
    Last Post: 11-19-2008, 08:35 PM
  5. How do I reference the same cell as I move through range of cells.
    By MikeShep in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2005, 09:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1