+ Reply to Thread
Results 1 to 5 of 5

IF Statement Issues

  1. #1
    Registered User
    Join Date
    07-13-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365
    Posts
    2

    Question IF Statement Issues

    Hi Guys,

    Sorry, im a bit of a newby when it comes to IF statements.

    What I am trying to achieve is I want to calculate a drivers pay based on how many deliveries he does with conditions. Initially i thought the IF statement could work but I have 3 constraints and I dont think IF can support 3.

    Let "deliveries" be "D"

    IF D <=40 then D * 1.20
    IF D >=41 but <=50 then D * 1.50
    IF D >=51 then D * 1.80

    So basically if a driver completes up to 40 deliveries, he receives a rate of 1.20, if he then goes over this lowest standard, he goes on to a 1.50 rate, if he exceeds and goes over 50 deliveries, he then receives 1.80 rate per delivery.

    Can this be done?

    Please help :-)

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Statement Issues

    Try

    =LOOKUP(D1,{0,41,51},{1.2,1.5,1.8})*D1

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: IF Statement Issues

    This is a bit messy and can probably be shortened but assuming the data starts in D1, it would be like so:

    =IF(D1<=40,D1*1.2,IF(AND(D1>=41,D1<=50),D1*1.5,IF(D1>=51,D1*1.8,"")))

  4. #4
    Registered User
    Join Date
    07-13-2017
    Location
    London
    MS-Off Ver
    Microsoft Office 365
    Posts
    2

    Re: IF Statement Issues

    Thanks guys, tried the LOOKUP()*D1, seems to work like a charm.

    Thank you!

    Pedro

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Statement Issues

    You're welcome.

+ 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] IF Statement Issues
    By ruddellq in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 04-28-2017, 12:41 PM
  2. [SOLVED] VBA IF statement issues
    By zhead in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-22-2017, 02:35 PM
  3. [SOLVED] Having some issues with using an OR statement.
    By AceForSale in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-23-2016, 03:53 PM
  4. [SOLVED] Having issues with If statement
    By dmory88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-20-2015, 01:19 PM
  5. IF Statement Issues
    By AFWard in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2015, 04:55 AM
  6. [SOLVED] Multiple IF statement issues
    By DPW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 12:29 AM
  7. HELP! - IF Statement Issues
    By MGeorges in forum Excel General
    Replies: 2
    Last Post: 02-09-2005, 07:35 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