+ Reply to Thread
Results 1 to 10 of 10

Horizontal Sum Calculation posting results Vertically

  1. #1
    Registered User
    Join Date
    05-02-2017
    Location
    Australia
    MS-Off Ver
    Mac 2016
    Posts
    27

    Horizontal Sum Calculation posting results Vertically

    Dear All,

    I am having problems of creating a formula that essentially would allow me to calculate a sum by column, while on a different sheet having a vertical output.
    At the moment I do the following:

    In Q6 =SUM('Raw Data'!AH3:AH225)/SUM('Raw Data'!$AH$3:$AQ$225)
    In Q7 =SUM('Raw Data'!AI3:A225)/SUM('Raw Data'!$AH$3:$AQ$225)
    And so on....

    Essentially "SUM('Raw Data'!AH3:AH225)" are all the values of AH and "SUM('Raw Data'!$AH$3:$AQ$225)" is the total of the columns AH - AQ.
    I changed AH -> AI by hand, and I am also aware that I just could do a sum calculation at the end of row 225, but I would like to be able to do it via formula as well.

    I know there has to be a simple solution, but my experiments via "=INDEX" haven't been successful so far.

    Thank you,

    Christoph

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,883

    Re: Horizontal Sum Calculation posting results Vertically

    Hi Christoph,

    Welcome to the Excel Forum,

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    05-02-2017
    Location
    Australia
    MS-Off Ver
    Mac 2016
    Posts
    27

    Re: Horizontal Sum Calculation posting results Vertically

    Dear shukla,

    I posted an example with the relevant data

    Regards,

    Christoph
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,883

    Re: Horizontal Sum Calculation posting results Vertically

    Try

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


    And drag down and format the cells with "%"

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    24,926

    Re: Horizontal Sum Calculation posting results Vertically

    In Sheet2

    in B3

    =SUM(INDEX(Sheet1!$A$3:$E$42,,ROWS($1:1)))/SUM(Sheet1!$A$3:$E$42)

    Copy down

  6. #6
    Registered User
    Join Date
    05-02-2017
    Location
    Australia
    MS-Off Ver
    Mac 2016
    Posts
    27

    Re: Horizontal Sum Calculation posting results Vertically

    Thx Guys,

    It works. Just one question why do I put " Rows($1:1)" into column_num?

    Regards,

    Christoph

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,883

    Re: Horizontal Sum Calculation posting results Vertically

    Quote Originally Posted by Musiclover119 View Post
    Thx Guys,

    why do I put " Rows($1:1)" into column_num?
    It is just because when formula will go down Rows($1:1) change into Rows($1:2) that means 2 and Index array will understand now second column which column B need to work.

    I had use match the alphabet and let consider in which column that particular alphabet is stand instead of rows

    Hope you understood..

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    24,926

    Re: Horizontal Sum Calculation posting results Vertically

    INDEX has format Range, Row, Column and in the formula below the ROWS() is in the COLUMN parameter

    =SUM(INDEX(Sheet1!$A$3:$E$42,,ROWS($1:1)))/SUM(Sheet1!$A$3:$E$42)

    the ROWS($1:1) acts a a "counter" so in B3 it has a value of 1, in B4 a value of 2 etc so it selects the data in the first column of the INDEX range, then the second and so on.

    So we select from column A, then column B .....

    Hope this helps.

  9. #9
    Registered User
    Join Date
    05-02-2017
    Location
    Australia
    MS-Off Ver
    Mac 2016
    Posts
    27

    Re: Horizontal Sum Calculation posting results Vertically

    Thank you. That helps

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    24,926

    Re: Horizontal Sum Calculation posting results Vertically

    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. transpose horizontal values vertically
    By sugargenius in forum Excel General
    Replies: 4
    Last Post: 04-07-2015, 09:50 AM
  2. Replies: 2
    Last Post: 10-01-2013, 04:35 PM
  3. Align the data vertically from Horizontal layout
    By itsmesunilb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2013, 11:26 PM
  4. Summing vertically, if horizontal value is correct
    By asdasdzxc in forum Excel General
    Replies: 14
    Last Post: 07-03-2012, 10:49 AM
  5. Referencing cells horizontal and vertically
    By DaveHan in forum Excel General
    Replies: 3
    Last Post: 06-13-2008, 08:12 AM
  6. filling vertically from horizontal tables
    By r3k5e71 in forum Excel General
    Replies: 3
    Last Post: 05-15-2007, 11:47 PM
  7. [SOLVED] How do I link horizontal cells vertically?
    By Brett in forum Excel General
    Replies: 3
    Last Post: 01-04-2006, 12:55 AM

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