+ Reply to Thread
Results 1 to 13 of 13

End Result Based on Several Criterias

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    End Result Based on Several Criterias

    Ok, no fun no more...

    Trying to get end result based on criteria:

    IF A2 is 200 + IF B2="Deposit" + IF C2="Reconciled" then D2 show A2 (which is 200) IF B2 and C2 are is blank, show "-"

    IF A2 is 200 + IF B2="Withdrawal" + IF C2="Reconciled" then D2 show A2 in negative value (200) IF B2 and C2 are blank, show "-"



    Tried all, AND, OR, IFS... nothing works!

    What's a formula for this, please? Before going nuts here...
    Last edited by vill; 06-28-2017 at 11:49 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: End Result Based on Several Criterias

    Try this in D2:

    =IF(OR(B2="",C2=""),"-",IF(AND(B2="Deposit",C2="Reconciled"),A2,"-"))

    This will show A2 in D2 only if both B2 is "Deposit" AND C2 is "Reconciled" - if you mean either of those then the AND should be replaced with OR. Also, you might want to change the "-" to zero (twice) if you are using an accounting format.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: End Result Based on Several Criterias

    I think these work:

    =IF(AND(A2=200,B2="Deposit",C2="Reconciled"),A2,IF(AND(B2="",C2=""),"-","-"))

    =IF(AND(A2=200,B2="Withdrawal",C2="Reconciled"),-A2,IF(AND(B2="",C2=""),"-","-"))
    Attached Files Attached Files
    Last edited by Mvaldesi; 06-28-2017 at 12:06 PM.

  4. #4
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: End Result Based on Several Criterias

    Thank you guys so much for your help!!!

    Your both formulas work, however, sorry, might not explained myself properly - Deposit and Withdrawal needs to be blended formulas together (in same End Result cell)

    I also just realized that I missed on one criteria - Cleared must also be added to a formula...

    I tried figuring things out with what already was given, just not able to... Attaching a screenshot for better explanation to what I'm trying to achieve here.

    2017-06-28_2005.png

    Is it possible to take a look at it again? Just to tweak, we're almost there!

    (can't seem to find the way to attach Excel file?)

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: End Result Based on Several Criterias

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: End Result Based on Several Criterias

    Seems to have figured out the way how to share Excel.

    This link should work

    https://www.excelforum.com/attachmen...1&d=1498671798
    Attached Files Attached Files

  7. #7
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: End Result Based on Several Criterias

    Try this:

    =IF(AND(A2=200,B2="Deposit",C2="Reconciled"),A2,IF(AND(A2=200,B2="Withdrawal",C2="Reconciled"),-A2,IF(AND(B2="",C2=""),"-","-")))
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: End Result Based on Several Criterias

    What is purpose of "criteria 2" if either are valid with Criteria 1" : it is the latter which determines the outcome and is not (on my understanding) dependent on value of "Criteria 2".

    Unless there are are other options for "Criteria 2"

    Is this what is required ???.

    =IF(OR(B7="",C7=""),"-",IF(AND(B7="Deposit",OR(C7="Reconciled",C7="Cleared")),D2,D3))

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: End Result Based on Several Criterias

    As you have drop-downs to control what can be entered in B7 and C7, you can use this formula in D7:

    =IF(OR(B7="",C7=""),0,IF(B7="Deposit",A7,-A7))

    I.e. no need to test directly for "Withdrawal".

    Hope this helps.

    Pete

  10. #10
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: End Result Based on Several Criterias

    Thanks! One criteria 'Cleared' is missing, as per earlier screenshot and a file I attached. Reattaching here again

    https://www.excelforum.com/attachmen...as-erbosc.xlsx

  11. #11
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: End Result Based on Several Criterias

    This is it, Pete! Jeez, you guys great. Thank you so much!!!

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: End Result Based on Several Criterias

    You're welcome - it's always easier if you can see the workbook.

    Thanks for marking the thread as Solved.

    As you are relatively new to the forum, you might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  13. #13
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: End Result Based on Several Criterias

    Done, Pete, thank you for guidance too :-)

+ 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. Display the result with multiple criterias. [Solved]
    By vho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2017, 12:16 AM
  3. [SOLVED] Sum based on 2 different criterias
    By rlkerr in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 02:28 PM
  4. Replies: 1
    Last Post: 04-13-2011, 02:13 AM
  5. Replies: 12
    Last Post: 04-30-2008, 09:07 AM
  6. Produceing a value based on two criterias.
    By kmelas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-05-2007, 07:57 AM
  7. [SOLVED] vlookup based on random result returns incorrect result
    By rickat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2005, 09:20 AM

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