+ Reply to Thread
Results 1 to 17 of 17

How to count/divide two cell information within a sumif forumula?

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question How to count/divide two cell information within a sumif forumula?

    Hi everyone,

    I have been fighting with this for two days now: I have a table with various projects, funded by various donors, happening in different continents and countries. What I would like to do is to establish some statistics for each donor. I want to show how much money donor A spent for projects in Latin America, Sub-Saharan Africa or East Asia. The problem is that some projects occur in multiple countries, therefore only an equal share should be assigned to a contribution with a continent.

    I have been using a Sumifs-Formula: SUMIFS(grant by donor;region "x"; no of projects "1") ( I was working with lists).

    But this is what I need: If a project region happens in two regions, I need to divide the grant of donor A by the numbers of regions the project occurs and add it up to the respective total number and finally sum-up all numbers. The number occurs in a different column (even though it would be nicer to get ride of this column and embed it into the formula). I need one final number in the end without having to add a different column.

    I tried various forms of if-formula or sum-ifs, but it didn't work. (Something like =SUMIFS(grandpa;LATIN_AMERICA;"x";No_of_regions;"1")+=SUMIFS(grandpa/2;LATIN_AMERICA;"x";No_of_regions;"2"+...)....


    I attached a smaller, fake dummie of the original table in order to illustrate what I need. Thanks in advance for you help!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Re: How to count/divide two cell information within a sumif forumula?

    I May have read this the wrong by but place this formula into cell B15 and let me know if this is what you are after
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    Hi,
    Thanks a lot. This is already an improvement - It's quite close. If I understand this formula correctly it first counts all the amount available by grandpa in Latin_America divided then by the total numbers of region. The original sheet has different amounts paid by "grandpa" ( which I admit did not become quite clear in this dummy). This calculation would need to happen for every single row first and then the intermediate results need to be added together.

    If i add an x to 'J3' in this dummy (claiming it happens in LA as well), I have two projects paid by "grandpa" which are in Latin America. The investment of grandpa in Latin America would be: (5.000/3)+(10.000/3)=5000 EUR.

    The formula you proposed provides 2.500€ as a result. So it's a good first step.

  4. #4
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    Hi, anyone who could help?

  5. #5
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    Hi Eldrowski, perhaps this formula in B15 and copy across?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ps: In post#3 I think you mean J7 instead of J3?
    ps: N3 and A19 named differently



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  6. #6
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    Hi alvin,

    thanks for posting. When I enter the formula it gives me a #REF! error - I don't know though where the stumbling blocks are, because this is way beyond my excel skills Any idea?

    And yeah, you were right with you two P.S.'s
    Last edited by Eldrowski; 01-20-2014 at 10:15 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    I just tried that formula in B15 (using the one that you attached in post #1) and get 1666.6667.
    Then I copied to rest of the cells without issue except for B19:D19 which gives me an #N/A due to N3 and A19 named differently

    If you still get the #N/A, try upload the file with the error so that I can take a look



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  8. #8
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    Hi, the #N/A error war actually my mistake, I entered it into a wrong version of the excel file. Sorry, for that ( I blame Monday) - but after I put it into the right document, I got a #REF error.

  9. #9
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    Interesting, did you try my formula with the attachment that you posted in this thread? or you tried it with your actual file?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  10. #10
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    Copy of dummie-1.xlsx

    This is the file with the #REF error.

    Thanks a lot for your help, alvin!

  11. #11
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    No I tried it with the attachment. The actual file is way bigger and more complex. Maybe it's a version issue? I don't know

  12. #12
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    You're welcome.

    Oh dear, you took out two commas from my formula
    Try copy again my formula in post #5 and paste to B15 shall work.



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  13. #13
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Red face Re: How to count/divide two cell information within a sumif forumula?

    Well, I did it because this is what I get when I paste the formula: what I get.jpg

    I have a German version of excel where you use ';' instead of ',' within a formula. Should I put two semicolons then?

  14. #14
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    Oh I see...
    Yea, please change all commas to semicolons as we have different regional settings



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  15. #15
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    After adding the second semicolon it worked and I get 1666,666667


    THANKS!

  16. #16
    Registered User
    Join Date
    01-16-2014
    Location
    Vienna
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to count/divide two cell information within a sumif forumula?

    It's perfect!

    Thanks from a very happy me

  17. #17
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: How to count/divide two cell information within a sumif forumula?

    You're welcome, glad you finally got it



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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. Help with SUMIF? Forumula
    By indians207 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-21-2013, 03:49 PM
  2. vlookup versus sumif forumula return
    By Coors in forum Excel General
    Replies: 4
    Last Post: 02-08-2012, 02:53 PM
  3. a forumula to look up a worksheet and pull information to a summary page
    By cubeworker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2010, 08:43 AM
  4. How to use SUMIF Forumula in this condition
    By dalipsinghbisht in forum Excel General
    Replies: 6
    Last Post: 10-14-2008, 04:07 PM
  5. COUNT forumula problem
    By vishu in forum Excel General
    Replies: 4
    Last Post: 03-24-2006, 11:25 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