+ Reply to Thread
Results 1 to 6 of 6

How to give Numeric Values to text

  1. #1
    Registered User
    Join Date
    01-21-2016
    Location
    Poconos
    MS-Off Ver
    2013
    Posts
    8

    How to give Numeric Values to text

    I am making a schedule and i would like the times i have set to the right of the chart to be worth the total amount of hours (I.e. 10A-6P = 8) I have attached the chart i am working on but cant seem to figure out how to do this. I want the total hours to be automatically counted and listed in the last right column.

    Can anyone else me with this?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: How to give Numeric Values to text

    What will be entered in each day's cell entry? e.g. will D12 say "10A-6P"? Is each row (12 to 34) going to be a different person?

  3. #3
    Registered User
    Join Date
    01-21-2016
    Location
    Poconos
    MS-Off Ver
    2013
    Posts
    8
    Quote Originally Posted by cantosh View Post
    What will be entered in each day's cell entry? e.g. will D12 say "10A-6P"? Is each row (12 to 34) going to be a different person?
    I would like each day to have a scheduled time which you can see yo the right of the spreadsheet. Those times I would like to have a valued based on the time. So 8a-6p is 8 hours I would like the time to show but in the total hours column I want that to add it up based on the scheduled times

  4. #4
    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,946

    Re: How to give Numeric Values to text

    If you use real hours, instead of text, you can simply subtract 1 from the other?
    N
    O
    P
    19
    6:00 AM
    6:00 PM
    12:00
    20
    8:00 AM
    6:00 PM
    10:00
    21
    9:00 AM
    7:00 PM
    10:00
    22
    10:00 AM
    6:00 PM
    8:00
    23
    10:00 AM
    10:00 PM
    12:00
    24
    6:00 PM
    10:00 PM
    4:00

    P19=O19-N19
    copied down and formatted as Time 13:30
    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

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: How to give Numeric Values to text

    FDibbons is right about restructuring things. Your best bet is to adjust things so that you're entering numbers. However, if you really need to enter the shifts into columns D through J as they're currently constituted, then you should at least enter the number of hours for each shift in N19:N24, which would then allow you to do a straightforward sum of VLOOKUPs using the following formula in K12 (then fill down):

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-10-2014
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: How to give Numeric Values to text

    You can set up Helper columns off to the right with the formulas that change text to values and do the math.

    Not elegant but, it works.

    See the attached workbook
    Attached Files Attached Files

+ 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. Is it possible to give cell text a numeric value?
    By billybob013 in forum Excel General
    Replies: 12
    Last Post: 04-14-2015, 04:45 PM
  2. Convert Text Values to Specific Numeric Values
    By lmp101010 in forum Excel General
    Replies: 5
    Last Post: 09-06-2014, 04:00 PM
  3. Replies: 7
    Last Post: 10-10-2013, 09:13 AM
  4. [SOLVED] vba macros to force user to input numeric values for numeric values with hyphen
    By Abdur_rahman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-28-2013, 01:05 PM
  5. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  6. Assigning numeric values to text
    By Petmbogo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2012, 07:31 AM
  7. Give text a numeric value???
    By Dae in forum Excel General
    Replies: 2
    Last Post: 12-20-2010, 11:44 PM
  8. Sum column that contains both numeric and text values
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2010, 09:33 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