+ Reply to Thread
Results 1 to 5 of 5

Lookup specific text

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lookup specific text

    Hi,

    I am trying to create an hours and pay sheet for an assignment

    Please refer to this image:
    CAPTURE.JPG

    What I am trying to do is create a lookup so that the pay section to the right can relate to any hours worked on the hours section to the left
    For example I am wanting to work out the pay of any hours worked on night shifts. (There is a premium for nights and sundays) In Cell L3 I am trying to create a VLOOKUP to copy the hours across from C6.
    In Cell L3 for the Sunday premium I have forumla =VLOOKUP("sun",B2:C6,2), which seems to be working
    For nights I am trying to use the wildcard function like this =VLOOKUP("*"&ngt&"*",B2:C6,2) so that in can find any cells with 'ngt' in and add up the associated hours. This doesn't work

    can anyone help please?

    Ben

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

    Re: Lookup specific text

    Hi Ben

    Why don,t you upload a sample worksheet with dummy data instead of a picture.

  3. #3
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Lookup specific text

    Hi Ben. It's kind of difficult to use a picture. Can you upload an example workbook minus any data you don't want to be seen?
    -------------
    Tony

  4. #4
    Registered User
    Join Date
    10-16-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Lookup specific text

    I have attached an example.


    Thanks Ben
    Attached Files Attached Files

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Lookup specific text

    benish,

    In cell L3 and copied down to cell L5:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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