+ Reply to Thread
Results 1 to 3 of 3

How do I calculate a sum in horizontal cells and display the results vertically in a table

  1. #1
    Forum Contributor
    Join Date
    07-06-2009
    Location
    London, England
    MS-Off Ver
    Microsoft 365, Excel, Version 2402
    Posts
    184

    How do I calculate a sum in horizontal cells and display the results vertically in a table

    I am trying to calculate weekly sales by Branch by week or by date to track who is the top selling Branch every week. Although this data is captured horizontally I would like it summarised and displayed vertically in a table as it makes for easier reading and pasting into reports.

    I have attached a very simplistic mock-up of how the data is captured and how I plan to do this. The actual example extends to 52 weeks with approx 30 Branches, but that could grow.

    I'm thinking of using a spinner button change the week / date, but how I do calculate a dynamic total in this way for each Branch? Also, I am trying to show the 'rank' of the Branch and how it performs from week to week - is it possible to display the movement of rank position using conditional formatting with arrows as used in the attached example.

    I am using Excel 2003 for this workbook

    Thanks for your help
    Attached Files Attached Files
    Last edited by reddwarf; 09-30-2013 at 03:03 PM. Reason: typo

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: How do I calculate a sum in horizontal cells and display the results vertically in a t

    D2 drag down
    =SUM(OFFSET($C$2,1,MATCH($B14,$C$2:$AR$2,0)+1,5,1))
    You can do that for each of your tab and the summrized using this example
    http://www.excelforum.com/excel-gene...-indirect.html
    make sure that you branches matches(now you have got "Branch1" in first row and "Branch 1" for summary
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    07-06-2009
    Location
    London, England
    MS-Off Ver
    Microsoft 365, Excel, Version 2402
    Posts
    184

    Re: How do I calculate a sum in horizontal cells and display the results vertically in a t

    Thank you. Excellent solution and I was able to follow this suggested example to build a summary table. Although my approach works the best way forward is to do this through pivot tables. I might look into converting a grid to a pivot table.

+ 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. [SOLVED] Can I instantly rotate my horizontal existing table (with formulas) vertically??
    By Shrad013 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-20-2013, 04:52 PM
  2. Replies: 0
    Last Post: 12-08-2010, 01:02 PM
  3. Referencing cells horizontal and vertically
    By DaveHan in forum Excel General
    Replies: 3
    Last Post: 06-13-2008, 08:12 AM
  4. UDF to Display Results Vertically Instead of One Cell Horizontally
    By snake10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2008, 12:18 PM
  5. How do I link horizontal cells vertically?
    By Brett in forum Excel General
    Replies: 3
    Last Post: 01-04-2006, 12:55 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