+ Reply to Thread
Results 1 to 4 of 4

If function troubles

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    New Franklin, MO
    MS-Off Ver
    Excel 2007
    Posts
    10

    If function troubles

    "If" is to short to search the forums for and I am horrible at finding things. So I'm sorry if this has been discussed before. (Which I'm sure it has)
    Here's what I need:
    IF C4 says "MF" use this formula =(D4-E4)*0.75
    but IF C4 says "SU" use this formula =(D4-E4)*1.25

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If function troubles

    What if it contain neither?

    =(D4-E4) * IF(C4="MF",0.75,IF(C4="SU",1.25,1))

  3. #3
    Registered User
    Join Date
    08-20-2009
    Location
    New Franklin, MO
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: If function troubles

    Ok I see how it works now! Thank you so much

    If if contains neither then there is no need for the formula at all.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If function troubles

    If you want no result if neither match is made then the final 1 in the formula just needs to be replaced with "" (an empty string).

    Anyway, glad to have helped - if this one's done then please remember to edit your original post to mark this thread as solved. Thanks.

+ 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