+ Reply to Thread
Results 1 to 9 of 9

Excel FIND/SEARCH Find Name Hours Worked

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Excel FIND/SEARCH Find Name Hours Worked

    I need a formula or series of formulas. I want excel to find a persons name and then figure out which cell its in then show the hours worked in an adjacent cell. Example I have tabs for Monday through Friday. On the monday tab I want it to search A1:A30 for a persons name. So if A1 equals John Smith then I want it to look at the info in D1 and show that data. Oh and the data is time, to make it more difficult. I am trying to make it figure out a persons time worked for the week. I have tried different FIND/SEARCH formulas but am not getting what I want.

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

    Re: Excel FIND/SEARCH Find Name Hours Worked

    Can you upload example workbook?

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Excel FIND/SEARCH Find Name Hours Worked

    Look at VLOOKUP. It sounds like it should do what you want.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  4. #4
    Registered User
    Join Date
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel FIND/SEARCH Find Name Hours Worked

    The VLOOKUP does exactly what i want. However if the person it searches for is not listed it gives me an N/A. Is there a way to make it say 0? Thank You!

  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,929

    Re: Excel FIND/SEARCH Find Name Hours Worked

    Your profile says 2003, so use this...

    =if(iserror(your-vlookup),0,your-vlookup)

    If you have 2007 or later, please update your profile, and then you can use...

    =iferror(your-vlookup,0)
    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
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel FIND/SEARCH Find Name Hours Worked

    Next Issue, using =LOOKUP("John Smith",'Monday-D'!C7:C37,'Monday-D'!J7:J37) This gives me the correct total it doesn't matter if John Smith is on C9 or C15 etc. But on the next cell/line if I use =LOOKUP("Jane Doe",'Monday-D!C7:C37,'Monday-D'J7:J37) it only gives me the same result as John Smith. It doesn't reference the new name. I don't understand why the formula would do this?

  7. #7
    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,929

    Re: Excel FIND/SEARCH Find Name Hours Worked

    why not just use a regular vlookup?

  8. #8
    Registered User
    Join Date
    01-10-2013
    Location
    cincinnati,oh
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel FIND/SEARCH Find Name Hours Worked

    Ok so I am now trying =VLOOKUP(A5,'Monday-D'!C7:C37,'Monday-D'!J7:J37,FALSE) I keep getting #REF! error. It says Moving or deleting cells caused and invalid cell reference, or function is returning reference error.

  9. #9
    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,929

    Re: Excel FIND/SEARCH Find Name Hours Worked

    vlookup syntax is...

    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    you are using a range ('Monday-D'!J7:J37) when it is asking for a column number

+ 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