+ Reply to Thread
Results 1 to 4 of 4

Excel formula to differentiate positive and negative values between cells

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Nitra, Slovakia
    MS-Off Ver
    O365
    Posts
    69

    Excel formula to differentiate positive and negative values between cells

    Hi all,

    I'm trying to figure out how I could make a formula that would work as following:

    Cell A1: 1000
    Cell A2: 1500
    Cell A3: 1400
    Cell A4: 1800

    Now, if A2 is higher than A1, show the difference as +500, but then I want to do the same between A3 and A2, but in this case, show value as -100, and continuing to A4 and A3, that'd show +400, etc.

    so =IF(A2<A1, A2-A1, A1-A2) I guess I would go with IF function but at this very moment my brain is not functioning properly so I know I'm doing something wrong I just cannot figure out what, thanks for any future help
    Last edited by Martines91; 03-29-2019 at 10:03 AM.

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

    Re: Excel formula to differentiate positive and negative values between cells

    I must be missing something because it simply looks to me like you want =A2-A1 in another cell then drag down.
    unless you want the plus sign to show?
    if you want the plus sign to show then use this... =IF(A2-A1>0,"+"&A2-A1,A2-A1)
    though the positive ones will be text, the minus sign should show anyway (and will based on your posted examples).
    Last edited by Sam Capricci; 03-29-2019 at 08:01 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Nitra, Slovakia
    MS-Off Ver
    O365
    Posts
    69

    Re: Excel formula to differentiate positive and negative values between cells

    Oh my god, I'm so stupid, yes, I don't know what came to my mind, but as I said, my brain isn't functioning at 100% today, thanks, at least I can use that formula to show the plus sign

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

    Re: Excel formula to differentiate positive and negative values between cells

    Hey, everyone has bad days, glad I could help.

+ 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. Excel bar chart with negative and positive values
    By excelactuary in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-29-2018, 10:49 AM
  2. [SOLVED] conditional formula for positive/negative values
    By allgeef in forum Excel General
    Replies: 3
    Last Post: 08-02-2017, 02:12 AM
  3. Replies: 5
    Last Post: 01-30-2017, 10:16 AM
  4. [SOLVED] Formula to knock off positive and negative values from the same table
    By rochakmehta90 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-17-2016, 12:45 PM
  5. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  6. [SOLVED] how to turn positive to negative values in excel
    By Paula1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-23-2006, 07:00 PM
  7. Replies: 4
    Last Post: 09-26-2005, 06:05 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