+ Reply to Thread
Results 1 to 10 of 10

Check multiple conditions for proper value

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Check multiple conditions for proper value

    In my attached workbook... I want to sum TRADES U2. I first need to check the value of TRADES A2 to use the appropriate numbers from INSTRUMENTS.

    I have attempted to use IF(OR and IFS. In both cases, I receive an error, either 'too many arguments', or 'too few arguments'.

    As an example, using IFS...
    Please Login or Register  to view this content.
    In this case, TRADES A2 = ES, so I need to use the numbers in INSTRUMENTS Row 6...
    Please Login or Register  to view this content.
    By itself, this works. However, I cannot get it to work from within an IF(OR or IFS formula.

    Thoughts?
    Attached Files Attached Files
    Last edited by cableghost; 01-22-2024 at 01:59 PM.

  2. #2
    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,202

    Re: Check multiple conditions for proper value

    Try

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


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

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

    Re: Check multiple conditions for proper value

    You could use this formula in U2:

    =((((G2*I2)+(J2*K2))-((N2*O2)+(P2*Q2)))*VLOOKUP(A2,INSTRUMENTS!$B$4:$D$7,3,0))-VLOOKUP(A2,INSTRUMENTS!$B$4:$I$7,8,0)

    then you wouldn't need an IF(OR or IFS formula.

    Hope this helps.

    Pete

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: Check multiple conditions for proper value

    Another solution (same result):

    Please try in U2 (and copy down):

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

  5. #5
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Check multiple conditions for proper value

    Wow, Thank you all! All 3 solutions work very well, but in initially selecting one, I'm going with the 'VLOOKUP' approach. I'll spend time reviewing code for each solution presented.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: Check multiple conditions for proper value

    You are Welcome!

    Thanks for the feedback. Glad to have helped. .

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Check multiple conditions for proper value

    @Pete_UK, I want to make an edit to the comm structure (INSTRUMENTS I col). How would I incorporate the below in place of any I4?
    Please Login or Register  to view this content.
    What's going on here is that I'm taking into account any additional adds or profit targets.

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

    Re: Check multiple conditions for proper value

    It's a bit confusing, as you refer to I4 in your question, but you have $I$6 in the formula that you have quoted. Do you mean that you want this amendment to apply only when the other formula will be using I4 (i.e. when A2="NQ"), or do you want it to affect the previous formula for all of the (4) values? Is this to replace the second VLOOKUP term, i.e. instead of the appropriate value from column I of the INSTRUMENTS sheet, you want to take this amended value?

    Pete

  9. #9
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Check multiple conditions for proper value

    Yeah, I did confuse the topic. I instead worked out the COMM in TRADES T2, no longer needing to make the other calcs. Thanks for posting back!

    Edit: Below are the calcs, and I updated the attached workbook.

    COMM:
    Please Login or Register  to view this content.
    NET:
    Please Login or Register  to view this content.
    Last edited by cableghost; 01-22-2024 at 02:00 PM.

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

    Re: Check multiple conditions for proper value

    Yes, I did think of suggesting that way, depending on how you answered my questions.

    Glad you got it sorted out.

    Pete

+ 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] IF Statements to check multiple conditions
    By Iamtrying in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2019, 09:12 PM
  2. [SOLVED] Excel Formula to check if multiple conditions are met
    By Drscott21 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-04-2019, 08:11 AM
  3. [SOLVED] Check multiple conditions across all columns
    By shreeja178 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2014, 05:09 AM
  4. Check for Multiple Conditions, Random Assign IF True
    By young_workinprogress in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 10:56 AM
  5. [SOLVED] boolean function to check if multiple conditions are met
    By edjohns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 11:26 AM
  6. Check multiple conditions in a Formula
    By ClikClak in forum Excel General
    Replies: 3
    Last Post: 10-06-2010, 07:23 PM
  7. Replies: 5
    Last Post: 07-14-2009, 11:22 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