+ Reply to Thread
Results 1 to 3 of 3

How are nested IF formulas that include calculations organised?

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    UK
    MS-Off Ver
    Excel 2011
    Posts
    2

    How are nested IF formulas that include calculations organised?

    Hi,
    I am attempting a nested IF formula that includes calculations for Excel Mac 2011. I’ve spent half a day trying multiple methods but can’t seem to nail it. I wonder if someone could let me know if what I’m trying to do is possible and point me in the right direction.

    The formula is in cell K3, MT5 sheet, here is the description…

    If F3=0 then show empty cell, If E3=“L” then G3-H3, otherwise H3-G3, If G3 > 0 then multiply the answer by 10000, If G3 > 10 then multiply the answer by 100, If G3 > 900 then multiply the answer by 10.

    This is my best attempt with the IF function
    =IF(F3=0,"",IF(E3="L",G3-H3,H3-G3),IF(G3>0,*10000),IF(G3>10,*100),IF(G3>900,*10))

    Here’s my attempt using IF with AND (with the initial blank cell part removed):
    =IF(AND(G3>0,E3=“L”),G3-H3*10000,H3-G3*10000),IF(AND(G3>10,E3=“L”),G3-H3*100,H3-G3*100),IF(AND(G3>900,E3=“L”),G3-H3*10,H3-G3*10)
    Unfortunately this results in a #NAME error.

    I’d be most grateful if someone could help me out with this one.

    Regards
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How are nested IF formulas that include calculations organised?

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    UK
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: How are nested IF formulas that include calculations organised?

    Awesome, that works superbly. I'll enjoy figuring out how you did it. Thanks

+ 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. Nested what if formula with some calculations
    By raperm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2013, 02:44 PM
  2. Nested formula with some greaterthan/less than calculations
    By raperm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2013, 03:51 PM
  3. how to include name range in nested if formula
    By shilpaduneja in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2013, 08:35 AM
  4. Excel 2007 : Pivot to include nested columns
    By pvt2do in forum Excel General
    Replies: 3
    Last Post: 12-22-2009, 02:11 AM
  5. Bonus calculations using Nested IF's
    By Irfan123 in forum Excel General
    Replies: 3
    Last Post: 07-17-2008, 05: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