+ Reply to Thread
Results 1 to 10 of 10

SUMIF calculate sum with percentage from another cell

  1. #1
    Registered User
    Join Date
    11-10-2015
    Location
    Östersund, Sweden
    MS-Off Ver
    Office for Mac
    Posts
    7

    SUMIF calculate sum with percentage from another cell

    Hi!
    I need help to solve a SUMIF (or similar formula) to calculate expenses based on percentage.

    In Sheet1 I have the following columns (defined as names):
    - Amt_ex_GST (total amount for the expense)
    - Type_expense (text based value, type of expense)
    - Location1 (percentage, how much of the above amount that should be allocated to this location)
    - Location2 (percentage, how much of the above amount that should be allocated to this location)
    - Location3 (percentage, how much of the above amount that should be allocated to this location)
    - Location4 (percentage, how much of the above amount that should be allocated to this location)

    In Sheet2 I have lined up the different expense types in column A and I have allocated B:E for Location1 through to Location4.
    So I'm trying to calculate the total amount for the different expenses based on the percentage for each location, I have tried the following but wasn't successful:

    =SUMIF(Type_expense,A2,(Amt_ex_GST*Location1)

    Anyone who can give me some ideas?

    Thanks!

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: SUMIF calculate sum with percentage from another cell

    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 use the paperclip icon to open the upload window.

    View Pic
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIF calculate sum with percentage from another cell

    Hi, and welcome to the forum

    If you''d care to upload the workbook or at least the relevant bit of it and manually add the results you expect to see and noting which cells are the result cells then no doubt we will be able to help further.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    11-10-2015
    Location
    Östersund, Sweden
    MS-Off Ver
    Office for Mac
    Posts
    7

    Re: SUMIF calculate sum with percentage from another cell

    Thanks for your quick response!

    Attached is a sample file - hope it makes sense
    Sample.xlsx

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIF calculate sum with percentage from another cell

    Hi,

    You have two Bank Charges rows on the Data sheet. How is the Report sheet to know which one to use. In addition you have two different multiplying factors in the Report sheet, 100 & 50. How many more are there for other types of cost?

  6. #6
    Registered User
    Join Date
    11-10-2015
    Location
    Östersund, Sweden
    MS-Off Ver
    Office for Mac
    Posts
    7

    Re: SUMIF calculate sum with percentage from another cell

    Hi Richard.
    The first sheet 'Data' contains a number of transactions, in this case pulled from bank statements.
    Each expense is then given the 'Type of expense' and each location is seen as a 'cost cut' to which the expense is allocated either 100% of the cost or a different percentage.

    So what I'm trying to achieve is for the Report sheet to line all types of expenses and then the accumulated cost so far based on the transactions and the 'cost cut' for each location.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIF calculate sum with percentage from another cell

    Hi,

    In B2 copied across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change A1:A16 in the formula as appropriate. better still create a dynamic range name for your data and use the range name in the formula.

  8. #8
    Registered User
    Join Date
    11-10-2015
    Location
    Östersund, Sweden
    MS-Off Ver
    Office for Mac
    Posts
    7

    Re: SUMIF calculate sum with percentage from another cell

    Hi Richard.
    Sorry for late reply but haven't had time to look back at this.

    It seems like the formula is not calculating the values correctly.
    I can't get my head around where in the formula it takes into account the amounts in 'Amt_ex_GST'?

    Attached is an updated Sample file and I have added a few more records in the Data sheet.

    Thanks
    Sample2.xlsx

  9. #9
    Registered User
    Join Date
    07-01-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: SUMIF calculate sum with percentage from another cell

    hi..

    I think you can use "sumproduct"..

    please check it.

    Regards,
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-10-2015
    Location
    Östersund, Sweden
    MS-Off Ver
    Office for Mac
    Posts
    7

    Re: SUMIF calculate sum with percentage from another cell

    Bingo!
    That one worked - thank you!

+ 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] Calculate a percentage when row cell meets criteria..
    By DigitalWavez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2014, 08:24 AM
  2. Calculate percentage in same cell
    By Jdz1234 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-18-2013, 03:34 PM
  3. Calculate percentage change of cell
    By flat_pro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2013, 01:51 PM
  4. Replies: 8
    Last Post: 04-01-2012, 10:36 AM
  5. Replies: 2
    Last Post: 04-09-2010, 04:43 PM
  6. Replies: 2
    Last Post: 07-21-2005, 07:05 PM

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