+ Reply to Thread
Results 1 to 5 of 5

Can I make Excel assign a numerical value to a cell with text?

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Can I make Excel assign a numerical value to a cell with text?

    I know this question has been asked in slightly different formats. But I didn't find an answer to my particular situation. I'm using Excel as a reservation form for an RV Park. I enter the guests last names in the cells corresponding to the applicable day (columns) and space number (rows) they're in, per month (sheet). I'd like to be able to do a basic calculation of occupancy. Can I get Excel (2010 version) to assign a 1 to any cell with letters? I don't want it to assign a 1 to any cell with numbers already in it (date or space numbers). Then I could have it do an auto sum by row (space numbers) and have a total occupancy rate for each month? Ex: if there was a name in seven cells for the row for space #9, Excel would total 7 for that month, meaning space #9 was occupied 7 out of 30 days. Clear as mud?

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Can I make Excel assign a numerical value to a cell with text?

    =SUMPRODUCT(NOT(ISNUMBER(A1:AE50))*1) would count a 1 for every cell not containing numbers

    Maybe even use

    =SUMPRODUCT(NOT(ISNUMBER(A1:AE50))*(A1:AE50<>"")*1) to skip the blanks as well
    Last edited by daffodil11; 05-23-2014 at 06:11 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Re: Can I make Excel assign a numerical value to a cell with text?

    Would it count blank cells in that row?

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Can I make Excel assign a numerical value to a cell with text?

    Good to see I was on the right track with that quick edit.

  5. #5
    Registered User
    Join Date
    05-23-2014
    Posts
    3

    Re: Can I make Excel assign a numerical value to a cell with text?

    Thanks much!

+ 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] How to assign numerical values to text?
    By Kastalarial in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-09-2013, 04:55 AM
  2. Assign Numerical Value to a Text String
    By getblended in forum Excel General
    Replies: 3
    Last Post: 01-12-2012, 11:40 AM
  3. Assign text to a numerical range.
    By jaspercoGIS in forum Excel General
    Replies: 2
    Last Post: 01-18-2008, 03:46 PM
  4. ASSIGN NUMERICAL VALUES FOR LETTERS in EXCEL 2003
    By legman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-13-2006, 11:15 PM
  5. Assign numerical values to text codes
    By Bridget in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2005, 07:06 PM

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