+ Reply to Thread
Results 1 to 4 of 4

Combining IF formulas

  1. #1
    Forum Contributor
    Join Date
    02-10-2013
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2010
    Posts
    101

    Combining IF formulas

    Hi, with this post I have attached a spreadsheet, in it I am trying to calculate the profit based on check boxes, if the flat rate delivery charge is checked, then this should be included in calculating the profit instead of the original delivery charge, and if the discount check box is checked, then the sales should be subtracted by the discount. I have so far created an IF formula for profit that includes whether the flat rate delivery charge is included or not, based on whether its check box is checked, but how can I incorporate the discount fee into the formula.

    Combining IF Functions.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Combining IF formulas

    hi nav505. just subtract or add another IF:
    =IF(FLAT_RATE_DELIVERY=FALSE,(SUM(Income)-SUM(expenses)),(SUM(Income)-SUM(E9,E11:E12,K4)))-IF(DISCOUNT=FALSE,0,K7)

    you can also exclude the FALSE if it's not too confusing. the default of the logical test is a TRUE, so by not typing =FALSE or =TRUE, it's saying the latter. you also don't need some brackets. so:
    =IF(FLAT_RATE_DELIVERY,SUM(Income)-SUM(E9,E11:E12,K4),SUM(Income)-SUM(expenses))-IF(DISCOUNT,K7,0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Combining IF formulas

    This is the way I would do it :Combining IF Functions.sol1.xlsx

    Was not sure how the original Income/Expenses were being generated, so i used the cells beside them to show the formula's (high-lighted in orange/dark yellow)

    This makes only the values affected change and keeps the Profit calculation simple

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Forum Contributor
    Join Date
    02-10-2013
    Location
    Wolverhampton
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Combining IF formulas

    ok, thank you for the help, much appreciated

+ 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