+ Reply to Thread
Results 1 to 8 of 8

If statement to bring back great or less and apply rates

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    Birmingham
    MS-Off Ver
    2016
    Posts
    5

    If statement to bring back great or less and apply rates

    Hi, I have a column hours and rates. Under the sum column im trying to do an if statement to bring back the following - If =IF(B2<37.5,"*D2,"2",)if(B2<37.5,"*D2,"1.5",)

    If its less than 37.5 hours x the rate column 1.5 and if its less than 37.5 x the rate column by 2. At the moment it bring back value.

    Please could I have help with my formula and guidance to where im going wrong?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: If statement to bring back great or less and apply rates

    Do you mean this?

    =D2*IF(B2<37.5,1.5,2)

    guidance to where im going wrong?
    I couldn't get my head around what you thought your formula was doing, but if you put numbers into inverted commas, they are text, not numbers.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-19-2022
    Location
    Birmingham
    MS-Off Ver
    2016
    Posts
    5

    Re: If statement to bring back great or less and apply rates

    What I need to cell E2 to lookup the hours and if its less than 37.5 x rate by 2 if its more than 37.5 x rate by 1.5.

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

    Re: If statement to bring back great or less and apply rates

    you seem to be saying the same thing twice but with different outcomes?

    If its less than 37.5 hours x the rate column 1.5 and if its less than 37.5 x the rate column by 2.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: If statement to bring back great or less and apply rates

    Quote Originally Posted by alexc2022 View Post
    What I need to cell E2 to lookup the hours and if its less than 37.5 x rate by 2 if its more than 37.5 x rate by 1.5.
    Did you try my suggestion?

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

    Re: If statement to bring back great or less and apply rates

    I think this is what you want... =IF(B2="","",IF(B2<37.5,D2*2,D2*1.5))

    edit: BTW, putting numbers in quotes makes them into text and then you cannot use them to multiply by without making changes to other formulas.

  7. #7
    Registered User
    Join Date
    01-19-2022
    Location
    Birmingham
    MS-Off Ver
    2016
    Posts
    5

    Re: If statement to bring back great or less and apply rates

    Thank you all for the advice this has now worked

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: If statement to bring back great or less and apply rates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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: 3
    Last Post: 06-22-2020, 02:25 PM
  2. Apply Slab Rates????
    By ndmalam in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-10-2020, 09:37 AM
  3. vlookup - bring back blank cell when it brings back 0 and N/A
    By julee.stein in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2018, 11:12 AM
  4. [SOLVED] How to Bring back the Value of the top of the column
    By Diego Santos in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-20-2015, 10:33 AM
  5. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  6. [SOLVED] Stop Vlookup bringing back 0's or #REF! and bring back blanks instead
    By Carling73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2013, 04:43 PM
  7. Working out a price when different rates apply?
    By jason7579 in forum Excel General
    Replies: 3
    Last Post: 02-04-2010, 07:01 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