+ Reply to Thread
Results 1 to 4 of 4

Adjust this formula to return blank when a cell is blank?

  1. #1
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Adjust this formula to return blank when a cell is blank?

    Ok this is the formula:

    =IF(OR(AND(B5>E5,B24>E24),AND(E5>B5,E24>B24)),"W","L")

    It does what I need it to do. However, if the cells in the formula are blank, then the formula always returns "L". Which I mean I guess that is what it is designed to do, but is it possible for the formula to do the same thing except if the cells listed in the formula are blank then return a blank cell?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,375

    Re: Adjust this formula to return blank when a cell is blank?

    =IF(OR(AND(B5>E5,B24>E24),AND(E5>B5,E24>B24)),"W",if(B24="","","L")) ??
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Adjust this formula to return blank when a cell is blank?

    Or the other way round...
    =if(B24="","",IF(OR(AND(B5>E5,B24>E24),AND(E5>B5,E24>B24)),"W","L"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    12-29-2012
    Location
    usa
    MS-Off Ver
    Excel 2016
    Posts
    325

    Re: Adjust this formula to return blank when a cell is blank?

    Thanks guys works great

+ 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. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  2. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  3. If formula to return blank if reference cell blank
    By dhooper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 08:56 PM
  4. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  5. Return blank if Cell is blank or contains formula)
    By oo0tommyk0oo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-22-2011, 05:31 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