+ Reply to Thread
Results 1 to 5 of 5

Trim Range of Cells FIRST then Count the number of blank cells

  1. #1
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Trim Range of Cells FIRST then Count the number of blank cells

    Dear all

    I want to be able to remove any invisable spaces in cells within a range (say "A1:C3" and "E1:F3") and THEN count the number of blank cells.

    Is there a simply way of doing this?

    Thanks.

    James

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,690

    Re: Trim Range of Cells FIRST then Count the number of blank cells

    May be simply try like this…

    =SUMPRODUCT(1*(A1:C3=""))+SUMPRODUCT(1*(E1:F3=""))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Trim Range of Cells FIRST then Count the number of blank cells

    Thanks but it does not remove the spaces FIRST and then count the blanks cells

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,690

    Re: Trim Range of Cells FIRST then Count the number of blank cells

    If your ultimate goal is to get the Blank cells count then try the below formula now added a trim function to it.

    =SUMPRODUCT(1*(TRIM(A1:C3)=""))+SUMPRODUCT(1*(TRIM(E1:F3)=""))

  5. #5
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Trim Range of Cells FIRST then Count the number of blank cells

    Very clever indeed. Many thanks!!!!!

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,690

    Re: Trim Range of Cells FIRST then Count the number of blank cells

    Glad it helps you and thanks for the feedback and rep

+ 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. Replies: 2
    Last Post: 07-25-2013, 01:01 PM
  2. count the number of blank cells from the last entry
    By Gerz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2013, 02:18 AM
  3. Count number of non-blank cells in a range
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-15-2011, 10:15 PM
  4. Replies: 1
    Last Post: 01-27-2011, 11:17 PM
  5. Count blank cells within a range not including fully blank rows
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-16-2008, 09:43 AM

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