+ Reply to Thread
Results 1 to 7 of 7

Word that represents number?

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    England
    MS-Off Ver
    2013
    Posts
    55

    Word that represents number?

    I'm not sure how what the function is called but I'm hoping it exists. Basically;

    When filling out a time sheet all the shifts are one of a few, there are early's (07:30 - 15:30) Late's (15:00 - 23:00) sleeps (just paid for the staying the night, flat rate) and [rarer] Mids (11:00 - 19:00)

    So instead of filling out ' 07:30' and '15:30' on a sheet it would be great if i could just put 'early' or even 'e' and excel would know that this represented the time 07:30 - 15:30 and calculations could be done of it.

    Is this possible?

    cheers

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Word that represents number?

    Yes. You can use VLOOKUP function in calculation.

  3. #3
    Registered User
    Join Date
    09-24-2012
    Location
    England
    MS-Off Ver
    2013
    Posts
    55

    Re: Word that represents number?

    Ah OK, I've never actually used VLOOKUP before, I'll have a search here first.

    Cheers

  4. #4
    Registered User
    Join Date
    09-24-2012
    Location
    England
    MS-Off Ver
    2013
    Posts
    55

    Re: Word that represents number?

    OK i've had a little look at the VLOOKUP function and I'm unsure how to go about using it within this context.

    any tips?

    cheers

    EDIT - I can get it so that i have a column titled 'Shift' within which I can type 'e' 'L' etc (letters representing 'early shift' or 'late shift') and that will input information into the next column with the amount of hours worked.

    So, this is kind of what was set out to do i guess just wondering if there were any tips to make it better
    Last edited by Managerwork; 09-05-2013 at 02:35 PM.

  5. #5
    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,944

    Re: Word that represents number?

    How the vlookup() would work is all dependant on what your data looks like. Take a look atthe attached and see of you can adapt it to your needs.

    I have set it up so that you can enter the data in "2" ways.

    You enter data in column A, in A2, you can enter anything, even letters not in the list.
    In A3 down, I have set up Data Validation, so that you can only enter the codes in the table
    Attached Files Attached Files
    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

  6. #6
    Registered User
    Join Date
    09-24-2012
    Location
    England
    MS-Off Ver
    2013
    Posts
    55

    Thumbs up Re: Word that represents number?

    Cheers all, I thought I should attach what I've been working on now.

    I've used an excel table because the amount of shifts that someone may do in a month can vary (someone may have covered loads) so that as a table it will just bump stuff down.

    The wage calculation (in D22) can also vary depending on the position of the person, different time sheet would have to be created for each position...? I guess...

    The green box that says 'shift patterns' is the array VLOOKUP references, It works, not sure if there's a way to hide this or not?

    Then the formulas working out the cost beneath the table need to be presented a bit better, but that's layout.

    I would like to make all the formulas fixed though, so that people can enter in information but they can't inadvertently delete / change any of the formulas. Not sure how to do this.

    So thanks, any tips much appreciated
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-24-2012
    Location
    England
    MS-Off Ver
    2013
    Posts
    55

    Re: Word that represents number?

    Hey Dibbins! The data validation is really neat

    I don't think I'm following all of the formula though.... :/

    =IF(A3="","",VLOOKUP(A3,$G$2:$I$5,3,0))

    So the 'IF' function there is making it so that a blank entry displays blank fields in the start / end slots...?

    Is the data validation part of the formula or a separate cell formatting?

    thanks

+ 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] Getting a string that represents the date as it's displayed in the cell
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2013, 07:31 AM
  2. [SOLVED] Stacked column chart always represents smaller values than actual
    By RagingPenguin4 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-24-2013, 11:56 AM
  3. Replies: 1
    Last Post: 06-21-2012, 05:19 AM
  4. Evaluating a string that represents a variable name
    By geko63 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2011, 06:40 PM
  5. Passing an argument that represents an object
    By cgi_pro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2006, 06: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