+ Reply to Thread
Results 1 to 9 of 9

Nested IF formula help

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Fonthill, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    32

    Nested IF formula help

    Need help with this formula....

    =IF(ISBLANK(W5),F5,IF(V5="",((O5*U5)+(P5*T5)+R5),(SUM(O5:Q5)*V5)+R5))

    The ISBLANK part works fine. However, if V5 is blank it is only giving me the result in R5 rather than doing the entire calculation. (O5*U5)+(P5*T5)+R5)

  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: Nested IF formula help

    Doesn't seem to be much wrong with the formula...

    Are you sure V5 is actually "", and doesn't contain a space?

    Try attaching a workbook.
    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
    12-28-2011
    Location
    Fonthill, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Nested IF formula help

    2014_Increase_based_on_2013_data_rev1.xlsx Please see attached file. Highlighted yellow formula that is wrong.

  4. #4
    Registered User
    Join Date
    12-28-2011
    Location
    Fonthill, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Nested IF formula help

    I attached a workbook

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested IF formula help

    s7 isnt blank it has a formula in that resolves to 0 so the last bit is used
    ,(SUM(L7:N7)*S7)+O7) so you just get the value in o7
    you have turned of display 0 in excel options
    Last edited by martindwilson; 02-06-2014 at 05:06 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Nested IF formula help

    S7 isn't blank, it's 0 - you have 'display zeroes' switched off.

    Replace S7="" with S7=0 in your formula.

  7. #7
    Registered User
    Join Date
    12-28-2011
    Location
    Fonthill, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Nested IF formula help

    Thank you!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested IF formula help

    oh and you dont need all those ()
    =IF(ISBLANK(T5),C5,IF(S5="",L5*R5+M5*Q5+O5,SUM(L5:N5)*S5+O5))

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

    Re: Nested IF formula help

    Quote Originally Posted by martindwilson View Post
    oh and you dont need all those ()
    =IF(ISBLANK(T5),C5,IF(S5="",L5*R5+M5*Q5+O5,SUM(L5:N5)*S5+O5))
    That's the beauty of BODMAS!

+ 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. If N Nested formula
    By zaenibop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2012, 09:50 AM
  2. [SOLVED] Need a Nested Formula for ....................
    By gautamacharya in forum Excel General
    Replies: 5
    Last Post: 05-29-2012, 06:01 PM
  3. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  4. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  5. Nested Formula
    By TheLeafs in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2005, 03: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