+ Reply to Thread
Results 1 to 2 of 2

IF function with conditions

  1. #1
    Registered User
    Join Date
    07-19-2005
    Posts
    26

    IF function with conditions

    I want cell B to increase or decrease by some set amount based on whether or not cell A contains 0 or 1. But if it's decreasing (cell A being 1), I want cell B to have a lower limit. I'm guessing this is an IF struggle that just confuses me, but I'm not sure Any ideas?
    Those of you who think you know everything are annoying to those of us who do!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: IF function with conditions

    If you want a lower limit your can use the MAX function, although it doesn't seem instinctive until you think about it, e.g.:

    =MAX(0,some_variable)

    where some_variable could increase or decrease but the function will never return anything lower than zero (in this example).

    If you want the formula in B1 to act upon the value in B1, you will have to enable iteration to avoid circular reference errors.

    It would help if you attached a sample Excel workbook - see the yellow banner at the top of the screen to find out how to do this.

    Hope this helps.

    Pete

+ 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 multiple conditions are met, perform sum function using index function
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2018, 02:49 PM
  2. IF(AND()) Function with Three Conditions
    By kripat-96 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2017, 01:06 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. [SOLVED] Satisfying 2 conditions using if function or other function
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 12:19 PM
  5. [SOLVED] Two Conditions Function
    By Karthik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2005, 11:05 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