+ Reply to Thread
Results 1 to 7 of 7

Extract values and the use index to transpose values across columns to rows

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Extract values and the use index to transpose values across columns to rows

    Solution I: Looking for formula to first extract values if conditions are met (see Outcome Sheet for desired solution). For example, if West is selected in B2, values associated with West in Product Sheet are extracted into A6:N10.

    Solution II: Use extracted values in A6:N10 to then transpose values across columns to rows. Example: if West is selected in B2 (Outcome Sheet), formula should look into D2:G3 (Outcome Sheet), extract Fruit List for West into B13:D13 and values associated with these fruit list into B14:D25.

    Sample file attached.

    Thanks
    Attached Files Attached Files
    Last edited by bjnockle; 03-19-2017 at 08:20 PM.

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

    Re: Extract values and the use index to transpose values across columns to rows

    In A6:N10 "Peach" is included. It is blank for 3 columns.

    "Peach" is not listed in the criteria (?) list E3:G3.

    In the transposed list "Peach" is not included in the header. "Plum" is included and is blank for 3 rows.

    I am not entirely clear what / what not to include.
    Dave

  3. #3
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Extract values and the use index to transpose values across columns to rows

    Hi,
    I defined some names
    2017-03-20 at 01-41-46.jpg

    for C6:N10 is array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and for B14:F25 is a regular formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    see attached
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Extract values and the use index to transpose values across columns to rows

    FlameRetired:"Peach" is not listed in the criteria (?) list E3:G3 because it is not part of the requirements for Table A13:F25. Only considering Papaya, Plum and Pineapple for the criteria and not the whole list of fruits associated with Fruits for region West (Papaya, Peach, Plum, Pineapple, Pear).

    "Plum" is included because it is a required criteria for the transpose and peach is not. Only 3 criteria (Papaya, Plum, Pineapple) are required for the transpose and not all criteria.

    Thanks.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Extract values and the use index to transpose values across columns to rows

    "Plum" is included because it is a required criteria for the transpose and peach is not. Only 3 criteria (Papaya, Plum, Pineapple) are required for the transpose and not all criteria.
    It still has 3 blank rows in the transposed table. Is this a typo?

  6. #6
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Extract values and the use index to transpose values across columns to rows

    FlameRetired: Yes, it was a typo. Sample file updated. Thanks

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

    Re: Extract values and the use index to transpose values across columns to rows

    To extract the source data by Region array enter this formula in A6 copy down and across until you get blanks. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To get the headers for the transposed table enter this non array formula in B13 and copy across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To transpose the dates this non array formula in A14 and copied down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To transpose the product amounts this non array formula in B14 copied down and across
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Index, Small, Ifs, Row and Rows to extract values
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2017, 07:55 PM
  2. Transpose values in column to rows, and split cell values to extend column
    By SAMMM in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-03-2015, 12:52 AM
  3. [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
  4. Extract data in rows and transpose to columns
    By Safirz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2014, 12:16 PM
  5. Replies: 3
    Last Post: 11-18-2012, 09:22 PM
  6. [SOLVED] Transpose rows to columns: variable amount of colums and corresponding values
    By Browser in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2012, 10:40 AM
  7. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM

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