+ Reply to Thread
Results 1 to 7 of 7

question about what index formula is doing to transpose

Hybrid View

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    question about what index formula is doing to transpose

    I am using this formula but I don't understand what it is doing. =INDEX($A$5:$H$5,ROWS(B$8:B8))

    example attached. it seems to be counting rows as I fill down to give the argument for row_number. I am confused b/c my array is just one row. So if that argument is 1, then 2, then 3 and so on for the row number, how is it pulling the values? seems totally backwards b/c it is really pulling column 1 then, 2, then 3.

    followup question is are there any alternative ways to do this? it will be to constantly be transposing date from rows to columns for a report. the source data will be changing a lot and will be across multiple sheets.

    thx for the help.

    B
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,747

    Re: question about what index formula is doing to transpose

    When there is a single dimensional range row or column the 1, 2, 3 acts to return the 1st, 2nd, and 3rd element regardless of vector.

    This works in the upload starting in row 7. (Note the empty space in the row argument.)
    Formula: copy to clipboard
    =INDEX($A$5:$H$5,,ROWS(B$7:B7))
    So it also works as the column argument. It only becomes critical when you are working with 2 dimensional ranges.

    Does this help?
    Dave

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: question about what index formula is doing to transpose

    haha well now it makes total sense. =) thx for the explanation flame

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: question about what index formula is doing to transpose

    This is what the ROWS function is doing:

    A7 =ROWS(B$7:B7) = the number of rows in the range B7:B7 = 1
    A8 =ROWS(B$7:B8) = the number of rows in the range B7:B8 = 2
    A9 =ROWS(B$7:B9) = the number of rows in the range B7:B9 = 3
    etc.

  5. #5
    Registered User
    Join Date
    04-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: question about what index formula is doing to transpose

    i had to break it out similarly to figure out what just the ROWS function was doing. thx for the clarification falcon.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,747

    Re: question about what index formula is doing to transpose

    followup question is are there any alternative ways to do this? it will be to constantly be transposing date from rows to columns for a report. the source data will be changing a lot and will be across multiple sheets.
    Other than copy / paste transpose I know of no simpler formula method.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,747

    Re: question about what index formula is doing to transpose

    duvius that's good to hear! Thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Multiple Question Index Formula
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2016, 02:21 AM
  2. [SOLVED] dynamic index match formula to transpose values across rows and then down columns
    By Bananas212 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-30-2014, 03:07 PM
  3. Question on Embedded Match Index Formula
    By aznfantastic in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2012, 01:25 AM
  4. Question about formula INDEX in combination with MATCH
    By bergjes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2012, 07:38 AM
  5. Index / Match formula question
    By ugabulldawg98 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-10-2012, 11:45 PM
  6. Index Indirect and Match Formula Question
    By petevang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-25-2010, 03:59 PM
  7. [SOLVED] Index,Matchup Formula Question
    By JDT in forum Excel General
    Replies: 7
    Last Post: 04-16-2005, 12:06 PM

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