+ Reply to Thread
Results 1 to 18 of 18

IFS logical tests order problem :(

  1. #1
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Unhappy IFS logical tests order problem :(

    Hello I'm having trouble figuring out what order to put my formula so it works properly.

    I have test scores in cell B2, C2. I want to calculate the difference in percent from test 1 to test 2 or if score one is zero then show the test 2 score in points.

    I believe the possible value combinations for the cells are:

    Blank, Blank
    Score,Blank
    Zero,Score
    Zero,Zero
    Zero,Blank
    Score,Zero
    Score,Score

    I made the following formula to handle the calculation from score one to score 2 but it does not work properly, I suspect there is a problem with the order of the logical tests but I do not know. I also do not know which order will make all of the value combinations calculate properly or if its even possible.

    Also the scores are recorded as percentages.

    =IFS(AND(B2<>"",C2=""),"",AND(B2<>"",C2<>""),(C2-B2)/B2,AND(B2<>"",C2<>""),(C2-B2)/B2,AND(B2=0,C2=""),"",AND(B2=0,C2<>""),OriginalScoreinpoints&" Points",AND(B2=0,C2=0),"0",AND(B2="",C2=""),"")

    If someone more knowledgeable can provide some insight into how to make this work under all the aforementioned conditions it would be greatly appreciated!
    Last edited by lOYvEpi6M87nEoIF0ul8; 09-03-2017 at 03:57 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IFS logical tests order problem :(

    B
    C
    2
    3
    0%
    4
    60%
    5
    0%
    6
    0%
    0%
    7
    0%
    60%
    8
    60%
    9
    60%
    0%
    10
    60%
    80%


    What should be the result in each case?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    2. Blank
    3. There will always be 2 scores, not a possible scenario
    4. Same as 3
    5. Blank
    6. 0%
    7. I would use a cell reference to the original cell where the score was recorded and use the cell with the point total not the cell with the score percentage and add " Points" to the end of it so it shows as x points.
    8. Blank
    9. -100%
    10. 33.33%

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    If I'm reading your formula correctly:
    Please Login or Register  to view this content.
    The IFS function is only available with Office365, so I used standard nested IF statements. I believe the IFS version (untested) would be:
    Please Login or Register  to view this content.
    Last edited by leelnich; 09-03-2017 at 04:23 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  5. #5
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    WOAH. Thank you that works perfectly. Thank you leelnich. I have to figure out how that works.
    shg thank you so much for your help too.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    You're most welcome, thank you for the rep!

  7. #7
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    Wait hold up lol it does not work. Sorry I have a neurological health condition and I am having a lot of trouble concentrating =/.

    Ill upload a sample spreadsheet
    Attached Files Attached Files
    Last edited by lOYvEpi6M87nEoIF0ul8; 09-03-2017 at 04:33 PM.

  8. #8
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    I'm working on the BenchmarkQuickview sheet Cell F2.

    I had =IFS(AND(B4=0,C4<>""),ELA_Bench2_Points!M4&" Points",AND(B4<>"",C4=""),"",AND(B4<>"",C4<>""),(C4-B4)/B4,AND(B4<>"",C4<>""),(C4-B4)/B4,AND(B4=0,C4=""),"",AND(B4=0,C4=0),"0",AND(B4="",C4=""),"")

    But this does not work when both scores are 0.

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    For cell F2, the IF version returns [B2=0,C2=0]="0". Is this incorrect?
    (NOTE: your post #8 formula is actually from row 4, correct?)
    Last edited by leelnich; 09-03-2017 at 04:58 PM.

  10. #10
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    Yes to both questions sorry.

  11. #11
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    So what is the correct return for [B2=0,C2=0]?

  12. #12
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    If both scores are 0 I want the cell to display 0%.

  13. #13
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    This returns the NUMBER 0, rather than the text character "0". Cell formatting will add the "%", yielding 0.00%:
    Please Login or Register  to view this content.
    Last edited by leelnich; 09-03-2017 at 05:24 PM.

  14. #14
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    Verified working under all conditions, thank you so much! I guess I made it far more complicated than it needed to be.

    Final formula was =IF(C2="","",IF(N(B2)>0,(C2-B2)/B2,IF(C2>0,ELA_Bench1_Points!M2&" Points",0)))

  15. #15
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    In your formula what does the N stand for?

    IF(N(B2)>0

  16. #16
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    The Microsoft Excel N function converts a value to a number.

    Got it thanks!

  17. #17
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: IFS logical tests order problem :(

    The N()function returns the numeric value of a cell. If the cell contains TEXT, including "", it returns 0. It allows one test to catch 0 OR "".
    BTW, I noticed your change to the point clause. I was going to ask...
    Anything else?
    Last edited by leelnich; 09-03-2017 at 05:51 PM.

  18. #18
    Registered User
    Join Date
    08-04-2010
    Location
    United States
    MS-Off Ver
    Office 365 for windows
    Posts
    62

    Re: IFS logical tests order problem :(

    Ah, Yeah it should literally add the words " Additional Correct Answers" to the results when it calculates results based on the sheets that utilize correct answers as a measure when 0 is the first value, and it should add " Additional Points where points are used and 0 is the first value. I figured I could change that on my own, thanks again :D

+ 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. IF AND & multiple logical tests
    By jdbock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-09-2015, 10:09 AM
  2. Two logical tests and Vlookup
    By Jonathan9 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-16-2013, 11:33 AM
  3. IF statement with 3 logical tests
    By wallstreetballa in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-09-2013, 11:10 AM
  4. [SOLVED] IF/OR, logical tests
    By aejaz7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2012, 08:55 AM
  5. Multiple IF logical tests
    By plauterborn in forum Excel General
    Replies: 3
    Last Post: 02-14-2012, 04:39 PM
  6. Multiple text Logical tests
    By smanderson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2010, 04:47 PM
  7. IF and many logical tests at same time
    By saurya_s in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-21-2007, 10:45 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