+ Reply to Thread
Results 1 to 10 of 10

Thread: Lookup the correct value for the designated criteria

  1. #1
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Lookup the correct value for the designated criteria

    Hey,

    I am using excel for entering daily earnings. In that we give OT for the employees according to their earnings. In one sheet i enter all data and in another sheet i need the the value of employee Over Time on particular date for particular employee name.

    I have attached the file please help me. I don't think for VB code.

    Regards
    Charles
    Attached Files Attached Files
    Last edited by ebin charles; 05-31-2010 at 07:01 AM.

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Lookup the correct value for the designated criteria

    Is it the total overtime for each person you are trying to establish?
    or
    Do you need to know the overtime hours for each person every day?

  3. #3
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Lookup the correct value for the designated criteria

    Yes
    I am looking for the value on the particular date for the particular person.

    i need the total overtime for each person for everyday seperately.

    Regards
    Charles

  4. #4
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Lookup the correct value for the designated criteria

    Hi Charles

    I'm not to good with formulae, but here is a possible solution using a little VBa.

    Please give it a try.

    Click on the name you want in the lower table to see the result.

    Repeat this as often as you need.

    Click on A2 (Toggle Filter) to reset.

    If this is any use to you let me know and I will make all the lists dynamic.

    Hope this helps.

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
    Attached Files Attached Files

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Lookup the correct value for the designated criteria

    Based on your sample file and using formulae.

    If we assume you need to permit backwards compatibility (ie no SUMIFS) then I would suggest you use concatenation to avoid need for SUMPRODUCT, eg:

    J3: =$B3&"@"&$C3
    copied down

    Your summary formula is thus a basic SUMIF

    K22: =SUMIF($J$3:$J$18,K$21&"@"&$K$20,$I$3:$I$18)
    copied across

    (you might also want to consider using a Pivot Table....)

  6. #6
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Lookup the correct value for the designated criteria

    Thank you sir.

    But i need separately in date wise as I attached.

    For example if the person name is 719 Ramamoorthty and if worked on
    04.04.2010, his OT Value on the particular date should show in the cell.

    For this if there is no formula, then vb code is ok.

    Please help me

    Regards
    Charles

  7. #7
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,590

    Re: Lookup the correct value for the designated criteria

    Dons' fomula method does exactly that.

    I have added it to the workbook attached to this post.

    I am still a bit lost as to why you would want to do this, when you can use Autofilter, it seems like double work to me.

    Cheers
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Lookup the correct value for the designated criteria

    Thank you so much this what i need.

    I have more than 300 employees. Now i need to modify this for all personnel.
    There after if I get any doubt on this regard, I contact u.

    Thank you once again.

    charles

  9. #9
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Lookup the correct value for the designated criteria

    Sir,

    If There is double date. example employee worked 04.04.10 in two sites

    04.04.10 719 Ramamoorthy
    04.04.10 719 Ramamoorthy

    how can I show this. Any Idea to add these dates OT value in one cell and display?.

    Regards
    Charles

  10. #10
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Lookup the correct value for the designated criteria

    The question isn't very clear - the pre-existing solution already caters for duplicate records given SUMIF aggregates.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0