+ Reply to Thread
Results 1 to 5 of 5

Nested IF formulas with +/- numbers

  1. #1
    Registered User
    Join Date
    09-30-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    2

    Angry Nested IF formulas with +/- numbers

    Hello
    I need a nested IF formula which I can't seem to figure out.
    Imagine columns A&B with nrs in them, in some cells B has a higher value, in others a lower one.

    I need an IF formula to pick the higher or lower nr based on the difference between them - e.g. if the difference is higher than 50, use the lower number [I've made MIN and MAX columns to base the IF formula on them], if not use the higher nr.

    The problem comes from the nr. difference which can be either positive or negative and I can't figure out how to make the IF formula properly.

    Thank you

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Nested IF formulas with +/- numbers

    Try:

    =IF(ABS(A1-B1)>50,MIN(A1,B1),MAX(A1,B1))

  3. #3
    Registered User
    Join Date
    09-30-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    2

    Re: Nested IF formulas with +/- numbers

    Thanks - but this displays none of the 2 nrs I have
    I need a bit more complex formula: if the difference between the 2 is negative it needs to pick the higher value between the 2, if it's positive it needs to pick the lower one...

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,908

    Re: Nested IF formulas with +/- numbers

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,908

    Re: Nested IF formulas with +/- numbers

    Try

    =IF(A1<B1,IF(ABS(A1-B1)>50,MAX(A1,B1),MIN(A1,B1)),IF(ABS(A1-B1)>50,MIN(A1,B1),MAX(A1,B1)))

+ 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] Nested IF Formula Which Creates Ordinal Numbers From Numbers
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2016, 10:35 PM
  2. [SOLVED] Too many nested formulas
    By kfirecracker in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2012, 04:41 PM
  3. Excel 2007 : Nested Formulas
    By AMC16 in forum Excel General
    Replies: 3
    Last Post: 06-01-2012, 03:36 PM
  4. IF Nested formulas
    By Junior4 in forum Excel General
    Replies: 7
    Last Post: 11-16-2010, 08:52 PM
  5. if nested formulas
    By marleneardon in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 07:30 AM
  6. nested formulas
    By Ctrl-Alt-Del in forum Excel General
    Replies: 3
    Last Post: 01-24-2006, 12:20 PM
  7. [SOLVED] nested formulas
    By dutchtreet in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2005, 05:06 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