+ Reply to Thread
Results 1 to 11 of 11

IF formula less than greater than and between 2 value

  1. #1
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    IF formula less than greater than and between 2 value

    Hi Experts,

    I need to help in formula in cell B3, When I changes the amount in Cell B1 then the calculations in B3 needs to calculate according to above formula.

    Criteria:
    if amount is less than B5 = 0
    If amount is between B5 and B6 = (amount - B5) x c2
    If amount is greater than B6 = B6 x c2


    Thanks in advance
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF formula less than greater than and between 2 value

    This gives you what you asked for in post #1:

    =IF(B1<B5,0,IF(AND(B1>=B5,B1<=B6),(B1-B5)*C2,B6*C2))

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: IF formula less than greater than and between 2 value

    Maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    beaten2it

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: IF formula less than greater than and between 2 value

    Hi,

    I'd do it like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: IF formula less than greater than and between 2 value

    63falcondude Thank you very much your given formula is working perfectly, you are awesome.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: IF formula less than greater than and between 2 value

    I'm late.

    =((E1>B5)*(E1-B5)+(E1>B6)*(B5+B6-E1))*C2

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF formula less than greater than and between 2 value

    Happy to help.

    Thanks for the rep!

  8. #8
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: IF formula less than greater than and between 2 value

    welcome 63flcondude, I need some modification in that formula:
    If the amount in cell B1 is greater than 18000 then the calculation that we have i.e
    If amount is greater than B9 = B9 x E2 should cap (not exceed 720)

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: IF formula less than greater than and between 2 value

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    01-23-2016
    Location
    karachi
    MS-Off Ver
    2007
    Posts
    316

    Re: IF formula less than greater than and between 2 value

    Thank you fluff13 you are great.

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,110

    Re: IF formula less than greater than and between 2 value

    You're welcome & thanks for the feedback

+ 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] Macro for If Formula is Greater than Formula AND other conditionals
    By Elieson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2015, 02:19 AM
  2. [SOLVED] find value which is greater than in a range of cells and return the greater value
    By green369 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2015, 02:46 AM
  3. [SOLVED] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  4. Replies: 4
    Last Post: 08-25-2009, 06:39 AM
  5. Greater than formula
    By Tracey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2006, 05:10 PM
  6. Greater than formula!
    By nekteo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-29-2005, 01:15 PM
  7. Replies: 6
    Last Post: 07-01-2005, 07:05 PM

Tags for this Thread

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