+ Reply to Thread
Results 1 to 6 of 6

Simplifying a dynamic range formula

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Simplifying a dynamic range formula

    Hello. Someone helped me with the great formula to get a range to be dynamic. The problem is that the range only deals with one cell at a time. This would be ok if my initial range had only a few cells but it has a lot more (about 50 non-adjacent cells) Is there any way to get around repeating the snippet of formula for each cell? This is what the formula is =Sheet1!$B$2:INDEX(Sheet1!$B$2:$G$2,,COUNTA(Sheet1!$B$2:$G$2)). So that just refers to row 2, but I have a lot more rows and the formula would be ginormous like Kardashian's behind or Kate Upton's mother melons.

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Simplifying a dynamic range formula

    What are you trying to achive by:
    Is there any way to get around repeating the snippet of formula for each cell
    Can you post a sample?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Simplifying a dynamic range formula

    That formula in my first example would just make cell B2 dynamic. That is just one cell. If my named range is larger than one cell, I will have to copy that formula for each cell and combine it into one enormous formula. I would rather not do this. For example =Sheet1!$B$2:INDEX(Sheet1!$B$2:$G$2,,COUNTA(Sheet1!$B$2:$G$2)) would be just for one cell. If I wanted a second cell it would be =Sheet1!$B$2:INDEX(Sheet1!$B$2:$G$2,,COUNTA(Sheet1!$B$2:$G$2)),Sheet1!$B$3:INDEX(Sheet1!$B$3:$G$3,,COUNTA(Sheet1!$B$3:$G$3)) If I have a 100 cells, that would be the world's largest formula. Is there a way around this?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Simplifying a dynamic range formula

    Have you tried

    =Sheet1!$B$2:INDEX(Sheet1!$B$2:$G$2,2,COUNTA(Sheet1!$B$2:$G$2))

    where the highlighted portion indicates number of rows i.e. (Row 2 and Row 3)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Simplifying a dynamic range formula

    The rows are non-contiguous. I don't see how that formula would help.

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Simplifying a dynamic range formula

    Quote Originally Posted by amartino44 View Post
    That formula in my first example would just make cell B2 dynamic.
    That formula will return a range depends on number of cell from COUNTA
    So if COUNTA is 2 the range from
    =Sheet1!$B$2:INDEX(Sheet1!$B$2:$G$2,,COUNTA(Sheet1!$B$2:$G$2)
    will be $B$2:$C$2.
    on its own does not do much but can be used in futher calculation.

+ 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. Simplifying a big formula
    By aureliano in forum Excel General
    Replies: 1
    Last Post: 06-22-2012, 08:14 PM
  2. Simplifying a formula
    By Darren88 in forum Excel General
    Replies: 9
    Last Post: 02-26-2012, 04:27 AM
  3. Simplifying a formula
    By neilpateluk in forum Excel General
    Replies: 3
    Last Post: 01-14-2009, 09:25 AM
  4. [SOLVED] Simplifying a formula
    By MartinW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2006, 06:55 AM
  5. [SOLVED] Dynamic Range with unused formula messing up x axis on dynamic graph
    By cabybake@yahoo.com in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-02-2006, 04:10 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