+ Reply to Thread
Results 1 to 5 of 5

Any shortcuts to apply the INDIRECT function?

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Any shortcuts to apply the INDIRECT function?

    I want to change a number of cells in a sheet from this formula

    =AVERAGE(C5:C7,C25:C27)

    to this one

    =AVERAGE(INDIRECT("C5:C7"),INDIRECT("C25:C27"))

    The only trouble is that once the range is in quotations I can't auto fill any of the formulas to adjacent cells. The sheet is way too big to type the INDIRECT formula into each cell.

    Are there any shortcuts I can use or is thre an alternative to the INDIRECT function that will do the same job?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Any shortcuts to apply the INDIRECT function?

    Explain what you are trying to do that needs"indirect".
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Any shortcuts to apply the INDIRECT function?

    Im copying data into column C which generally needs to be rearranged so that the correct values end up in C5:C7 and C25:C27, I cant see a way to automate this step as the rearranging depends on the data and is different every time.

    When I start to drag the column C data around this changes the range in "=AVERAGE(C5:C7,C25:C27)" so to avoid this I was trying to use the INDIRECT function.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Any shortcuts to apply the INDIRECT function?

    Well, I still don't understand. However, you can use the "$" to anchor the cell reference to a particular row or column. E.g. C$5:C7 would hold C$5 fixed and when dragged down would become C$5:C7m C$5:C9, etc. If you use $C5:C7 and drag across it would change as C$5:D7, etc.

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Any shortcuts to apply the INDIRECT function?

    I have tried using absolute references, however, they lock the reference when moving the cell containing the formula but if I put data into C5:C7 and then move the data around the reference follows the data rather than staying as C5:C7 even when using $$

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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