+ Reply to Thread
Results 1 to 5 of 5

Blank cell appearing as greater than 1000?

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Blank cell appearing as greater than 1000?

    Good evening, for some reason my formula in cell d3 is saying that the blank cell c3 (containing "") is actually containing a value greater than 1000.

    Frustration has begin to devour me, any ideas on this one folks, thanks very much, file attached
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Blank cell appearing as greater than 1000?

    Try it like this:

    =IF(AND(ISNUMBER(C3),C3>1000),1,0)

    Hope this helps.

    Pete

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Blank cell appearing as greater than 1000?

    Excel does read blank cells as greater than numbers since blank is CHAR(1) and number s start at CHAR(48)

    In C3 change formula to

    =IF(ISERROR(B3*A3),0,B3*A3)

    format cells as General;; if you do not want zero values displayed
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Blank cell appearing as greater than 1000?

    The "" you introduced is considered by XL as a null string, and therefore is text. ( enter = istext(c3) somewhere to confirm)
    As XL evaluates a cell type ( =type() ) before comparing values and that =type(text) returns 2 where type(number) returns 1, you will always see that text is considered larger than any number.

    Don't ask me why, I don't know the reason behind this.

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Blank cell appearing as greater than 1000?

    The reason is for sorting purposes. When sorting ascending, numbers will always be before text. This is consistent with sorting standards.

    From the National Information Standards Organization:
    http://www.niso.org/publications/tr/tr03.pdf

    On numbers (section 3.5):
    3.5 Numerals (0 through 9)

    All headings beginning with a numeral should be arranged ahead of any heading beginning
    with a letter, not as if spelled out (Figure 1). See also Section 6.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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