+ Reply to Thread
Results 1 to 16 of 16

Timesheet IF formula needed and VLOOKUP help

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Timesheet IF formula needed and VLOOKUP help

    I am looking for help with two spreadsheets.
    The first one is a timesheet, where i need a formula that will convert start and finish times to 15 minute intervals, however if for example a member of staff clocks in at 6:04 it needs to show 6:15 (3 minutes late is allowed, anything over is docked) The only issue i have at the minute with this formula is the start times can vary between 5:00 and 8:00 and the formula i wrote isnt long enough.

    Secondly, i need a formula that will look up multiple cells on different tabs and enter the details onto a main invoice sheet at the front.
    this is a work in progress so the spreadsheet can be attached should anybody need to look at what i mean.
    Attached Files Attached Files
    Last edited by gordymoore5; 01-24-2013 at 10:01 AM. Reason: Got told off!!!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I am looking for help with two spreadsheets.

    Isn't everyone? Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: I am looking for help with two spreadsheets.

    Changed it now. Sorry

  4. #4
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Timesheet IF formula needed and VLOOKUP help

    I have now attached one of the spreadsheets to see if anybody can help

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Timesheet IF formula needed and VLOOKUP help

    Hi gordymoore5

    So on the Invoice tab you are looking up a value in A16 on sheet C6493. Where is the table with the lookup value = C6463!
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Timesheet IF formula needed and VLOOKUP help

    i want the first lookup to to look for the tab name, then the job parts

    a better explanation would probably be A16 is the tab name, B16 is row 5 on tha tab, C16 is col a or c or e.

    Or maybe that isnt a better explanation :-)
    Last edited by gordymoore5; 01-24-2013 at 10:34 AM.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Timesheet IF formula needed and VLOOKUP help

    May be of some help if you put in the result you are expecting in E16 from the table marked in red below in your formula.

    =VLOOKUP(A16,'C6493'!$A$6:$B$29,2,FALSE)

  8. #8
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Timesheet IF formula needed and VLOOKUP help

    0.397 cell B22 on tab C6493

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Timesheet IF formula needed and VLOOKUP help

    Hi

    Then your lookup in the invoice sheet will be "Unit Type B5". Format the cell for 3 decimal places.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Timesheet IF formula needed and VLOOKUP help

    Hi,

    If you're wanting to look up values then they must first exist in the object table. It's no good looking up say A5 (C6493) in column A of the C6943 sheet since all you'll find is the row 1 sheet name value.

    You need to ensure that column A of the site sheet contains values like B5 and not 'Unit Type B5. Then you can use an indirect formula like

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

  11. #11
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Timesheet IF formula needed and VLOOKUP help

    So the formula in E16;
    =IFERROR(IF(B16="North",VLOOKUP(A16,'C6493'!$A$6:$B$29,2,FALSE),VLOOKUP(A16,'C6493'!$C$6:$D$34,2,0)),"")

  12. #12
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Timesheet IF formula needed and VLOOKUP help

    THat still isnt working.
    I will try and wxplain step by step what i want it to do and then hopefully somebody can tell me the exact formula i need.

    on the Invoice tab i want to manually type into cell A16 the job code (C6493), into cell B16 the Job description (north approach) and into cell C16 the unit no (unit type B5)
    i then want the weight of that unit to appear in cell E16, the weight being taken from the tables in each corresponding code tab.

    i hope this makes thing a bit simpler

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Timesheet IF formula needed and VLOOKUP help

    Hi,

    Let's take this step by step. When you say that A16 will contain the job code, I think what you really mean is that you want to look to the SHEET that has that reference. That's a subtle but important difference to implying it's a value that exists in a cell. Hence you will need to include an INDIRECT formula as I showed you in my earlier post so that A16 can be INTERPRETED as a sheet name.

    In B16 you have the value NORTH. To be able to use this and find the appropriate column in row 5 of say the C6493 sheet then the first thing you need is either the full description in B16, i.e. NORTH APPROACH TROUGH, or change row 5 so that it just contains the word NORTH, SOUTH and say EASTWEST. Then you'll be able to find the column with a MATCH() formula

    Finally if C16 is to contain the value B5 then you need to have B5 as a value all on its own in Column A of the site sheet.

    So assuming all this is in place the formula will be

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


    I'd also caution against merging cells as you do on row 5 of the site sheets. They are just more trouble than they are worth and in other situations will cause problems. Just use formatting and 'Center across cells' to achieve the same thing without the potential hassle.

  14. #14
    Registered User
    Join Date
    01-24-2013
    Location
    Newark, UK
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Timesheet IF formula needed and VLOOKUP help

    i think this sheet may just be a delete and start again

  15. #15
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Timesheet IF formula needed and VLOOKUP help

    Quote Originally Posted by gordymoore5 View Post
    i think this sheet may just be a delete and start again
    ??????????

  16. #16
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Timesheet IF formula needed and VLOOKUP help

    Hi gordymoore5

    Is the data different then the sample worksheet. If not you will only require 1 table.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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