+ Reply to Thread
Results 1 to 12 of 12

I am getting an error to include two conditions in one formula

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Question I am getting an error to include two conditions in one formula

    I am getting an error which says "You've entered too few arguments for this function". This formula is given below

    =IF(B2&C2&J2=B2&"DE",B2&"Audit"&"COMPLETED",SUMIFS($I$2:I2,$M$2:M2,M2,$C$2:C2,"DE","Audit",$E$2:E2,E2),"")

    Please help me with it.

    Thanks,
    Danish
    Last edited by Danish Jasnaik; 12-09-2019 at 10:43 PM. Reason: Title not matching the criteria of the forum

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Error in formula

    Without more detail it's hard to help, but the problem with your Formula as it stands is that you've got "Audit" where SUMIFS is expecting a range of cells.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Error in formula

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Need help with formula

    OK, I am attaching my sheet here, could please have a look at it and tell me whats wrong here?
    Attached Files Attached Files
    Last edited by Danish Jasnaik; 12-09-2019 at 06:42 AM.

  5. #5
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Error in formula

    Made the changes

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Error in formula

    An if statement is if(condition, true, false)

    =IF(B2&C2&J2=B2&"DE",B2&"Audit"&"COMPLETED",SUMIFS($I$2:I2,$M$2:M2,M2,$C$2:C2,"DE","Audit",$E$2:E2,E2),"")


    the last bit of your formula is a condition too many and you have De and audit borth as criteria

    =IF(B2&C2&J2=B2&"DE",B2&"Audit"&"COMPLETED",SUM(SUMIFS($I$2:I2,$M$2:M2,M2,$C$2:C2,{"DE","Audit"},$E$2:E2,E2)))

  7. #7
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Error in formula

    Hi there,

    Thanks for the formula, however I need both the criteria "DE" and "Audit" to be in the formula. Is there any way in which I can do it?

  8. #8
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Error in formula

    Have you even looked at the formula I posted? it includes DE and Audit. Is it not working?

  9. #9
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: Error in formula

    Yes I did check that formula, it is not working

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Error in formula

    @Danish Jasnaik

    Please read my post #3 and abide by the forum rules. Your change is not satisfactory and in accordance with the forum rules. Tell us your issue in specific terms.

    Note: No help to be offered this thread until OP complies with forum rules regarding thread title.

  11. #11
    Registered User
    Join Date
    05-24-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    30

    Re: I am getting an error to include two conditions in one formula

    @alansidman really sorry for not meeting the rules of the forum. I have update my title. Please let me know if that's fine.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: I am getting an error to include two conditions in one formula

    Thank You for changing the title.
    Please explain what "not working" means, as I applied davsth's formula into column K (I guessed as to where the formula is supposed to go) and got values.
    If they aren't the correct values then it may help to show us the values you do expect.
    Also "Audit" isn't shown in column C so we may need another sample file that shows what values you expect to see when "Audit" is in column C.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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 not returning correct result. Formatting error or formula error?
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2019, 02:38 PM
  2. [SOLVED] Macro To IGNORE ERROR - Cell With Formula / Green Arrow Error
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2018, 09:16 PM
  3. [SOLVED] FORMULA Remove #NUM error not using IFERROR OR IS ERROR
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2017, 04:22 PM
  4. Formula error or data link error
    By sctr in forum Excel General
    Replies: 4
    Last Post: 09-19-2016, 09:15 AM
  5. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  6. Excel 2007 : Formula error:bring up an #VALUE! Error.
    By burner007 in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 06:10 AM
  7. Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM

Tags for this Thread

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