+ Reply to Thread
Results 1 to 7 of 7

Spaces with imported data causing formula not to work...help!

  1. #1
    Registered User
    Join Date
    04-21-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    27

    Spaces with imported data causing formula not to work...help!

    I have data that is imported in which I have a simple IF formula created...=IF(OR(A2>=2,B2>1,C2>1),"Yes","No"). The data in these cells must have blanks in them that is causing the formula to display Yes when there are no numbers in the referenced cells. Does anyone have a way of getting rid of the blanks?

    I have read about Trim but that does work. I need help. Thanks.

    Josh
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Spaces with imported data causing formula not to work...help!

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-21-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Spaces with imported data causing formula not to work...help!

    That worked rcm! Can you explain a little bit about your formula vs mine? Thanks.

    Josh

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,788

    Re: Spaces with imported data causing formula not to work...help!

    theres a character (zero length) in column C - not a blank - although isblank() returns false and if you clear the column it resolves the issue

    highlight the cells -right click and clear contents works

    i tried cellview to see hidden character but did not find any
    Last edited by etaf; 04-21-2013 at 04:17 PM.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Spaces with imported data causing formula not to work...help!

    Yeah, there's something in those cells.

    I ran this macro on the cells and it removed whatever was in there and the formulas now return the expected results.

    http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    04-21-2013
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Spaces with imported data causing formula not to work...help!

    Thanks etaf!

  7. #7
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Spaces with imported data causing formula not to work...help!

    My formula checks for non-empty cells (a2<>"") before acting on them

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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