+ Reply to Thread
Results 1 to 3 of 3

Calculating a percentage with Absolute Value only when negative

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Calculating a percentage with Absolute Value only when negative

    Please see the attached spreadsheet.

    I am trying to setup a rule that will take the Absolute value of G4:G27 only when its negative and then divide that by E4 if it is. If the value of G4:G27 is already positive, I need the corresponding cell value to equal E4/F4, and so on.

    Hopefully I am makings sense. Thanks,Specialty Veg Materials Physical Inventory - Brawley Blank.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Calculating a percentage with Absolute Value only when negative

    How about a simple IF statement

    =IF(G4>=0, E4/F4, ABS(G4)/E4)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    Scottsdale
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Calculating a percentage with Absolute Value only when negative

    Solved, thanks for that

+ 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. Replies: 5
    Last Post: 11-14-2015, 01:12 AM
  2. [SOLVED] Min/Max of absolute value, show negative if negative
    By vizzkid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2013, 05:31 PM
  3. Replies: 4
    Last Post: 01-03-2012, 06:05 PM
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. [SOLVED] how can I find out a total as a percentage using absolute cell
    By JoJo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 09:55 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