+ Reply to Thread
Results 1 to 7 of 7

IF Formula

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    200

    IF Formula

    need help with the following if formula

    IF K41 = 5% then K42 = X75
    IF K41 = 10% then K42 = Z75
    IF K41 = 20% then K42 = AB75

    (X,Z & AB contain other formulas)

  2. #2
    Registered User
    Join Date
    02-09-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: IF Formula

    You are looking for a nested IF statement I believe. I'm still pretty new at this myself but it basically lets you pile several if statements into one.

    Please Login or Register  to view this content.
    Watch your ()'s they get me everytime.
    Last edited by jvegastn; 03-16-2009 at 03:52 PM.

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: IF Formula

    If those are the only conditions you have then following should work.


    IF(K41=5,X75,IF(K41=10,Z75,IF(K41=15,AB75,"")))

    modytrane

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: IF Formula

    Lots of ways to do this, here's a basic one:

    =IF(K41=0.05,X75,IF(K41=0.1,Z75,IF(K41=0.2,AB75,"NO MATCH")))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF Formula

    If no other values are possible in k41,in k42 enter
    =(IF K41= 5% ,X75,if(k41=10%,z75,ab75))

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,083

    Re: IF Formula

    And if other values are possible this can be solution:

    =IF(C4>20;AB75;IF(C4<5;X75;Z75))
    Never use Merged Cells in Excel

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

    Re: IF Formula

    and just for fun
    =CHOOSE(K41*20,X75,Z75,"not found",AB75)
    Last edited by martindwilson; 03-16-2009 at 07:23 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

+ 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