+ Reply to Thread
Results 1 to 6 of 6

Formula to add values from different columns that don't align

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula to add values from different columns that don't align

    Hi there,

    I am trying to figure out how to add values from different columns on the same worksheet, when the rows don't align.

    I want to add the quarterly revenues for each company to get an annual total, but some companies have closed or opened so the rows are misaligned throughout each quarter.

    Is there a lookup formula that I could use so that I would be able to add the revenue for each company's quarter without having to manual select the cells in a SUM function?

    I hope someone can help me out!!

    Thanks so much!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to add values from different columns that don't align

    Can you post a SMALL sample file so we can see how your data is structured? Let us know what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula to add values from different columns that don't align

    Hi elizo,

    welcome to the forum.
    Yes, you can use some lookup formula here... and would be better if you could upload a sample workbook along with your expected output. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    05-16-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula to add values from different columns that don't align

    Here is a sample of the excel worksheet.

    I am hoping to generate a total revenue sum by looking up the matching company names in Q1, Q2, and Q3.
    The company names are represented by letter values and are misaligned. Hope this helps!

    And thanks so much for your replies!
    Attached Files Attached Files

  5. #5
    DaveDeV
    Guest

    Re: Formula to add values from different columns that don't align

    Here's one approach...

    Your three Q1/2/3 tables re-arranged in a contiguous vertical stack, an extra column added to show the Q1/2/3 value per row and then converted to an Excel Data Table. This Data Table then used to generate a pivot table to group by company.

    Attachment:
    Sample of Excel Merge PLUS PIVOT.xlsx

    To arrange pivot by Qtr then Company, just switch row-heading fields around as follows:
    Attachment2:
    Sample of Excel Merge PLUS PIVOT by Qtr.xlsx


    Best Regards,

    Dave
    Last edited by DaveDeV; 05-16-2013 at 11:58 AM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to add values from different columns that don't align

    Try this...

    For company E:

    =SUMIF(A5:K17,"E",E5:O17)

    Note how the range references are offset.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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