+ Reply to Thread
Results 1 to 4 of 4

Assign Numerical Value to a Text String

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Beaumont, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Assign Numerical Value to a Text String

    I am using Excel 2010 and trying to SUM a column of text strings to display a total. I have a text string in cells D3:D44 and want to assign a value of (1) any time there is text entered into one of those cells. Then I'd like to SUM cells D3:D44 to display the total. Please see attached.

    Job Man Power.jpg

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Assign Numerical Value to a Text String

    Try COUNTIF:

    e.g =COUNTIF(D3:D44,"<>")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Assign Numerical Value to a Text String

    Hi getblended and welcome to the forum,

    How about trying

    =COUNTA(D3:D44)-COUNT(D3:D44)

    which will count all cells that have stuff in them minus ones that have numbers in them.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Assign Numerical Value to a Text String

    In case D3:D44 is populated by formulas that return an empty string
    try this regular formula:
    Please Login or Register  to view this content.
    Does that help?
    Last edited by Ron Coderre; 01-12-2012 at 11:45 AM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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