+ Reply to Thread
Results 1 to 6 of 6

Zig Zag Extraction of Data

  1. #1
    Registered User
    Join Date
    12-12-2014
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    43

    Zig Zag Extraction of Data

    A B C D E
    1 Apple Banana Cherry =A1
    2 Durant Elderberry Fig =B1
    3 Goji Honeydew Jambul =C1
    4 =A2
    5 =B2
    6 =C2
    7 =A3
    8 =B3
    9 =C3


    A B C D E
    1 Apple Banana Cherry Apple
    2 Durant Elderberry Fig Banana
    3 Goji Honeydew Jambul Cherry
    4 Durant
    5 Elderberry
    6 Fig
    7 Goji
    8 Honeydew
    9 Jambi
    The output from the top table would show as the bottom table. I am manually entering the [=] functions in column E but it gets labor intensive when my fruit list goes on indefinitely in it's zig zag pattern (right for three columns, then jump to next row, right for three columns, then jump to next row, rinse, wash, repeat).

    How can I write a better formula in column E? I want a formula I can paste down for hundreds of rows that will pull data in the zig zag fashion described above.

    PS - Bonus question. I read Chandoo and Peltier all the time - excellent blogs. Are there other similar awesome Excel blogs like theirs that are fun and entertaining? I pretty much read all their posts and need some new material to expand my horizons. Darkhorse analytics is interesting but there are only about five posts on that site.
    Last edited by TestMailinator; 03-18-2015 at 04:13 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Zig Zag Extraction of Data

    Here, try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Zig Zag Extraction of Data

    If you need more data just change references:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Index table (red) and number of columns (blue)

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

    Re: Zig Zag Extraction of Data

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    Apple Banana Cherry Apple E1: =INDEX($A$1:$C$3, INT((ROWS(E$1:E1) - 1) / COLUMNS($A$1:$C$3)) + 1, MOD(ROWS(E$1:E1)-1, COLUMNS($A$1:$C$3)) + 1)
    2
    Durant Elderberry Fig Banana
    3
    Goji Honeydew Jambul Cherry
    4
    Durant
    5
    Elderberry
    6
    Fig
    7
    Goji
    8
    Honeydew
    9
    Jambul
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    12-12-2014
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    43

    Re: Zig Zag Extraction of Data

    ZBOR, when I try your formula I get an error telling me "You've entered too many arguments for this function". Did I do something wrong or does the forumla need to be tidied up?

    SHG, thank you that formula worked perfectly.

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

    Re: Zig Zag Extraction of Data

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    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!)

+ 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. Data Extraction
    By jmisti2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2014, 12:46 PM
  2. Data Extraction help
    By jquick2 in forum Excel General
    Replies: 9
    Last Post: 12-03-2012, 06:23 PM
  3. Data extraction
    By ssim in forum Excel General
    Replies: 1
    Last Post: 08-06-2011, 02:14 PM
  4. Data extraction
    By Night Worker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2010, 08:02 AM
  5. Data extraction... (Pls Help)
    By Ahmed Sidat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2005, 05:52 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