+ Reply to Thread
Results 1 to 5 of 5

Conditional logic problem

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Conditional logic problem

    I am having trouble with a conditional logic issue.

    We have a sell price of X and a cost of Y, resulting in a margin of Z. If the margin is greater than 27%, we would like to charge the greater of a 27% margin or $1.00. If the margin is less than 27%, we'd like to keep the margin as is. I've tried using embedded IF statements but must not be doing it right. Does anyone have any thoughts? Thanks

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

    Re: Conditional logic problem

    Try perhaps:


    =MAX(1,B1*(1+C1))

    Where B1 contain cost price, and C1 contains margin (percentage).
    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 Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Conditional logic problem

    Hi There,

    Can you attach an example spreadsheet with some comments on it describing your desired output on the workbook?
    Thanks,

    Bonny Tycoon


  4. #4
    Registered User
    Join Date
    06-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Conditional logic problem

    Bonny,

    Here's the file and my attempts to date. Thanks. The key is I want a positive margin or $1, whichever is greater. Column I is my calculation at the moment, and several attempts are below, as text.
    Attached Files Attached Files

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

    Re: Conditional logic problem

    Perhaps>

    =MAX(B9*1.27,B9+1)

    gives results you have shown in column K.

+ 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