+ Reply to Thread
Results 1 to 7 of 7

Cleaning Cells

  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,952

    Cleaning Cells

    I have access to a pivot table. From the pivot I can get to the source data. In the source data, I'm trying to use a formula to put a value in a cell. The current form of the formula I'm trying to use is this:
    Please Login or Register  to view this content.
    The purpose of the formula is to check if AL, AH and AI are blank, and if so, put "DE" in the formula cell. The problem is there's "Something" in those cells. My formula WAS
    Please Login or Register  to view this content.
    . That formual doesn't work unless I click into AL, AH, and AI and hit delete. I've already removed any blank spaces in the cell, and I did LEN to assure myself there were no characters in the cell. Still the formula didn't work unless I deleted the contents of each empty cell.

    So, I tried with TRIM, and with CLEAN. With those two, the formula wouldn't work, period. So, something is in those cells, and I need to know how to clean them out, because there are about 40K lines to clean.

    Any help is greatly appreciated.

    Thanks,
    John
    Last edited by jomili; 06-07-2011 at 08:19 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cleaning Cells

    A likely suspect is double quotes or a null string (a string of 0 length). Instead of ISBLANK, in another cell, try = AL2="" and see if it comes up TRUE.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  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,952

    Re: Cleaning Cells

    Yes, it's true. So, knowing that, how do I clean the cells?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cleaning Cells

    Hmm, you could modify your formulas to replace (ISBLANK(AL2) with AL2=""

    Or, if all your data is formulas or number,
    Select your entire data area, hit F5 > Special > Check "Constants" and "Text"
    That should select all of your "". You can delete all at once. Does that work for you?

    Or, I could call over a VBA person and they probably have a macro for it.

  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,952

    Re: Cleaning Cells

    Hmm, selecting the whole worksheet, hitting F5 > Special > Checking "Constants" and "Text" highlihgts all my data except numbers. I don't think I want to delete that.

    I can't use a macro, because the actions I do are going to be replicated by tons of Budget Analysts (I'm working out the process for them) and I don't want to have to teach them how to create or even run a macro.

    If I replace (ISBLANK(AL2) with AL2="" I'll only be checking for those cells that are empty and have the problem. Not all cells in the columns have the problem. Is there a way to select ONLY those values?

  6. #6
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Cleaning Cells

    Does this formula work for you?

    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

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

    Re: Cleaning Cells

    Colin,

    Thanks. Now I have three formulas that will do the trick. They are:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.

+ 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