+ Reply to Thread
Results 1 to 5 of 5

I need to count the number of cells that have alphanumeric characters entered

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    Folsom, California
    MS-Off Ver
    2010
    Posts
    10

    I need to count the number of cells that have alphanumeric characters entered

    I have ten cells (two columns of five rows a piece) designated to display bar codes that have been scanned into the spreadsheet. We do not always enter bar codes into all ten cells. I want to place a formula in another cell which will count how many of the cells designated for barcode entry have actually have data. For example, if I have entered a barcode into seven of the cells, I want my "sum/counter" cell to show 7. If I have five cells with a barcode entered, I want the counter to show 5. Depending on how big the document ends up being, I may cram more cells into my two column array, so I'd want my counting formula to be expandable if the array got bigger.

    I have seen the COUNT function, but it doesn't seem to work if the data in a cell has numbers and letters. Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: I need to count the number of cells that have alphanumeric characters entered

    Hi,

    You should be able to use COUNTA, which counts the number of non-empty cells in a range. e.g. =COUNTA(A1:B5)

    If you Name the range then use that in the formula - e.g. =COUNTA(ScannedBarCodes) - then if you expand the range, you can just expand the range referred to by the Named Range. Look up Named Ranges in Excel help (or Google it) for more info on them.

    Hope that helps.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: I need to count the number of cells that have alphanumeric characters entered

    You can use COUNTA() to count all non-blank cells.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-17-2014
    Location
    Folsom, California
    MS-Off Ver
    2010
    Posts
    10

    Re: I need to count the number of cells that have alphanumeric characters entered

    That works. Thanks very much

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: I need to count the number of cells that have alphanumeric characters entered

    You're welcome.

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

+ 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] Count cells where characters 2 to 8 is a number
    By DD1 in forum Excel General
    Replies: 8
    Last Post: 08-16-2015, 09:17 PM
  2. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  3. [SOLVED] Count number of cells with alphanumeric data in a column
    By sfshah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 03:55 PM
  4. Limiting the number of characters entered into a Listview
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-25-2011, 02:10 PM
  5. How to count characters in a number of cells?
    By Staalander in forum Excel General
    Replies: 8
    Last Post: 01-11-2007, 11:36 AM
  6. Count number of characters in merged cells + adjusting rowheight
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2006, 07:00 PM
  7. Restricting the Number of Characters Entered into a Cell
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 03:27 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