+ Reply to Thread
Results 1 to 5 of 5

Converting Non-Number Cell Value to Number For Sum

  1. #1
    Registered User
    Join Date
    06-25-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Mac 2011
    Posts
    7

    Question Converting Non-Number Cell Value to Number For Sum

    I have an Excel sheet with a list of names in different categories. I'd like to select these sections of names (eg. A3:A17, A25:A30, etc) and at the bottom, have a count of how many names there. Is there a way to write, "If there is any value in a cell, count it as one, then add them up"? I have been counting the names and just writing the number at the end, but the value keeps changing and I figured Excel is probably more efficient at counting than me.. thanks!!!
    Last edited by GSomething; 01-16-2012 at 08:27 PM.

  2. #2
    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
    44,447

    Re: Converting Non-Number Cell Value to Number For Sum

    Use COUNTA

    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


  3. #3
    Registered User
    Join Date
    06-25-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Mac 2011
    Posts
    7

    Re: Converting Non-Number Cell Value to Number For Sum

    COUNTA seems to be working for a single range, but not multiple ranges. Is there something I need to amend to the formula to make it add values?

    =COUNTA(C3:C20) produces a positive count result.
    =COUNTA(C3:C20+C25:C30) produces a count result of 1.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Converting Non-Number Cell Value to Number For Sum

    =counta(c3:c20)+counta(c25:c30)
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    06-25-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Mac 2011
    Posts
    7

    Re: Converting Non-Number Cell Value to Number For Sum

    Done and done. Thank you both!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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