+ Reply to Thread
Results 1 to 4 of 4

Counting characters of each cell and printing the result to another worksheet

  1. #1
    Registered User
    Join Date
    02-22-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    25

    Counting characters of each cell and printing the result to another worksheet

    hello, I have a program here that deletes a row which contains the values "PLC" and "BFT", but now I have to change it and instead of deleting these rows, I need to be able to Count the characters in these particular rows.

    the problem is, I'm not entirely familiar on how to count the characters in each cell, and then paste the result in another worksheet.

    here is my sample code.

    Please Login or Register  to view this content.
    notice that rows with the BFT and PLC values reach until Column T. I need to count the number of characters in each of those columns from Column A to Column T and then print their result to another worksheet, lets say worksheet2.

    Thank you
    Attached Files Attached Files
    Last edited by crisshinn; 03-13-2011 at 07:10 AM.

  2. #2
    Registered User
    Join Date
    02-22-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Counting characters of each cell and printing the result to another worksheet

    Ah here I got some new development. I can atleast do my loop and counting per cell, but the problem is, I still can't find a way to count transfer and print the results of my len argument to another worksheet. As a result, this new code of mine produces an Endless loop.
    Please Login or Register  to view this content.
    Can anyone help me on how to print the results of my len arguments to another worksheet? Thanks :D

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Counting characters of each cell and printing the result to another worksheet

    hi, do you need sort of that? Run code "ChrCounter", result is on sheet 2
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Counting characters of each cell and printing the result to another worksheet

    Try this
    Please Login or Register  to view this content.

    I'm not to sure from your description of the problem if this is what you are trying to do.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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