+ Reply to Thread
Results 1 to 5 of 5

Empty cell contains invisible Object

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,980

    Empty cell contains invisible Object

    I've running a vlookup on two cells added together. The gist is: There's always EITHER a contract, or an HCATS Contract, but never both. So, my lookup is the Contracts column added to the HCATS Contract column. This works well for 99% of my contracts. However, I have some situations like the attached, wherein my contract ID & the empty cell next to it add up to something different than my contract ID, though to all intents and purposes it appears the same. My vlookup won't resolve it. I'd appreciate any help I can get in resolving this one. This is only one example of about 1000 contracts, and I have to refresh my formulas every day, so need to figure this one out.

    I appreciate any help you can provide.

    Thanks,
    John
    Attached Files Attached Files
    Last edited by jomili; 11-18-2011 at 09:44 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Empty cell contains invisible Object

    You are comparing a number and a text string that looks like a number. They will never be equal; all text strings are greater than all numbers.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,980

    Re: Empty cell contains invisible Object

    Why is one a number string and one a text string? This is only one set of cells out of hundreds, and in all of the others I'm doing the same thing, adding the two cells together. In all of the cases the result is usable for my VLookup. So why is this set different?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Empty cell contains invisible Object

    Catenation (what the ampersand operator does) always returns a string. Some functions (like COUNTIF) don't distinguish between numbers and text that looks like numbers; Lookup functions do.

    If the result will always be numeric text, and the result you want is a number, do =--(A1&B1)

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,980

    Re: Empty cell contains invisible Object

    No, it won't always be numeric. But what's driving me crazy is that I have two columns. In column A I have a real number, in column B I have a blank cell. I concatenate the two, and the result is a text number (sometimes) or a real number (sometimes). So there appears to be something in some of the blank cells that changes my real numbers to text numbers.

    I've solved it by multiplying the entire range by 1, which converts my text numbers to real numbers, so it's no longer bothering me, but I sure would like to know the "why" of it.

+ 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