+ Reply to Thread
Results 1 to 6 of 6

Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

  1. #1
    Registered User
    Join Date
    06-26-2019
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365
    Posts
    4

    Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    What is up Excelers!

    This is the formula I have:

    =IF(OR('Stage Tracking'!A3>5, 'Stage Tracking'!B3>7, 'Stage Tracking'!C3>14, 'Stage Tracking'!D3>45), 1, 0)

    The issue is A3, B3, C3, and D3 all have "" values from a different IF formula populating those fields. Excel reads this "" as a text value, and it perceives all text values to be greater than numeric values.

    So, all my cells are populating with 1's even if there is no data entered because "" is greater than a number.

    Any suggestions?

    SIGNING OFF,
    The Sly Fox

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    I tried to produce your results with a simple =IF(A4="","",1) in A3 and got the same outcome in the IF/OR statement.
    So instead I put this in for the A3 =(A4="",,1) and it produced a 0 but the output for the IF/OR formula worked ok.
    Maybe seeing your formulas in A3 (and B3 etc if they are different) could help someone develop a formula so your output works in your IF/OR formula.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,840

    Re: Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    As you note, a text string (even the null or empty string "") is always "greater than" a number.

    What is the null string doing here? Are you just using it out of habit? Could you return 0 (or other clearly meaningless but small number) instead? How about an NA() error (that would readily propagate through the dependent formulas)?

    I could see adding an additional IF() condition that tests if there are any numbers in A3:D3 =IF(COUNT(A3:D3)=4,current formula,0). The COUNT() function will ignore the text, so it will wait until all 4 cells have a number before calculating the final result.

    A lot depends on what you are trying to do with the null string and how that fits into the rest of the logic of the spreadsheet.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    06-26-2019
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    Sambo kid

    My formula in A3 is:
    =IF(Portfolio!E3>0, DAYS(TODAY(), Portfolio!E3), "")

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    is it out of the question to change this to zero .... =IF(Portfolio!E3>0, DAYS(TODAY(), Portfolio!E3),0)
    if you don't like zeros showing up you can always use conditional formatting to make them the same font color as the background fill color.

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Excel Reads "" as Greater than a Number Value and it is MESSING UP My Formulas

    Well the obvious other thing to do is to slap additional terms in the Boolean logic that check
    ISNUMBER(E3)
    etc.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] 2 axis scale using INDEX, SUMPRODUCT, and "greater than" and "less than" functions
    By Clooney003 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2017, 01:12 PM
  3. Replies: 12
    Last Post: 01-26-2016, 08:33 PM
  4. [SOLVED] Cell Formula to count time with "Greater Than or Equal to" and "Less Than"
    By chriswhite1982 in forum Excel General
    Replies: 3
    Last Post: 06-16-2013, 12:30 AM
  5. If function is interpreting a "-" as a value greater than a number. Why?
    By yumyumdimsum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-07-2013, 04:00 AM
  6. [SOLVED] %s in XL entered as ".5" OR "50" reads as 50% if format is %age.
    By Abuzzmaster in forum Excel General
    Replies: 10
    Last Post: 07-22-2005, 05:05 AM
  7. [SOLVED] Rows containing "#N/A" are messing with my formulas, please help
    By Sam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-17-2005, 12:06 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