Closed Thread
Results 1 to 19 of 19

Pull data horizontally and place vertically 3 by 3

  1. #1
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Pull data horizontally and place vertically 3 by 3

    Hi all. I tried to get it done by myself without success. I have a table with duedates payment status and ammount diplayed horizontally. Each block of 3 cells are DUEDATE STATUS AMMOUNT. There are 6 blocks of 3 cells. I need to list vertically those blocks of 3 cells skipping blanks.

    I have attached a sample detailed worksheet.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Just attaching the xlsx version of the sample sheet! There are no macros...
    And images

    This is where infos reside.
    Source.PNG

    This is the final result (skipping blank cells). Please see attached xlsx file below.
    final result.PNG
    Attached Files Attached Files
    Last edited by 80Wil; 04-06-2017 at 02:26 PM. Reason: xlsx

  3. #3
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Anyone... please...

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Can I get rid of the columns U to AC in the Get_From_Here sheet? These seem to be temporary workings on your part to produce the results that you require. I will need to use two columns at the end of your table which will be simple counts of the number of transactions per record.

    Pete

  5. #5
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Sure! Thank you!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Ok, but it's getting a bit late here, so I'll carry on with this tomorrow and get back to you.

    Pete

  7. #7
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Ok! Thank you again!

  8. #8
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Just for curiosity... See attachment. This is how the workbook is working right now. The exactly opposite.
    I'm pulling the infos from the EXTRACT_HERE sheet. The GET_FROM_HERE sheet is all formulas. 3 formulas. See attachment.

    Don't know if it can help...

    Edit: just for a complete information the formula that goes in the helper column is =COUNTIF(Get[ORDER NUM];A2)
    Attached Files Attached Files
    Last edited by 80Wil; 04-07-2017 at 11:26 AM.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    You need different formulae going the other way.

    The sun has just come out, so I'll go and do some gardening and pick this up again in the evening. I had nearly finished it when I packed in last night/this morning, so it shouldn't take too long later on.

    Pete

  10. #10
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Yep... Don't worry

  11. #11
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Still trying... no success... help

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Challenge Pull data horizontally and place vertically 3 by 3. Sheet attached

    Okay, I've finished this off and attached the workbook. As advised, I deleted the columns at the end of the Get_From_Here sheet, and used columns U and V for simple counts - U2 contains this formula:

    =COUNTA(SEND[[#This Row],[duedate1]:[ammount6]])/3

    which just counts the number of transactions that you have for each order, and I have this formula in V2:

    =U2+V1

    which just gives a cumulative count of the transactions. Note that V1 contains zero.

    In the Extract_here sheet I used this formula in cell A2:

    =IF(ROWS($1:1)>MAX(GET_FROM_HERE!$V:$V),"",INDEX(GET_FROM_HERE!$A:$A,MATCH(ROWS($1:1)-1,GET_FROM_HERE!$V:$V)+1))

    which brings across the order number from column A of the Get_From_Here sheet for as many times as there are transactions. Then I used this formula in cell B2:

    =IF(Table1[[#This Row],[ORDER NUM]]="","",INDEX(SEND[[duedate1]:[ammount6]],MATCH(ROWS($1:1)-1,GET_FROM_HERE!$V:$V),(ROWS($1:1)-1)*3+COLUMNS($B:B)-INDEX(GET_FROM_HERE!$V:$V,MATCH(ROWS($1:1)-1,GET_FROM_HERE!$V:$V))*3))

    which can be copied across into C2 and D2. These will bring across the 3 fields for each transaction when copied down.

    If you are using a non-English version of Excel, then the formulae should be translated for you automatically when you open the file.

    Hope this helps.

    Pete
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Pull data horizontally and place vertically 3 by 3

    Thank you! Wonderful!

    But if my tables dont star at row 1?
    I can't make it work...

    I didn't think this could be an issue, that I wouldnt be able to adjust it.

    I have attached it at the rows they really are...
    Attached Files Attached Files
    Last edited by 80Wil; 04-08-2017 at 08:25 AM.

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Pull data horizontally and place vertically 3 by 3

    As you have three blank rows at the top of the source sheet, you need to adjust the formula I gave you to this in B8 of the Extract sheet:

    =IF(Table1[[#This Row],[ORDER NUM]]="","",INDEX(SEND[[duedate1]:[ammount6]],MATCH(ROWS($7:7)-1,GET_FROM_HERE!$V:$V)-3,(ROWS($7:7)-1)*3+COLUMNS($B:B)-INDEX(GET_FROM_HERE!$V:$V,MATCH(ROWS($7:7)-1,GET_FROM_HERE!$V:$V))*3))

    Do the same for the formulae in C8 and D8, then copy down.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  15. #15
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Pull data horizontally and place vertically 3 by 3

    As I entry new records the helper columns don't expand right?

  16. #16
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Pull data horizontally and place vertically 3 by 3

    That is correct, but you can copy them down much further than you need if you want to. You might want to change the formula in V2 to this:

    =IF(U2=0,"",U2+V1)

    Hope this helps.

    Pete

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Pull data horizontally and place vertically 3 by 3

    80Wil, you have asked if you can post this in CS? If you dont have the answer you want, then yes, by all means - just let me or a mod know so we can close this thread so you can open the new 1 in CS

    Looks to me like Pete is helping you though?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  18. #18
    Forum Contributor
    Join Date
    11-02-2016
    Location
    brasil
    MS-Off Ver
    office 365 2016 windows
    Posts
    195

    Re: Pull data horizontally and place vertically 3 by 3

    Yes, he sure does... but I'd like to post or explain myself better there... CS... I dont feel fine asking asking again again for free! ehehe And I'm stucked on this and I need to move on. You can close.

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Pull data horizontally and place vertically 3 by 3

    You can ask as much as you want, but OK, I will close this so you can post in CS. Pete will also be able to access the thread there, so perhaps he can continue there with you
    thread closed

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Tile Blocks of Data Horizontally Instead of Vertically
    By Meagangineer in forum Excel General
    Replies: 2
    Last Post: 11-07-2016, 03:31 PM
  2. Vertically data into horizontally of repeated numbers
    By gondal in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-04-2016, 01:08 PM
  3. Display data horizontally not vertically through VBA
    By webanalytics1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-27-2015, 10:44 AM
  4. [SOLVED] transpose and consolidate data horizontally to vertically
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2014, 03:50 PM
  5. Need to match a variable vertically and pull a value horizontally
    By bone7890 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2013, 03:20 PM
  6. Excel 2007 : Merging data horizontally vs. vertically
    By enhydra in forum Excel General
    Replies: 4
    Last Post: 12-12-2010, 06:16 PM
  7. A tough one! line up vertically/horizontally through data
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2005, 04:32 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