+ Reply to Thread
Results 1 to 10 of 10

% Forumla Problem

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    % Forumla Problem

    Hey Guys

    This is such a stupid question to ask, but i have hit a mental block

    Aim –

    If
    Target Volume = 200
    Received Volume =13
    % = 6.5%
    However as the received volume is below 100% i want it displayed as -6.5%

    If however

    Target Volume = 200
    Received Volume =205
    % = 103%

    I want the formula to say +3%

    Column A (TARGET VOLUME)
    Column B (RECIEVED VOLUME)
    COLUMN C (FORMULA)


    Looking forward to your helo

    Regards
    D

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,682

    Re: % Forumla Problem

    this would be one way...
    =ABS(IF((A2/B2)<1,(A2/B2),1-(A2/B2)))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: % Forumla Problem

    Adjust cell format accordingly for decimal places and use this formula.


    =IF(B2<A2,-B2/A2,(B2-A2)/B2)
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: % Forumla Problem

    =if(a1/b1>1,b1/a1,1-b1/a1)*-1
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: % Forumla Problem

    This could work for you. Enter in C1 and format as Percentage.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: % Forumla Problem

    You may try this also...........

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: % Forumla Problem

    i think it comes down to this cant get any shorter!
    =MIN(B1/A1,1-B1/A1)*-1
    well maybe
    =-MIN(B1/A1,1-B1/A1)
    Last edited by martindwilson; 12-20-2013 at 12:44 PM.

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: % Forumla Problem

    challenge accepted
    2 chrs saved :
    Please Login or Register  to view this content.
    by the way - one coukd say that 3 chrs, because you can write in
    Please Login or Register  to view this content.
    excel will automatically add "=" in front of it.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: % Forumla Problem

    too late id already edited it before you posted

  10. #10
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: % Forumla Problem

    Indeed, you managed on time

    So at least next of equal length:
    Please Login or Register  to view this content.

+ 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. URL Forumla Problem
    By mshirschy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2013, 06:02 PM
  2. Lookup cell with forumla - problem
    By Saturn in forum Excel General
    Replies: 5
    Last Post: 06-15-2011, 08:59 AM
  3. Forumla Problem...Any Excel Wizzes out there?
    By Fabo1238 in forum Excel General
    Replies: 1
    Last Post: 06-04-2009, 02:13 PM
  4. Excel Forumla Problem
    By hollyquinn in forum Excel General
    Replies: 2
    Last Post: 01-15-2009, 03:59 PM
  5. cut/copy and paste forumla problem help
    By zen_zen in forum Excel General
    Replies: 1
    Last Post: 08-12-2006, 05:25 PM

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