+ Reply to Thread
Results 1 to 5 of 5

Creating Range based on Cell Names in other Cells

  1. #1
    Registered User
    Join Date
    11-16-2016
    Location
    Kolkata, India
    MS-Off Ver
    2010
    Posts
    3

    Creating Range based on Cell Names in other Cells

    I have a table (A1:F10), wherein all cells have numbers.
    Now, I want to find the SUM of all the numbers which is a simple =SUM(A1:F10). But the twist is in Cell J1, I will write lets say B3, and in K1, I write D9.
    Based on this input , I want to find the sum of the range (B3:D9). So in cell J1, I have the start of the range and K1, I have the end of the range.

    Therefore the normal formula would be SUM(B3:D9). Thus, this B3 and D9 are contents of J1 and K1 respectively.

    How do I write a formula to get this done : SUM(content of J1 : content of K1).

    I hope this is possible.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Creating Range based on Cell Names in other Cells

    You can use INDIRECT for that..

    =SUM(INDIRECT(J1 & ":" & K1))


    However, I'm curious exactly how B3 and D9 will get into those 2 cells ?
    Are you typing them by hand, or do you have some other formula that is creating those references ?

  3. #3
    Registered User
    Join Date
    11-16-2016
    Location
    Kolkata, India
    MS-Off Ver
    2010
    Posts
    3

    Re: Creating Range based on Cell Names in other Cells

    Typing them manually..

  4. #4
    Registered User
    Join Date
    11-16-2016
    Location
    Kolkata, India
    MS-Off Ver
    2010
    Posts
    3

    Re: Creating Range based on Cell Names in other Cells

    Worked like a charm.. Thanks a lot Jonmo1....

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Creating Range based on Cell Names in other Cells

    You're welcome.

+ 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. Change cell names on a range of cells
    By VBAFan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2016, 04:23 AM
  2. Creating a range for a chart based on cell date values
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2015, 05:01 AM
  3. Creating dynamic userform based on several file names and creating chart overlays
    By Thorn23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2014, 12:09 PM
  4. [SOLVED] automatic replace sheet names based on new cell text (within defined range)
    By Robert1311 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2014, 05:37 AM
  5. Copying names from cells into one cell based on value
    By jonnybegood297 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-28-2013, 05:49 PM
  6. [SOLVED] conditional format cell based on a match to a range of names
    By fablhof in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-01-2012, 12:17 AM
  7. Replies: 4
    Last Post: 03-09-2012, 10:54 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