+ Reply to Thread
Results 1 to 4 of 4

Calculate best Margin

  1. #1
    Registered User
    Join Date
    08-29-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    68

    Calculate best Margin

    Hi

    I would like a formula that returns the Best margin from a range of cells, yet ignores the cell with 100% margin (as the manufacturer does not sell this product)
    Or can i hide the 100% result in my original calculation?

    Any help appreciated
    Thanks
    Attached Files Attached Files

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

    Re: Calculate best Margin

    In K2,

    =LARGE(G2:J2, COUNTIF(G2:J2,1) + 1)

    If in G2 you used

    =IF(B2, 1-B2/$F2, "")

    ... which you could copy across and down, a simple MAX formula would work in K2.
    Last edited by shg; 02-27-2014 at 09:36 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-29-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    68

    Re: Calculate best Margin

    Thats great, thanks SHG

    Would i use this formula to work out the second best? Or is that not how it works?
    =LARGE(G2:J2, COUNTIF(G2:J2,2) + 1)

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

    Re: Calculate best Margin

    =large(g2:j2, countif(g2:j2,1) + 2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need to have Excel calculate profit margin based on variable...stuck!
    By djbeatsent in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-09-2013, 11:21 AM
  2. [SOLVED] Calculate Sales price with Net Margin 10% Goal, if Cost goes up or down
    By Bitto in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-22-2013, 07:26 AM
  3. Replies: 2
    Last Post: 01-09-2010, 04:06 AM
  4. Textbox margin overwritten by auto-margin
    By Jess in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2005, 07:09 PM
  5. Need Formula or Function to calculate Margin (reverse of Percent a
    By Ken in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2005, 06:06 AM

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