+ Reply to Thread
Results 1 to 5 of 5

combining the index and columns/rows function

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    combining the index and columns/rows function

    Hi - I have the following function which increments across columns as if going down through rows of one column:

    =SUM(POWER(INDEX($AC:$AC,COLUMNS($AC$1:AC1)),$Z$1)) - call this row 1, column 1

    I am happy with this and now have one row with the correct data. However now I wish to do increment this working method to next row etc so that I get:

    =SUM(POWER(INDEX($AC:$AC,COLUMNS($AC$1:AC1)),$Z$2)) - call this row 2, column 1

    just by dragging cell 1 down.

    Does anyone have any idea of how this is done?

    When I do this at the moment I get the same result from the first cell. I don't want to take the dollar signs away from Z as I want to stick to Z1 for row one as I increment through columns A to Z for example.

    Thanks.

  2. #2
    Registered User
    Join Date
    03-23-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: combining the index and columns/rows function

    I guess to sum up I want $Z$ when dragging across, but want Z when dragging down. An impossible situation I know, but racking my brains to find a work around. I have a lot of data so can't afford to be doing it by hand.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: combining the index and columns/rows function

    Instead of $Z$1 it should be $Z1.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    03-23-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: combining the index and columns/rows function

    Thanks! I'm clearly showing how much of a novice I am. Works like a charm.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: combining the index and columns/rows function

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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