+ Reply to Thread
Results 1 to 5 of 5

Calculating values based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    10-18-2019
    Location
    Mumbai
    MS-Off Ver
    OFFICE 2010
    Posts
    427

    Arrow Calculating values based on multiple criteria

    My 4 input ranges are:
    G3:Q3; G17:Q20; AH17 & BA18:BA22

    G3:Q3 is either of 1 or 0 with a condition that maximum number of 1 occurrence will be one.
    G17:Q20 is either 0 or a positive number
    AH17 is either 0 or a positive number and is continuously updating with RTD feed.
    BA18:BA22 is a numeric.

    2 Output ranges are AM16:AU25 & G22:Q22 (formulas are required for these 2 ranges).

    IF I19<I18=TRUE (I18 is the corresponding upper cell).
    IF I17>J17>0=TRUE OR I17>AH17=TRUE
    IF I20>J20>0=TRUE OR I20>AH17=TRUE
    IF I3 (corresponding cell in G3:Q3)=0, then

    IF TRUE; TRUE; TRUE; TRUE OR IF FALSE; TRUE; TRUE; TRUE then AN19 (3rd cell)=I19 else 0
    IF TRUE; TRUE; TRUE; TRUE then AN18=I18 else 0
    IF TRUE; TRUE; TRUE; TRUE then AN24=0 else IF FALSE; FALSE; FALSE; TRUE then I18 else 0
    IF TRUE; TRUE; TRUE; TRUE then AN25=0 else IF FALSE; FALSE; FALSE; TRUE then I19 else 0
    IF TRUE; TRUE; TRUE; TRUE OR IF FALSE; TRUE; TRUE; TRUE then AN16=1 else IF FALSE; FALSE; FALSE; TRUE then 2 else 0

    Formulas required for AN19; AN18; AN24; AN25; AN16

    Similarly, formulas required for AO19:AU19; AO18:AU18; AO24:AU24; AO25:AU25; AO16:AU16

    IF G17:Q17=BA19 AND IF G19:Q19=BA22 AND BA18<0 then corresponding G22:Q22=10
    IF G17:Q17=BA19 AND IF G19:Q19=BA22 AND BA18>0 then corresponding G22:Q22=20
    Else 0

    Formula required for G22:Q22

    Also IF G3:Q3=0 (there is no 1); then both output ranges=0

    I am ready to add helper rows/columns.
    Queries would be appreciated.

    How to accomplish? Thanks in advance.
    Attached Files Attached Files

  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,148

    Re: Calculating values based on multiple criteria

    Which cell(s) for this and the similar conditions:

    "IF I19<I18=TRUE (I18 is the corresponding upper cell)". 3 TRUE conditions in the 3 stated conditions

    And same for:

    "IF TRUE; TRUE; TRUE; TRUE OR IF FALSE; TRUE; TRUE; TRUE then AN19 (3rd cell)=I19 else 0" (4 TRUE/FALSE Condtions)

    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 Contributor
    Join Date
    10-18-2019
    Location
    Mumbai
    MS-Off Ver
    OFFICE 2010
    Posts
    427

    Re: Calculating values based on multiple criteria

    Paragraph #6: IF TRUE; TRUE; TRUE; TRUE OR…… then 2 else 0

    I delete this paragraph #6 & re write it as:
    1. AN19=I19 IF answers of the above 4 criteria’s are (TRUE, TRUE, TRUE, TRUE) respectively OR (FALSE, TRUE, TRUE, TRUE) respectively; else =0
    2. AN18=I18 IF answers of the above 4 criteria’s are (TRUE, TRUE, TRUE, TRUE) respectively else =0
    3. AN24=0 IF answers of the above 4 criteria’s are (TRUE, TRUE, TRUE, TRUE) respectively else =I18 IF answers of the above 4 criteria’s are (FALSE, FALSE, FALSE, TRUE) respectively else =0
    4. AN25=0 IF answers of the above 4 criteria’s are (TRUE, TRUE, TRUE, TRUE) respectively else =I19 IF answers of the above 4 criteria’s are (FALSE, FALSE, FALSE, TRUE) respectively else =0
    5. AN16=1 IF answers of the above 4 criteria’s are (TRUE, TRUE, TRUE, TRUE) respectively OR (FALSE, TRUE, TRUE, TRUE) respectively; else=2 IF answers of the above 4 criteria’s are (FALSE, FALSE, FALSE, TRUE) respectively else =0

    I hope this satisfies.
    Please feel free to raise more queries if required.

  4. #4
    Forum Contributor
    Join Date
    10-18-2019
    Location
    Mumbai
    MS-Off Ver
    OFFICE 2010
    Posts
    427

    Re: Calculating values based on multiple criteria

    The column I (from 5th paragraph) is taking care to fill the results in column AN (6th paragraph)

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

    Re: Calculating values based on multiple criteria

    In filling cell AN19 it seems that the first condition, I19<I18, could be omitted as TRUE and FALSE in that condition both lead to the same output.
    In the second condition does I17>J17>0 mean I17>J17; I17>0 and J17>0?
    Similarly does I20>J20>0 mean I20>J20; I20>0 and J20>0?
    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. Calculating date of next medical based on multiple criteria
    By ARTHUR D in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2021, 11:49 PM
  2. Calculating different value (Bonus) based on multiple criteria
    By Sasa1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2020, 11:14 AM
  3. [SOLVED] Calculating list data based on multiple criteria
    By squigman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2013, 07:35 PM
  4. [SOLVED] Calculating Average Based on Multiple Criteria
    By Scott_88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2012, 07:05 AM
  5. calculating values based on colour criteria
    By yolbut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2012, 09:37 AM
  6. Calculating percentages based on multiple criteria
    By F6Hawk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2007, 11:05 PM

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