+ Reply to Thread
Results 1 to 3 of 3

If then else statement yielding blanks

  1. #1
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Excel for Mac Version 16.52
    Posts
    13

    Question If then else statement yielding blanks

    Hi all,

    I am trying to use an if then else statement but am getting a blank (" ") return on some cells even though it should be 0 when it doesn't match any criteria. I have attached the workbook. The column highlighted in yellow is where I am trying to do the calculations and the column in orange are my desired results. Thanks in advance for any assistance you might be able to offer me!

    Best wishes,
    uni student
    Attached Files Attached Files
    Last edited by exceluniprojecthelp; 08-22-2021 at 11:35 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    20,657

    Re: If then else statement yielding blanks

    Try

    =IF(OR(E9="r",F9="r"),0,IF(ISNUMBER(J9),J9,IF(Summary!$B$1="T",G9,IF(Summary!$B$1="H",H9,0))))

  3. #3
    Registered User
    Join Date
    08-21-2021
    Location
    Brisbane, Australia
    MS-Off Ver
    Microsoft Excel for Mac Version 16.52
    Posts
    13

    Re: If then else statement yielding blanks

    Quote Originally Posted by JohnTopley View Post
    Try

    =IF(OR(E9="r",F9="r"),0,IF(ISNUMBER(J9),J9,IF(Summary!$B$1="T",G9,IF(Summary!$B$1="H",H9,0))))
    Thank you so much JohnTopley - that worked!

+ 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 Statement with blanks and do nothing
    By excelingtoexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2020, 03:13 PM
  2. If statement with BLANKS
    By itshere in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2017, 12:08 PM
  3. IF Statement - Accounting for blanks
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2017, 12:58 AM
  4. [SOLVED] Ignore Blanks in IF Statement
    By ShakJames in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2016, 07:56 AM
  5. [SOLVED] IF Statement to check for blanks first
    By drewberts in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2014, 05:06 PM
  6. [SOLVED] If statement with blanks
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 07:14 PM
  7. Replace 0s with blanks - IF statement
    By thomas.szwed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2007, 11:59 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