+ Reply to Thread
Results 1 to 7 of 7

Using cell values to determine formula range

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Using cell values to determine formula range

    Hi

    Please see this imageFormula question.png

    In cell H1 I would like to use the subtotal formula to calculate the average of all values ranging from the Letter/Number that I typed in cell G1, so in this case A17:A1000.

    Is there an easy way of doing this without having to type the A17 manually into the H1 formula?

    Thanks
    Marco

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

    Re: Using cell values to determine formula range

    I can't see what formula you have, as not everyone can view .png files on this forum - attach an Excel workbook instead.

    You would generally use the INDIRCT function for this.

    Hope this helps.

    Pete

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Using cell values to determine formula range

    Have a look for how to use INDIRECT.

    BSB

  4. #4
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Using cell values to determine formula range

    Attached, thanks Pete
    Attached Files Attached Files

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

    Re: Using cell values to determine formula range

    You can use this formula in H1:

    =SUBTOTAL(1,INDIRECT(G1&":A1000"))

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    11-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Using cell values to determine formula range

    Certainly does, I was trying to do it myself but couldn't quite get it to work, thanks!

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

    Re: Using cell values to determine formula range

    Glad to help - thanks for the rep.

    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. Replies: 6
    Last Post: 12-03-2015, 03:57 PM
  2. determine value based on range of sub values
    By shayma in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-14-2014, 12:01 PM
  3. Scalable formula to determine which cell range a value belongs to
    By zbomb2000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2013, 03:49 PM
  4. Replies: 0
    Last Post: 08-01-2013, 03:53 PM
  5. Replies: 2
    Last Post: 04-04-2013, 02:12 PM
  6. value in cell to determine which named range used in formula
    By trashnation in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2007, 04:20 AM
  7. Formula to determine if a cell contains a value in a range
    By zz4gz0 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2007, 04:46 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