+ Reply to Thread
Results 1 to 9 of 9

If and Lookup

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    If and Lookup

    Hello I'm new on here today. Sorry if this has been covered elsewhere too.

    I have a spreadsheet where I want to, I think, use the IF and Vlookup function.

    I have 5 different grades of pay A to E. If I enter any one of these grades in a specific cell I need a formula to read the grade then lookup the appropriate column in a table for that grade. Column A gives the Performance as a percentage 1-120 then column B, C, D, E, and F have the Grade A to E. Hence if I type A as the Grade I want the lookup to give the answer in column B of the table and so forth.

    I need E40 to look at G2 and lookup the value in the table for G40 (the percentage)
    Attached Files Attached Files
    Last edited by fizzwolf; 08-29-2013 at 09:40 AM.

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: If and Lookup

    Attach a sample file to help you

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: If and Lookup

    Agree w/kishoremcp that a sample might be very helpful.
    That said, it almost sounds like you might need an HLOOKUP insteas of VLOOKUP.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If and Lookup

    So in G40 you need a result of 0 ???
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: If and Lookup

    Please try this file.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  6. #6
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: If and Lookup

    Quote Originally Posted by Fotis1991 View Post
    So in G40 you need a result of 0 ???
    G40 will have a number in it (percentage) which is listed on the Pay Lookup Table with the appropriate amount next to it. I need D40 to lookup G40 and give the value for it in the table but read the correct column (INDEX) in the table for the Grade A,B,C,D or E as specified in cell G2.

    Hence an employee' work is timed and whatever percentage (cell G40) they have worked at over the week will give the hourly rate. Each employee then has a variable Grade so e.g. Grade A at 100% would be paid 8.93 per hour whereas if the employee is Grade C they would get 7.755 per hour. I need a formula that firstly looks at the Grade given in cell G2 then reads the corresponding column in the Pay Lookup Table for that Grade and the percentage given (cell G40).

    I'm truly sorry for the confusion

  7. #7
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: If and Lookup

    Quote Originally Posted by ramananhrm View Post
    Please try this file.
    Thank you very much. That is perfect.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If and Lookup

    In fact you don't need the red part of the formula.

    =+INDEX(INDEX('Pay lookup table'!$B$2:$F$101,0,MATCH($G$2,'Pay lookup table'!$B$1:$F$1,0)),MATCH(G40,'Pay lookup table'!$A$2:$A$101,0))

    You can use the formula in this way.

    =INDEX('Pay lookup table'!$B$2:$F$101,MATCH(G40,'Pay lookup table'!$A$2:$A$101,0),MATCH(G2,'Pay lookup table'!$B$1:$F$1,0))

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: If and Lookup

    Or

    =IFERROR(VLOOKUP(G40,'Pay lookup table'!$A$2:$F$101,MATCH(G2,'Pay lookup table'!$A$1:$F$1,0)),"")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  2. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  3. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  4. Replies: 7
    Last Post: 06-19-2011, 12:51 PM
  5. Replies: 5
    Last Post: 02-24-2011, 11:26 AM

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