+ Reply to Thread
Results 1 to 17 of 17

SUMIFS formula variation help

  1. #1
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    SUMIFS formula variation help

    Hello,

    I am building a custom tax return file, and I am having problems summing data using multiple selections.
    Attached is a file where the formula I have built is in cell F11.

    The idea is that this cell should SUM all values in the transactions tab based on the following criteria:
    • When the tax code = D11 in the VATSummary! And “Purchase or Sale” in Transaction! = “Sales”

    • When the selected item D2 is matched
    • When the selected item E2 is matched
    • When the selected item F2 is matched

    The last 3 items in the drop down list must not be mandatory selected, I like to have the flexibility to report
    In a specific month, or just a specific quarter or a specific year, which means that If I select October 2018 and the quarter and Year are blanc
    I should only get October 2018, but if I leave Month and quarter blanc but I select under year 2018, than I should get all data for 2018 for tax code in D11 and “Purchase or Sale” in Transactions! = “Sales” ….. If all this makes sense

    Any help would be greatly appreciated

    Best Regards
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: SUMIFS formula variation help

    Try "F11"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    "g11"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    Thanks for the reply but the formulas provided give always a zero value return

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: SUMIFS formula variation help

    Did you replace all of the , with ; you need to as you guys use ; as the separator....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    If I replace commas with semicolon it tells me that there is an error in the formula
    I have been using always commas and they work fine.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUMIFS formula variation help

    Hi

    First correct your Transaction!E2:E4. Year must be converted in numbers.

    Another problem is "Sale" <> "Sales" and "Purchase"<>"Purchases" but formula take care of that.

    Try this formula in F11:G12
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and this in F23:G24
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    I converted the year into a number and pasted the formula provided but I still get zero as a value

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUMIFS formula variation help

    Hi

    I suppose the value must be zero. The filter say that you want Sales but the data is Purchase.
    Change Transactions!G2 to "Sale"

  9. #9
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    I am re-uploading the file with the changes made, the difference is that I had to change the commas with semicolons because I am in Europe,
    but for the rest, it should work but it still not. Can you confirm if you download my file that works?
    Attached Files Attached Files

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUMIFS formula variation help

    Hi

    If you uses "Sales" I do not use LEFT($C$9,4)

    The formula if you use "sales"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    I think we are nearly there, the problem is that I seem that I always need to have all 3 dropdown list selected, If I want to have all Sales invoices for the given TAX code for 2018, the formula should pick up 2 records, but it brings back zero

  12. #12
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: SUMIFS formula variation help

    Try "F2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    "G2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    nope, I am still forced to select a condition in all 3 drop down lists, if I just select in the year 2018, I get nothing or if I just select in the month October 2018 I get nothing....

    and BTW... You dod not really mean that those formulas should go in F2 and G2 right?

  14. #14
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: SUMIFS formula variation help

    Why not using Pivot Table.
    See attachment.
    Attached Files Attached Files

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: SUMIFS formula variation help

    Try this in F11, copied across and down:

    =SUMIFS(Transactions!K:K,Transactions!$C:$C,IF($D$2="","<>",$D$2),Transactions!$H:$H,$D11,Transactions!$D:$D,IF($E$2="","<>",$E$2),Transactions!$E:$E,IF($F$2="","<>",$F$2),Transactions!$G:$G,$C$9)
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    10-11-2018
    Location
    Netherlands
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: SUMIFS formula variation help

    Yes... Yes... Yes... and did I mention ...yeeeeeeeees?????

    Thanks so much, now I'll have to spend some time understanding the formula so I can manipulate it for other tax codes or if I need to add an extra Drop down list.

    Thanks again

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: SUMIFS formula variation help

    It's sumple enough....

    The criterion is: if the dd cell is blank, count all non blanks in the criterion column, otherwise onlt count those that meet the criteria.

+ 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] Variation to my last IF OR formula
    By SueBristow in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2018, 06:47 AM
  2. [SOLVED] Variation of IF formula help needed
    By moe1986 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2015, 12:02 PM
  3. formula variation.
    By melvio in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2013, 10:18 AM
  4. Variation on an IF formula
    By tylerf in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-25-2013, 07:05 AM
  5. [SOLVED] Countif formula variation
    By tylerf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 04:39 PM
  6. [SOLVED] Variation of a Factorial formula
    By Cheeseburger in forum Excel General
    Replies: 1
    Last Post: 09-06-2011, 12:49 PM
  7. Variation on SUMIFS
    By ychartra01 in forum Excel General
    Replies: 2
    Last Post: 09-24-2009, 02:07 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