+ Reply to Thread
Results 1 to 3 of 3

Trouble with nested if function

  1. #1
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Trouble with nested if function

    Hi
    =IF(OR([@CATEGORY]="INCOME","N/A",IF([@CATEGORY]="PROFIT","N/A",IF([@ITEM]="MILEAGE",MAX(0,MIN(10000-SUM(I$5:I$5),I6,10000))*0.45+(I6-MAX(0,MIN(10000-SUM(I$5:I$5),I6,10000)))*0.36,""))))

    I have the above which doesnt work I have pasted two arguments together, they both work independently as
    =IF([@CATEGORY]="INCOME","N/A",IF([@CATEGORY]="PROFIT","N/A","")

    and
    MAX(0,MIN(10000-SUM(I$5:I$5),I6,10000))*0.45+(I6-MAX(0,MIN(10000-SUM(I$5:I$5),I6,10000)))*0.36,""))))

    I have just added the OR to try and join them, can anyone advise?

    Many thanks

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Trouble with nested if function

    Is [@CATEGORY] a column? If yes, IF does not work properly.

    Try to post a dummy workbook.
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Trouble with nested if function

    Hi
    Yes category is a column,I'm trying to avoid having to have column J (cost of miles)by adding the calculation into column s (costs paid)v2.3 MILEAGE CALC FOR FORUM.xlsx

+ 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] Having trouble using a nested IF with VBA msgbox
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2015, 03:19 PM
  2. [SOLVED] Trouble with Nested If
    By shaught7 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-25-2014, 02:26 PM
  3. [SOLVED] Trouble with nested if/and statements
    By NamiSama in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2014, 11:28 AM
  4. Trouble with Nested IF Function
    By gvishnu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2013, 05:18 PM
  5. Trouble with nested IF formula
    By TheRobsterUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2005, 10:05 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