+ Reply to Thread
Results 1 to 6 of 6

Calculate ISBLANK with multiple conditions

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

    Calculate ISBLANK with multiple conditions

    In the attached WB... I have a formula in DATA T2 (cited below, from a different spreadsheet) that conditions where a cell is blank or not. I would like to get the blended result of (EXIT 1 + EXIT 2) - (ENTRY + ADD 1 + ADD 2). The reason for the ISBLANK is no need to divide by X if the cell is blank. Anyhow, I just cannot figure out how to add multiple ISBLANK into the formula.

    Please Login or Register  to view this content.
    Last edited by cableghost; 11-11-2021 at 10:53 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,107

    Re: Calculate ISBLANK with multiple conditions

    It's not clear what you want to do.

    The cell references in your post are different than what's in the file.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    "no need to divide by X if the cell is blank"
    What is X? You are dividing by 2.

    The logic in your current formula says:

    If EXIT 1 is blank, then EXIT 2 - ENTRY
    Else (EXIT 1 + EXIT 2)/2 - ENTRY

    No idea how this relates to your requirement of
    (EXIT 1 + EXIT 2) - (ENTRY + ADD 1 + ADD 2)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Calculate ISBLANK with multiple conditions

    Here's possibly a better attempt to explain...

    The EXIT aspect won't change, but I need to (1) discover if ADD 1 and/or ADD 2 is not blank, then (2) possibly add to ENTRY, then (3) divide by that many.

    So

    If EXIT 1 is blank, then EXIT 2 - ENTRY
    Else (EXIT 1 + EXIT 2)/2 - ENTRY

    minus

    ENTRY
    +
    If ADD 1 is not blank
    +/or
    If ADD 2 is not blank

    Then add together and divide by that number
    Else ...

    I cannot simply divide by 3, because it will skew the result I'm looking for. I need to add those that are not blank together, then divide by that many.
    Last edited by cableghost; 11-05-2021 at 07:20 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,107

    Re: Calculate ISBLANK with multiple conditions

    This formula uses structured references instead of cell references, which work better in your table.

    =IF(ISBLANK([@[EXIT 1]]),[@[EXIT 2]]-[@ENTRY],(([@[EXIT 1]]+[@[EXIT 2]])/2)-[@ENTRY])-([@ENTRY] +[@[ADD 1 ENTRY]]+[@[ADD 2 ENTRY]])/(1+ISBLANK([@[ADD 1 ENTRY]])+ISBLANK([@[ADD 2 ENTRY]]))

    If we break it up it's easier to read:
    Please Login or Register  to view this content.
    If you use ISBLANK in an arithmetic expression, it will be 0 if FALSE and 1 if TRUE. So you can use it to determine if you need to divide by 1, 2, or 3 in the last part.
    Attached Files Attached Files

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

    Re: Calculate ISBLANK with multiple conditions

    Thank you. I'll review and respond accordingly.

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

    Re: Calculate ISBLANK with multiple conditions

    I've determined that this is not going to work. I've found another way, but requires additional input.

    Here's the formula I ended up with for the POINTS column...

    Please Login or Register  to view this content.
    Here's the new thread...

    https://www.excelforum.com/excel-for...ml#post5592466
    Last edited by cableghost; 11-11-2021 at 10:52 PM.

+ 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] Calculate TRIMMEAN with multiple conditions
    By cableghost in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2021, 12:07 PM
  2. [SOLVED] Using SUMIF and ISBLANK with multiple conditions
    By antonyx in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 08-16-2021, 05:30 AM
  3. Calculate Median based on multiple conditions
    By ncoday in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2018, 02:33 PM
  4. Calculate Median with multiple conditions
    By Masun in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-23-2017, 05:54 AM
  5. Calculate with multiple conditions
    By sasajo1 in forum Excel General
    Replies: 9
    Last Post: 01-29-2017, 01:49 PM
  6. [SOLVED] Calculate difference if satisfy multiple conditions
    By hparnian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:03 PM
  7. Calculate Values based on Multiple Conditions
    By creativefusion in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-24-2009, 09:27 PM

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