+ Reply to Thread
Results 1 to 12 of 12

Blank Cells being treated as Values by Excel

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Blank Cells being treated as Values by Excel

    Hello,


    After I use the formula =IFERROR(VLOOKUP(A2439,PEIHIERARC_Hierarchy_to_Cost_Ce!K:O,5,FALSE),""), the cells with that appear blank because of the "" , are still not treated as blank cells by excel.

    is their a macro that can identify in a certain cell range which cells are "" and actually clear them to be truly blank?

    thanks,

    Lorenzo

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Blank Cells being treated as Values by Excel

    Have you copied the formula down beyond the last row of data?
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Blank Cells being treated as Values by Excel

    Hi,

    What are you trying to do with the value of that cell?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Blank Cells being treated as Values by Excel

    essentially,

    I want to go to select the range of cells with only values in them. using this range(range("g13"), range("g13").End(xlDown)).Select but as I mentioned previously, it still grabs the cells below the actual values even though they are blank because of the "". For example I want to select just till W22403 but there are cells below that that the above statement grabs because they are blank but not treated as blank.
    wNig Creek C-83-A/94-H-4(Licenced Only) (W16693)
    Misc Drill, Comp, ABandonment Costs (W90099)
    Peoc Calling Lake 100/15-18-073-21 W4 (W05229)
    Peoc Calling Lake 100/11-13-073-21 W4 (W05231)
    Peoc Francis 100/05-34-073-21 W4 (W06393)
    Peoc Francis 100/16-21-073-21 W4 (W06394)
    Peoc Francis 100/12-27-073-21 W4 (W06570)
    Peoc Callw 100/12-10-072-20 W4/03 (W19055)
    Francis 100/11-15-073-21 W4/02 (Not Prod (W19061)
    Peoc Gambler 100/14-26-072-21 W4/03 (W19063)
    Peoc Francis 100/15-18-073-21 W4/02 (W19094)
    Peoc Francis 100/11-15-073-21 W4/03 (W19159)
    Peoc Francis 100/11-15-073-21w4/04 (W22402)
    Peoc Francis 100/16-21-073-21w4/02 (W22403)
    "" (appears empty on excel)
    ""(appears empty on excel)
    ""(appears empty on excel)

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Blank Cells being treated as Values by Excel

    Can't you use another column to determine the last row?

  6. #6
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Blank Cells being treated as Values by Excel

    hmm maybe I didnt articulate this well. essentially I need a macro that deletes cells that appear blank because they contain "" in them. Right now excel doesnt treat them as actually blank. I cant just manually delete them because this is something that has to happen over and over again.

    thanks,

    Jon

  7. #7
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Blank Cells being treated as Values by Excel

    I tried this but it didnt seem to work:
    ange(range("g13"), range("g13").End(xlDown)).Select
    If (cell.Value = "") Then cell.ClearContents

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Blank Cells being treated as Values by Excel

    Can you upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Blank Cells being treated as Values by Excel

    Hi,

    One way would be


    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Blank Cells being treated as Values by Excel

    Attachment 393530You will notice if you go to cell A1 and hit CTRL:Shift:down arrow it will bring you to cell 2231. I just want it to bring me to A66. Excel still doesnt treat any cell below 66 as a true blank. it feels something is in there.

    thanks,

    Jon
    Attached Images Attached Images

  11. #11
    Registered User
    Join Date
    06-13-2013
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Blank Cells being treated as Values by Excel

    Will this I get "cant find cells"

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Blank Cells being treated as Values by Excel

    Hi,

    I still can't see a valid workbook attachment.

+ 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. [SOLVED] How to make a empty "" cell treated as blank
    By twiggywales in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 12:10 PM
  2. treated cells is same columns/rows differently
    By redking in forum Excel General
    Replies: 8
    Last Post: 06-15-2012, 09:50 PM
  3. Blanks cells treated as zeros
    By junada0 in forum Excel General
    Replies: 11
    Last Post: 10-22-2009, 07:40 PM
  4. Replies: 0
    Last Post: 05-31-2006, 04:30 PM
  5. [SOLVED] how to make bmp or jpgs graphics be treated as cell values
    By montracan25 in forum Excel General
    Replies: 2
    Last Post: 07-22-2005, 09:05 PM

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