+ Reply to Thread
Results 1 to 2 of 2

Wanting to use text string as a numeric value...

  1. #1
    Registered User
    Join Date
    06-10-2016
    Location
    North Carolina
    MS-Off Ver
    2013
    Posts
    1

    Wanting to use text string as a numeric value...

    I am building a spreadsheet designed to keep track of employee hours. One of the things I would like to do is enter the text PTO into the cell, and have it return a numerical value of 8 for the purposes of my total hours.

    Is there a way to have a formula recognize a text entry as a numerical value? I imagine it has to be part of the sum formula, telling it to treat "PTO" as though I had entered 8.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Wanting to use text string as a numeric value...

    =if(A1="PTO", 8 + 100,"")

    **** you cannot directly tell to read a string and tell excel to read as a value...
    you can also have a table and use lookups(vlookup,index/match etc.) that can give you the correct value for each string based on the table you will create.
    =sum(vlookup(),A2,A3)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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] Pull numeric value from text string.
    By Sam Capricci in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2013, 02:03 PM
  2. Replies: 0
    Last Post: 10-10-2012, 10:11 AM
  3. Searching for a numeric value in a text string
    By Uncle heFTy in forum Excel General
    Replies: 2
    Last Post: 08-17-2011, 02:39 AM
  4. validating a text and numeric input string
    By roasty_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2008, 12:41 PM
  5. Numeric value from a text string/numeric identifier?
    By lampshell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2008, 02:21 PM
  6. Deleting all non-numeric characters in a text-string?!
    By Cygnos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2008, 06:50 AM
  7. Assign a numeric value to a text string
    By AndyC8 in forum Excel General
    Replies: 3
    Last Post: 11-29-2006, 09:27 AM
  8. [SOLVED] Find first numeric value in text string
    By Rbp9ad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 09:05 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