+ Reply to Thread
Results 1 to 29 of 29

IF statement clause and SUMIF statement formula help!!!!

  1. #1
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    IF statement clause and SUMIF statement formula help!!!!

    I have a set of earnings data with Main payee accounts that have sub accounts, now I am trying to pull earnings either by payee account or subaccount depending on the clients that I'm searching. Please take a look at my attachment. I'm already using the following formula but I want to be able to calculate when I have to pick up the earnings by payee account but minus out the client under that payee account that I have already picked up. =IF(A15=B15,SUMIF($A$2:$A$8,A15,$C$2:$C$8),IF(A15<>B15,SUMIF($B$2:$B$8,B15,$C$2:$C$8)))

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF statement clause and SUMIF statement formula help!!!!

    can you explain your issue better? Your attachment shows that the ideal result would be 8874.37 but that appears to be the value for sub account 9964 though your formula seems to be returning the correct value for sub account 9963?
    what should the result be?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    The spreadsheet that I am populating with new earnings has Sub accounts that for the current period had -0- earnings.
    I need to formula to pick up sub-accounts that don't have earnings as follows
    Total Payee account - Sub-account earnings already picked up = Allocate these earnings to the subaccount that has no earnings for the period as a default.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    d2 =if(countif($A$2:$A7,$A2)=countif($A$2:$A2,$A2),"yes","no") and drag down.

    After that a pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    This is not what I am looking for. I'm working with more than a million lines and I'm trying to have one formula for all my worksheet tabs doing the search.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF statement clause and SUMIF statement formula help!!!!

    is it ok to use a helper column?

  7. #7
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    ok . If the Sub-account is crossed = Yes ; if it's not crossed into a Payee account = No.

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: IF statement clause and SUMIF statement formula help!!!!

    Hi

    C14=IF(SUMIFS($C$2:$C$7,$A$14:$A$19,$A14,$B$14:$B$19,B14)=0,SUMIFS($C$2:$C$7,$A$14:$A$19,A2,$B$14:$B$19,B2),SUMIFS($C$2:$C$7,$A$14:$A$19,$A14,$B$14:$B$19,B14)) copydown

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    In #5
    Please Login or Register  to view this content.
    1) Since you get answers of several forummembers it is always usefull to add to who you are replying.

    one formula for all my worksheet tabs

    2) you have to explain better what you want to achieve.

  10. #10
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    oops! Sorry for not responding directly to the corresponding respondents.

  11. #11
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Hi Caracalla, the formula you suggested doesnt work I get a value error and circular reference.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    Then I advice you to correct that and help the forummembers to help you.

  13. #13
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Ok. I did the following tweak to my formula . I added the "helper" now I am getting an N/A for the sub-account that has no earnings.

  14. #14
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    If(a16="y",vlookup(c16,$c$2:$d$8,2,false),if(a16="n",sumif($b$2:$b$8,b16,$d$2:$d$8)))

  15. #15
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    UPDATED File

    IF(A14="Y",VLOOKUP(C14,$C$2:$D$8,2,FALSE),IF(A14="N",SUMIF($B$2:$B$8,B14,$D$2:$D$8)))


    Now, how can I amend this formula to pick up the remaining earnings from the Payee account in this case account 9964 and pull it under 9963. I have alot of these scenarios on my work file.
    Last edited by djmatok; 10-27-2015 at 06:26 PM.

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    show the result in your sheet and refer to the related cells with the same color.

    A good file, speaks more for itself than 1.000 words (at least for me).

  17. #17
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Can someone please help me find the most effective way to pull off this formula?

  18. #18
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Please see my most recent file attachment you will see what I need.

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    Did that and it was not clear to me, otherwise I would not replied that way.

  20. #20
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    I'm really stuck on this one. I need help.

  21. #21
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    updated the file with the colored result that I need.

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    See the answer in #4.

  23. #23
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    that did not work

  24. #24
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    In what way that did not work.

    I think it was the answer you were looking for.

    If not, not only for me, but also for the other forummembers, you have to explain / show (in an excelfile) the result.

    Just that did not work is much to short and non-explaining.

    You want help from forummembers.

    Help yourself, by helping the forummembers.

  25. #25
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Oeldere I appreciate everyone's help but I provided already three workbooks. The last sheet that I attached it shows you the result that I want to obtain. What I'm trying to accomplish here is to pull the remaining earnings not allocated to the client that crosses into the main account that for the period doesnt have earnings. At the end of the day all these clients are just different earning buckets and all should fall under the same payee account.

  26. #26
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!

    And that is in my opinion what I showed you in #4.

    But since that is not the result, I don't get it, so I wish you luck finding your solution.

    Maybe other forummembers do understand your question and can solve it.

  27. #27
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Here is the result that I need.

  28. #28
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF statement clause and SUMIF statement formula help!!!!


  29. #29
    Forum Contributor
    Join Date
    06-27-2012
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    164

    Re: IF statement clause and SUMIF statement formula help!!!!

    Thank you! But that is not the result that I need.

+ 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. Formula - sumif statement?
    By Rachel88 in forum Excel General
    Replies: 5
    Last Post: 04-02-2015, 08:25 PM
  2. [SOLVED] How do I pass a MID( statement through a IsNumber in an If, Then, Else clause?
    By needsome in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 04:51 PM
  3. [SOLVED] SQL Transform Statement in VBA - Using Variable in the FROM clause
    By jdorbish in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-06-2012, 09:26 AM
  4. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  5. Nested SUMIF statement or multiple SUMIF's
    By Dan27 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2009, 06:55 AM
  6. help with =sumif statement
    By Mile029 in forum Excel General
    Replies: 4
    Last Post: 08-07-2007, 06:00 PM
  7. [SOLVED] Help please, IF statement/SUMIF statement
    By Brad_A in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-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