+ Reply to Thread
Results 1 to 5 of 5

If formula

  1. #1
    Registered User
    Join Date
    01-09-2006
    Location
    Massachusetts
    MS-Off Ver
    Version 2402 Build 16.0.17328.20124)
    Posts
    61

    If formula

    Originally Posted by Janie
    Hi,
    I am trying to write a formula which states =if(N7="N",(o7/100)*15), ((o7/100))*20)
    What I am looking for is: if N is in the column, divide column o by 100 * 15, otherwise divide by o *20.
    Can someone help me out with this? The first half of the formula works, but when I add the other section I lose it.
    Thanks,
    Janie
    Last edited by Janie; 05-26-2010 at 12:45 PM.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: If formula help

    too many brackets

    =if(N7="N",(o7/100)*15,(o7/100)*20)

    and those arnt necessary :
    =if(N7="N",o7*15/100, o7*20/100)
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: If formula

    When you are creating a model you never want to hard code numbers as they might change and it makes it tremendous difficult to trouble shoot.

    To that point I would put the numbers in a blank cell - lets say they are all in row 1. So the formula should read..

    =if(N7="N",o7*a1/b1, o7*c1/b1)

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: If formula

    Looks like this is some kind of tax thing. Maybe

    =IF(N7="N", 15%, 20%) * O7

    As Day suggests, I'd put the 15% and 20% in cells, or named constants:

    =IF(N7="N", taxrate1, taxrate2) * O7
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: If formula

    Given the problems with the if formula you might be getting a little advanced for the OP!

+ 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