+ Reply to Thread
Results 1 to 5 of 5

Looking up a table then returning a number based on criteria

  1. #1
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Looking up a table then returning a number based on criteria

    Hi all,

    I work with WFM Verint and the inhouse reports are not user friendly with Excel and reconciliation.

    I have attached a document and what I would like to return in cell P8 are the remaining LUK Annual Leave hours for the person identified in cell O8 looking at the table from rows B - L

    I have tried numerous formulas (an example in M8 on the attached FYI) and tried with this.

    Administrators - please advise if I have forgotton anything or you requre the title descriptive changing.

    Thank you for your help

    Mark
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Looking up a table then returning a number based on criteria

    It would help if you had the Employees' names on each row. As you are not using column A, you could put this formula in A9:

    =IF(ISNUMBER(SEARCH("Employee",B9)),TRIM(RIGHT(B9,LEN(B9)-SEARCH("Employee",B9)-8)),A8)

    Copy this down to the bottom of your data.

    Then you can use this formula in cell P8:

    =SUMIFS(K:K,A:A,"*"&TRIM(RIGHT(O8,LEN(O8)-10)),B:B,"LUK Annual Leave")

    and copy that down as required. I don't see much point in having 'Organization: Bet Lynch' listed in column O - surely you just want the employees listed?

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104
    Quote Originally Posted by Pete_UK View Post
    It would help if you had the Employees' names on each row. As you are not using column A, you could put this formula in A9:

    =IF(ISNUMBER(SEARCH("Employee",B9)),TRIM(RIGHT(B9,LEN(B9)-SEARCH("Employee",B9)-8)),A8)

    Copy this down to the bottom of your data.

    Then you can use this formula in cell P8:

    =SUMIFS(K:K,A:A,"*"&TRIM(RIGHT(O8,LEN(O8)-10)),B:B,"LUK Annual Leave")

    and copy that down as required. I don't see much point in having 'Organization: Bet Lynch' listed in column O - surely you just want the employees listed?

    Hope this helps.

    Pete
    Fantastic Pete, thank you

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Looking up a table then returning a number based on criteria

    You're welcome.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-18-2013
    Location
    Barnsley
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    104

    Re: Looking up a table then returning a number based on criteria

    Absolutely I will, I will scan down the other guys who have helped me in the past.

+ 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. Returning data from a table based one matching one or more criteria
    By CathNWN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2016, 01:31 PM
  2. returning table data based on 3 criteria using INDEX and nested IF
    By j.mcavoy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-11-2015, 06:51 AM
  3. [SOLVED] Index, Match, or VLoopup? Returning a table value based on criteria from two drop down's
    By jkwlvsky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2015, 06:40 PM
  4. [SOLVED] Returning Value Based on Two Criteria
    By amvolz in forum Excel General
    Replies: 6
    Last Post: 01-16-2015, 11:45 AM
  5. count number of occurances in table based on criteria
    By BillDoor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2014, 09:57 AM
  6. Returning value based on two criteria
    By ConfusedaboutVBA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2013, 11:41 PM
  7. Returning a value based on certain criteria
    By stait in forum Excel General
    Replies: 5
    Last Post: 12-21-2011, 02:03 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