+ Reply to Thread
Results 1 to 6 of 6

Range Change

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    sydney
    MS-Off Ver
    Excel 2003
    Posts
    2

    Range Change

    Good Morning,

    Need a little help, using the below formula in my spreadsheet

    =IF(COUNT('LC Raw Data'!B2:B13)=0," ",AVERAGE('LC Raw Data'!B2:B13))

    The problem is that i need the range to jump to the next block of data ie

    =IF(COUNT('LC Raw Data'!B14:B25)=0," ",AVERAGE('LC Raw Data'!B14:B25))

    and so on. Without having to manual adjust the range.

    Cheers in advance K.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Range Change

    Are you trying to cause the same formula to change
    or
    are you trying to repeat the formula in a different cell with the different value?



    PS Sydney: NS or NSW?


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Range Change

    You mean when you copy the formula down a row?

    In what row does the formula first appear?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Range Change

    Do the following

    Define a named range:

    BaseRng: =OFFSET('LC Raw Data'!$B$1:$B$12,ROW(Data!$A1)*12-11,0)

    B1:= IF(COUNT(baseRng)=0," ",AVERAGE(baseRng))

    drag down
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Range Change

    or
    if(COUNT(INDIRECT("'lc raw data'!b"&((ROWS($A$1:A1)*12)-10)&":b"&((ROWS($A$1:A1)*12)+1)))=0,"",average(INDIRECT("'lc raw data'!b"&((ROWS($A$1:A1)*12)-10)&":b"&((ROWS($A$1:A1)*12)+1))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    03-16-2010
    Location
    sydney
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Range Change

    Thanks so much all

    Used martindwilsons approach

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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