+ Reply to Thread
Results 1 to 5 of 5

Thread: Formula for positive values?

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    9

    Formula for positive values?

    How do I get a formula to always return a positive value?
    Lets say cell A1=5 and A2=10. I tried the imsub(a1,a2), but it is returning a -5. I would like to just return the difference (ie. 5).

    Thanks

  2. #2
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Formula for positive values?

    try

    =ABS(A1-A2)

    edvwvw

  3. #3
    Registered User
    Join Date
    08-12-2010
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Formula for positive values?

    thanks...that does work, but i am still having issues. Here is what i am reall trying to accomplish.
    Lets say i have these three cells: a1=10, a2=9, and a3=2. I want cell a4 to return the max difference (as a positive #) between cells a1-a3 (ie. in my example a4=8).

    Any suggestions? Thanks

  4. #4
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Formula for positive values?

    =ABS(MAX(A1-A3,A2-A3))

    edvwvw

  5. #5
    Registered User
    Join Date
    08-12-2010
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Formula for positive values?

    great..thanks!!!!!

+ 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.2.0