+ Reply to Thread
Results 1 to 10 of 10

IF STATEMENT comparing certain criterias

  1. #1
    Registered User
    Join Date
    05-03-2017
    Location
    CA
    MS-Off Ver
    210
    Posts
    61

    IF STATEMENT comparing certain criterias

    Hi,

    I have my raw data in the attachment. I am trying to find a IF statement or Formula that gives me an answer of "Cleared" or "Not Cleared.

    "If the customer name has same ITEM, and Amount in both Debit and Credit side then Line Item is cleared"
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF STATEMENT comparing certain criterias

    Try

    =IF(SUMIFS(O:O,H:H,H3,I:I,I3)=SUMIFS(P:P,H:H,H3,I:I,I3),"Cleared","Not Cleared")

  3. #3
    Registered User
    Join Date
    05-03-2017
    Location
    CA
    MS-Off Ver
    210
    Posts
    61

    Re: IF STATEMENT comparing certain criterias

    Thank you for your help. The formula work perfectly. But in raw data sometimes I might not have "customer name" and it will blank. And with current formula it still spits out the result as "Cleared" where it should be "Not Cleared"

    See Attachment
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: IF STATEMENT comparing certain criterias

    Remove the reference to it thus:

    =IF(SUMIFS(O:O,I:I,I3)=SUMIFS(P:P,I:I,I3),"Cleared","Not Cleared")
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: IF STATEMENT comparing certain criterias

    Thank you for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    05-03-2017
    Location
    CA
    MS-Off Ver
    210
    Posts
    61

    Re: IF STATEMENT comparing certain criterias

    Thanks for all the help

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF STATEMENT comparing certain criterias

    Quote Originally Posted by AliGW View Post
    Remove the reference to it thus:

    =IF(SUMIFS(O:O,I:I,I3)=SUMIFS(P:P,I:I,I3),"Cleared","Not Cleared")
    Hi Ali @ Usama

    It appears that Usama wants to test two conditions, viz. Customer Name and Item, i.e. columns H&I hence specifying just I:I won't pick up the Customer Name.
    The problem is because of H10 being blank.

    Assuming that the dual comparison is indeed the case the formula in S3 needs to be

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Registered User
    Join Date
    05-03-2017
    Location
    CA
    MS-Off Ver
    210
    Posts
    61

    Re: IF STATEMENT comparing certain criterias

    Thank Richard for your help. Thank you all for help.

  9. #9
    Registered User
    Join Date
    05-03-2017
    Location
    CA
    MS-Off Ver
    210
    Posts
    61

    Re: IF STATEMENT comparing certain criterias

    Is it possible you or someone here can assist with my other thread that I have a question about. I am almost to reaching my final result.

    Thread Title
    "Combining data into one String Pattern"

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: IF STATEMENT comparing certain criterias

    Go and bump the thread in question. There is no point in bumping this one. If anyone can help, they will.

+ 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] Macro Find set criterias to a colomn of number, delete the rows that don't meet criterias
    By TAMMY32 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2017, 04:09 PM
  2. [SOLVED] sumifs with ranges and criterias depending on an if statement
    By alexcrofut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2014, 04:36 PM
  3. Four rule statement with multiple criterias (Formula?, macro?, IDK??)
    By bwalling6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2013, 04:49 PM
  4. Using If Statement for multiple date criterias
    By adamschmidt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2013, 04:52 AM
  5. Criterias for IF Statement
    By captedgar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2010, 02:14 PM
  6. Comparing Data with certain criterias
    By dvspriest in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2008, 04:09 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