+ Reply to Thread
Results 1 to 7 of 7

How to get the value from another cell that is part of the range

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    How to get the value from another cell that is part of the range

    Hello:

    Need some help from the experts.

    I'm trying to write a formula which looks like
    =SUM(<beginning row>, <ending row>), there are 30 formulas look like this. Just too many to type in all 30 and easily make mistake.


    if
    <beginning row> is 17
    <ending row> is 28
    Formula above will have the sum between 17 and 28.
    Should look something like when expended (beginning rows and ending rows are using formula)

    SUM(E17:E28)
    SUM(E29:E40)
    SUM(E41:E52)

    Effectively, I have the sum of
    1st 12 rows
    2nd 12 rows
    3rd 12 rows

    Please advise

    thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: How to get the value from another cell that is part of the range

    What formula are you using to generate the start row and end row?

    It would help if you attached a sample Excel workbook - the yellow banner at the top of the screen explains how to do this.

    Pete

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to get the value from another cell that is part of the range

    Hi:

    Attached is the sample Excel, column B and C are using simple formulas.
    Column A are the formula I need help with, there are 360 rows of data I need the sum
    the sum of 1st 12 rows
    the sum of 2nd 12 rows
    the sum of 3rd 12 rows
    and so on

    Sorry, the sample is missing data, column E should have 360 rows of data

    thanks
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: How to get the value from another cell that is part of the range

    You can use this formula in A1:

    =SUM(INDEX(E:E,B1):INDEX(E:E,C1))

    then copy down. If the ranges are always 12 cells, then you don't really need column C - use this instead in A1:

    =SUM(INDEX(E:E,B1):INDEX(E:E,B1+11))

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-17-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to get the value from another cell that is part of the range

    Hi Pete:

    That works perfectly,

    thanks

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to get the value from another cell that is part of the range

    Hi.

    Is your forum profile showing the Excel PRODUCT that you need this request to work with?

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: How to get the value from another cell that is part of the range

    Quote Originally Posted by mchlkwn View Post
    Hi Pete:

    That works perfectly,

    thanks
    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Return part of cell value when cell value has the highest last digit in range
    By limegreenman900 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2017, 05:45 AM
  2. [SOLVED] Use a cell value as part of a range in a Vlookup
    By mikemeadeuk in forum Excel General
    Replies: 3
    Last Post: 03-16-2015, 10:52 AM
  3. Replies: 8
    Last Post: 06-26-2014, 12:16 PM
  4. Match part of cell to any value in range
    By mek22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 06:09 PM
  5. Find out what named range a cell is part of
    By pizzett in forum Excel General
    Replies: 1
    Last Post: 07-25-2007, 10:44 AM
  6. How do i check if the current cell is part of a range ?
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2006, 02:20 PM
  7. Is the active cell part of a named range
    By Virginia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2005, 02:07 PM

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