+ Reply to Thread
Results 1 to 10 of 10

Pull data from horizontal to vertical

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Pull data from horizontal to vertical

    Hello,

    Thanks for looking at my post. I have attached an Excel sheet here. I am working on an analysis on certain accounts. I need a formula to pull the data from the detail sheet to the summary sheet. I have the company codes on row 2 on detail sheet, but my company codes in summary sheet are on column c. I need to sum the account # 120010, 120012, and 120015. Hope my explanation makes sense.

    Thanks.
    Attached Files Attached Files
    Last edited by jackson_hollon; 03-03-2020 at 05:19 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Pull data from horizontal to vertical

    No it doesn't LOL but I will have a look.

    What are the horizontal labels on the Details Sheet.

    why are you reporting on three account numbers 120010, 120012, and 120015.

    120012 does not exist. So why did you mention it?
    Last edited by mehmetcik; 03-03-2020 at 04:49 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Pull data from horizontal to vertical

    How about
    =SUM(SUMIF(Detail!$C$4:$C$13,{120010,120013,120015},INDEX(Detail!$F$4:$M$13,0,MATCH(C3,Detail!$F$2:$M$2,0))))

  4. #4
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Pull data from horizontal to vertical

    Fluff13,

    I cannot use Array formula as my boss hates it.....

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Pull data from horizontal to vertical

    That formula does not need array entry, just the normal Enter

  6. #6
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Pull data from horizontal to vertical

    Fluff13,

    I just tried your formula. It work perfectly. Many thanks.

  7. #7
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Pull data from horizontal to vertical

    mehmetcik,

    The horizontal labels are the company codes. The 120012 does not exist in Jan, but will be exist in Feb.....

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Pull data from horizontal to vertical

    You're welcome & thanks for the feedback

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Pull data from horizontal to vertical

    Formula for F3

    =INDEX(Detail!$F$4:$M$13,1,ROW()-2)*$C$3 +INDEX(Detail!$F$4:$M$13,2,ROW()-2)*$C$4+INDEX(Detail!$F$4:$M$13,3,ROW()-2)*$C$5+INDEX(Detail!$F$4:$M$13,4,ROW()-2)*$C$6+INDEX(Detail!$F$4:$M$13,5,ROW()-2)*$C$7+INDEX(Detail!$F$4:$M$13,6,ROW()-2)*$C$8+INDEX(Detail!$F$4:$M$13,7,ROW()-2)*$C$9+INDEX(Detail!$F$4:$M$13,8,ROW()-2)*$C$10+INDEX(Detail!$F$4:$M$13,9,ROW()-2)*$C$11+INDEX(Detail!$F$4:$M$13,10,ROW()-2)*$C$12
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Pull data from horizontal to vertical

    mehmetcik,

    Thanks for the help.

    Jackson

+ 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. Replies: 16
    Last Post: 06-01-2017, 06:01 PM
  2. Horizontal Data to Vertical
    By mmagnin in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-18-2014, 12:45 AM
  3. [SOLVED] Horizontal data in vertical
    By ashfaquebwd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-10-2013, 03:50 AM
  4. need help on convet the data in vertical to horizontal
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2013, 08:55 PM
  5. Vertical to Horizontal data help!
    By hbrown78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2012, 09:57 PM
  6. [SOLVED] Data horizontal to vertical
    By sureshpunna in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-27-2012, 03:36 AM
  7. [SOLVED] Vertical to Horizontal data
    By trosasco in forum Excel General
    Replies: 5
    Last Post: 06-15-2012, 08:48 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