+ Reply to Thread
Results 1 to 8 of 8

Formula to workout the Total margin from a table with Gross amounts

  1. #1
    Forum Contributor
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    112

    Formula to workout the Total margin from a table with Gross amounts

    Hi

    I have a table with multiple rows giving details of the gross amount and margins, what is the best function to use to find the total margin without having to compute the details in another column and get the total margin

    I have attached a sample data set

    Thank you for your help in advance

    Regards
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Formula to workout the Total margin from a table with Gross amounts

    Are you still using Excel 2019?

    Try this:

    =ROUND(SUMPRODUCT(H5:H8*G5:G8),2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Formula to workout the Total margin from a table with Gross amounts

    Try

    =SUMPRODUCT(E5:E8*((1/(1+(1/G5:G8)))))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Contributor
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    112

    Re: Formula to workout the Total margin from a table with Gross amounts

    Apologies AliGW I should you have mentioned that Coloumn H & Coloumn K are my workings and they do not form part of the table

    Thanks kvsrinivasamurthy , the formula worked fine, unfortunately for me there were few line items with 0% margin and the total showing an error message. Apologies for not mentioning this earlier , is there a fix for same, I have attached the revised excel

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Formula to workout the Total margin from a table with Gross amounts

    Change the formula

    =SUMPRODUCT(E5:E8*(G5:G8/(G5:G8+1)))

  6. #6
    Forum Contributor
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    112

    Re: Formula to workout the Total margin from a table with Gross amounts

    Thanks a lot kvsrinivasamurthy, it was a huge help and much appreciated.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Formula to workout the Total margin from a table with Gross amounts

    Welcome. Have a great day.

  8. #8
    Forum Contributor
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    112

    Re: Formula to workout the Total margin from a table with Gross amounts

    Thanks , I am posting another similar question regarding a calculation and would appreciate if you could also please help me with same if possible

+ 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. Need formula to calculate average Gross Profit Margin including $0 samples.
    By OldLadyStillLearning in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2023, 12:56 AM
  2. Formula to determine yearly trend of Gross margin by business unit
    By Chad5252 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2023, 04:43 PM
  3. Net Margin Formula Using SUM= To Calculate Gross Margin Cells
    By jezrp22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2015, 08:41 PM
  4. [SOLVED] Need help obtaining correct formula to handle Gross Profit Margin
    By coreytroy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2014, 01:33 AM
  5. Excel gross margin formula needed
    By Jacques de Beer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2012, 04:51 AM
  6. Calculation of Gross Margin in a pivot table
    By Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2006, 02:40 PM
  7. [SOLVED] gross profit margin formula
    By julmcgrath in forum Excel General
    Replies: 2
    Last Post: 03-11-2005, 11:06 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