+ Reply to Thread
Results 1 to 8 of 8

under what conditions is an excel cell considered populated.......

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Round Rock, Tx
    MS-Off Ver
    Excel 2010
    Posts
    25

    under what conditions is an excel cell considered populated.......

    .....is it only when the cell contains data , or is it "populated" if it is formatted but otherwise blank?

    John

  2. #2
    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: under what conditions is an excel cell considered populated.......

    I can't actually see any definition of 'populated' in this context on Microsoft's web pages.

    Personally I only regard a cell as populated if it contains some character. I don't consider mere formatting as 'populating' a cell.

    However you could invoke the Humpty Dumpty doctrine from Through the Looking-Glass...

    "When I use a word," Humpty Dumpty said, in rather a scornful tone, "it means just what I choose it to mean—neither more nor less."
    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.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,526

    Re: under what conditions is an excel cell considered populated.......

    Maybe you should consider the concept of "clean and/or dirty".

    If a cell has had no changes made to it, it is "clean" ... and this can be extended to the worksheet and, in turn, the workbook. If you enter data or format the cell, it becomes "dirty".

    Consequently, when you then close the workbook, if any cell is marked as dirty, you will be asked if you want to save the workbook.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Round Rock, Tx
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: under what conditions is an excel cell considered populated.......

    More details:

    Using the following code:

    Please Login or Register  to view this content.
    I get a count of 27573. then i delete 5 cells and still get 27573

    I get the feeling that the code is counting all the cells in the used range.

    john
    Last edited by john/nyc; 12-01-2013 at 04:06 PM.

  5. #5
    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: under what conditions is an excel cell considered populated.......

    That will always be the case until you save the workbook.

    Saving resets the used range, which I guess is sort of what you'd want since until you've saved the workbook any cells you've made blank need to be available to an UNDO for instance and to that extent you might term them 'still used'.

    Not sure whether that's how MS think about it but that's my take.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: under what conditions is an excel cell considered populated.......

    Hello john/nyc,

    The UsedRange will always include formatted cells.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Registered User
    Join Date
    08-17-2012
    Location
    Round Rock, Tx
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: under what conditions is an excel cell considered populated.......

    Quote Originally Posted by Leith Ross View Post
    Hello john/nyc,

    The UsedRange will always include formatted cells.

    In that case can you help with code that counts only those cells in a sheet that contain data? I guess whats needed is some vba equivalent to CountA

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,526

    Re: under what conditions is an excel cell considered populated.......

    Maybe:

    Please Login or Register  to view this content.

    Regards, TMS

+ 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. Excel Formula: If Cell Is Populated
    By leviathan86 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2013, 10:09 AM
  2. [SOLVED] Excel:: Move Cursor to the end of an already populated cell
    By lss-bku in forum Excel General
    Replies: 3
    Last Post: 08-24-2012, 06:12 PM
  3. Replies: 11
    Last Post: 07-10-2010, 07:58 AM
  4. [SOLVED] what is used for cell entries that are considered subsections of .
    By dovie1957 in forum Excel General
    Replies: 3
    Last Post: 03-15-2005, 10:06 PM
  5. [SOLVED] how do I make a cell in Excel required to be populated?
    By Tia in forum Excel General
    Replies: 1
    Last Post: 02-09-2005, 09:06 PM

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