+ Reply to Thread
Results 1 to 6 of 6

IF Statement including Match and Index

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    66

    IF Statement including Match and Index

    At the moment I am using the formula =IF(H7="TW",IF(OR(D7="Georgi",D7="Paulius"),7, 6.7),K7/O7) to calculate an employees hourly rate based on either "Time Work" or "Piece Rate"

    But as of tomorrow the minimum wage for those 25 and over will increase to £7.20 and with the help of another poster on here the following statement has been written

    =IF(H7="TW",IF(INDEX(Data!$E$3:$E$100,MATCH(D7,Data!$C$3:$C$100,0))>=25,7.2, 6.7),K7/O7)

    The index and match part are searching for the employees name and age.

    What I need to be able to do now is the incorporate some of the first statement into the second as both Georgi and Paulius are under 25 but they must retain their hourly rate of £7.00 as supposed to £6.70 when they are working on "TW"

    Thanks up front for any help given

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: IF Statement including Match and Index

    Please upload you workbook with expected result.

  3. #3
    Registered User
    Join Date
    12-07-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    66

    Re: IF Statement including Match and Index

    File attached with comments, thank you
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: IF Statement including Match and Index

    You just need to do changes as below in your formula

    =IF(H7="TW",IF(INDEX(Data!$E$3:$E$100,MATCH(D7,Data!$C$3:$C$100,0))>=25,7.2,7),K7/O7)
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    12-07-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    66

    Re: IF Statement including Match and Index

    I think we have cross wires here, what I need is as follows:

    TW = £6.70 unless either of the employees are "Georgi" or "Paulis" then return a value of £7.00, if anyone is over 25 years of age as per the match and index part then return a value of £7.20

    Does that make any sense?

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: IF Statement including Match and Index

    Ok

    Try

    =IF(INDEX(Data!$E$3:$E$100,MATCH(D7,Data!$C$3:$C$100,0))>=25,7.2,IF(OR(D7="Georgi Gorchev",D7="Paulica Voicila"),7,6.7))

+ 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. [SOLVED] Sumif including index,match formulas
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2015, 02:09 AM
  2. Sumif or Index/Match on Multiple Criteria including Dates to Month?
    By patrick1024 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2015, 11:00 PM
  3. [SOLVED] INDEX MATCH based on 5 criteria, including a date range.
    By Folshot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 09:35 PM
  4. [SOLVED] Using Index/Match using criteria including range between two cells
    By fer907 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 04:07 PM
  5. Replies: 4
    Last Post: 12-04-2012, 04:45 PM
  6. [SOLVED] Index and Match for first 3 items found, including cells with same values
    By hazelwouldbe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2012, 09:17 PM
  7. [SOLVED] Use of Imbedded formulas including VLOOKUP, INDEX and MATCH to determine fuel cost.
    By haloperidal in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-22-2012, 03:19 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