+ Reply to Thread
Results 1 to 7 of 7

SUMIFS Function

  1. #1
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    SUMIFS Function

    Hello everyone

    I have a question about this function. Does the second criteria range has to be different to the first one?

    =SUMIFS(C:C;D:D;"Zloty";D:D;"GBP")

    I am using this one where I have all the amounts in C:C (Sum range) then in D:D I have the currency.


    PS I know it does not make any sense to add up zlotys and pounds together

    Thank you

  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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,368

    Re: SUMIFS Function

    Only one value in D can match, so no, this will not work.

    Explain in WORDS what you are trying to achieve.
    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 Contributor
    Join Date
    02-09-2021
    Location
    New York
    MS-Off Ver
    Office 2019
    Posts
    145

    Re: SUMIFS Function

    Please try:

    Please Login or Register  to view this content.
    If you want conversion, multiply to the one you want to change (formula below converts Zloty to GBP):

    Please Login or Register  to view this content.


    Hope this works
    Last edited by D13L; 04-15-2021 at 11:42 AM. Reason: Added for conversion

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,738

    Re: SUMIFS Function

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

  5. #5
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: SUMIFS Function

    Thank you very much, the first one returns spill error tho.

    Btw what does the - wildcard mean?

  6. #6
    Forum Contributor
    Join Date
    04-03-2021
    Location
    Zaragoza
    MS-Off Ver
    2102 MICROSOFT 365
    Posts
    153

    Re: SUMIFS Function

    Many thanks,

    Could you kindly explain it in words?

    Why are the criteria1 and criteria range 2 in matrix form?

    Cheers

  7. #7
    Forum Contributor
    Join Date
    02-09-2021
    Location
    New York
    MS-Off Ver
    Office 2019
    Posts
    145

    Re: SUMIFS Function

    Hi viewotst,

    Double negative (--) means change to true/false. I don't know what's causing the spill error but here is the logic behind the formula:

    New formula(didn't test the 1st one which cause erroneous result, has nothing to do with spill error):
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    1) double negative (--): Means True/False or 0/1

    So in the picture --(D:D="Zloty") would show: {1,0,0,0,0}
    Likewise --(D:D="GBP") would show: {0,0,1,0,0}

    2)Simple multiplication

    --(D:D="GBP")*(C:C) means: {0*1,0*2,1*3,0*4,0*5} which gets you {0,0,3,0,0}
    --(D:D="Zloty")*(C:C) means: {1*1,0*0,0*0,0*0,0*0} gets you {1,0,0,0,0}

    3)Last add the 2 condition. SUMPRODUCT(--(D:D="Zloty")*(C:C) + --(D:D="GBP")*(C:C)): {1+0,0+0,0+3,0+0,0+0} = 4

    4)To add conversion, multiply conv. formula beside the one you want to convert.

    SUMPRODUCT(--(D:D="Zloty")*(C:C)*(.19/1.00) + --(D:D="GBP")*(C:C))
    Attached Images Attached Images

+ 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] Using TODAY function inside the SUMIFS function
    By taraberg_321 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-26-2019, 10:32 AM
  2. [SOLVED] Merge Month function in SUMIFS function
    By wincross in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-28-2017, 09:08 AM
  3. SUMIFS with and function
    By tellemt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2015, 10:19 AM
  4. [SOLVED] Using large function based on sumifs function
    By jeosen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2015, 08:20 AM
  5. [SOLVED] Help with this SUMIFS function
    By husni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2015, 01:28 AM
  6. Help nesting an OR function inside a SUMIFS function
    By wes228 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2014, 06:22 PM
  7. [SOLVED] sumifs function
    By orshims in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2014, 10:56 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