+ Reply to Thread
Results 1 to 4 of 4

Nested If Formula

  1. #1
    Registered User
    Join Date
    06-21-2010
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2007
    Posts
    7

    Nested If Formula

    Hello all

    I've got the following nested if statement that runs 4 different lookups from another worksheet which successfully populates a cell with the value I want.

    =IF(AND(G17=1,B3=Detagli!D2),(LOOKUP(H2,agency!C11:C21,agency!O11:O21)),IF(AND(G17=1,B3=Detagli!D3),(LOOKUP(H2,agency!C11:C21,agency!M11:M21)),IF(AND(G17=2,B3=Detagli!D2),(LOOKUP(H2,agency!C35:C51,agency!O35:O51)),IF(AND(G17=2,B3=Detagli!D3),(LOOKUP(H2,agency!C35:C51,agency!M35:M51)),""))))

    The above is in Cell C17 in my worksheet and populates C17 with the correct value. For example 6,200.

    What I need to do is add 10% to that value, if cell H17 contains the number 9 otherwise just leave as it is.

    I've been trying to add the above into another IF statement, but instead of adding 10% (620) to the existing value, just gives me the 10% I need to add.

    Thanks

    Joe
    Last edited by Mitzy_fto; 07-05-2010 at 05:22 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested If Formula

    Probably just add this to the end: *IF(H17=9,1.1,1)

    i.e.

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Nested If Formula

    Hello Joe, try like this

    =IF(H17=9,1.1,1)*IF(AND(G17=1,B3=Detagli!D2),LOOKUP(H2,agency!C11:C21,agency!O11:O21),IF(AND(G17=1,B3=Detagli!D3),LOOKUP(H2,agency!C11:C21,agency!M11:M21),IF(AND(G17=2,B3=Detagli!D2),LOOKUP(H2,agency!C35:C51,agency!O35:O51),IF(AND(G17=2,B3=Detagli!D3),LOOKUP(H2,agency!C35:C51,agency!M35:M51)))))
    Audere est facere

  4. #4
    Registered User
    Join Date
    06-21-2010
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Nested If Formula

    Quote Originally Posted by NBVC View Post
    Probably just add this to the end: *IF(H17=9,1.1,1)

    i.e.

    Please Login or Register  to view this content.
    Cool thanks for that.

    That did the trick.

    Joe

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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