+ Reply to Thread
Results 1 to 9 of 9

Calculate each column with totals

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Calculate each column with totals

    I would like to calculate each pricing column with totals by using excel formula.

    I currently have a sample excel data for your review:

    Pricing: .12 | Pricing: .02 | Pricing: $2.00 | Pricing: .75 | Pricing: .08
    Col1 | Col2 | Col3 | Col4 | Col5 Total
    --------------|---------------| -----------------|----------------|----------------|-------------
    12, 350 | 750 | 45 | 1,200 | 128 | 1,687.24
    --------------|---------------|-----------------|-----------------|----------------|-------------
    725 | 24 | 122 | 944 | 15 | 1,040.68
    --------------|---------------|-----------------|-----------------|----------------|-------------

    Totals: $2,727,92


    What is the excel formula for giving results above table?

    =SUM(Col1*.12, Col2*.02, Col3*2.00, Col4*.75, Col5*.08, Col1:Col5, Col6)
    Not sure if this is correct formula for calculate my table.

    Your help is really appreciated.

    Thanks

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Calculate each column with totals

    This would be way easier if you attached a sample worksheet of what you want, but I'll take a stab at it.
    You have to call out the cell that you want to sum so say that 1687.24 is in column 5 (which would actually be E) in row 1, and 1040.68 is in column E row 2, your formula where you wanted the cell to show the total would be....
    Please Login or Register  to view this content.
    Which would show 2727.92 in the cell you put the formula in.
    Last edited by gmr4evr1; 05-07-2015 at 03:54 PM.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    05-07-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Calculate each column with totals

    Thanks for your quick response.

    I've attached two sample worksheets for your review (one in picture and other it's book file.

    sample.png

    I would like a formula that calculates each row with totals

    A2 12,3500*.12 = $1,482, B2 750*.02 = $15, C2 145*2.00 = $290, D2 1,200*.75 = $900, E2 128*.08= $10.24 which gives a total of $2,607.40 for the first row...

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Calculate each column with totals

    Going by your sample, place the following formula in the Total cell of F2, then drag down the rest of that column. This will give the total of the row.
    Please Login or Register  to view this content.
    In Cell F5 place this formula, it will give you the totals of the 2 rows
    Please Login or Register  to view this content.

  5. #5
    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,929

    Re: Calculate each column with totals

    Try this, copied down...
    =SUMPRODUCT(RIGHT(A$1:E$1,4)*A2:E2)
    (your total in F3 is incorrect)
    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

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Calculate each column with totals

    Thanks Ford.
    I figured there was a simpler way to write the formula, other than the one I posted, but had no clue how to go about it.

  7. #7
    Registered User
    Join Date
    05-07-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Calculate each column with totals

    Yes, the total in F3 was incorrect.
    Your formula works good, but I have many rows in worksheet and I would like to calculate all of them at once.

  8. #8
    Registered User
    Join Date
    05-07-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Calculate each column with totals

    Your formula works good, but I have many rows in worksheet and I would like to calculate all of them at once.

  9. #9
    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,929

    Re: Calculate each column with totals

    Extend the 2nd range...
    =SUMPRODUCT(RIGHT(A$1:E$1,4)*A2:E3)

+ 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: 5
    Last Post: 07-06-2013, 08:21 PM
  2. Calculate Totals
    By jimmy1981 in forum Excel General
    Replies: 1
    Last Post: 11-24-2010, 08:24 AM
  3. calculate Column Totals in dynamic Tables
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2010, 05:39 AM
  4. Calculate row totals of Yes/No
    By MarkD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2006, 08:50 AM
  5. Comparing/matching totals in a column to totals in a row
    By Nicole L. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2005, 07:06 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