+ Reply to Thread
Results 1 to 4 of 4

Comparing numbers, ignoring sign

  1. #1
    Registered User
    Join Date
    04-03-2006
    Posts
    24

    Comparing numbers, ignoring sign

    Hi,

    I have a very long list laid out in the following manner,

    Item 1~~Item 2~~Difference
    3.5~~~~3.5~~~~0
    4.2~~~~3.7~~~~0.5
    -5~~~~-5~~~~~0

    I need to see if the difference is more than 1% of the original value in list 1.
    I can work this out for the positive numbers, but when I copy the formula through cells it doesnt work on negative numbers.

    =(A2038*0.01)>=(C2038)

    Any ideas on how I can ignore the sign of the numbers in order to ensure I get correct results?

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Try this..

    =(ABS(B15*0.01)>=ABS(D15))
    =ABS function ignores the signs of numbers

    Quote Originally Posted by steev_jd
    Hi,

    I have a very long list laid out in the following manner,

    Item 1~~Item 2~~Difference
    3.5~~~~3.5~~~~0
    4.2~~~~3.7~~~~0.5
    -5~~~~-5~~~~~0

    I need to see if the difference is more than 1% of the original value in list 1.
    I can work this out for the positive numbers, but when I copy the formula through cells it doesnt work on negative numbers.

    =(A2038*0.01)>=(C2038)

    Any ideas on how I can ignore the sign of the numbers in order to ensure I get correct results?

    Thanks in advance.

  3. #3
    Bondi
    Guest

    Re: Comparing numbers, ignoring sign

    Hi,

    You could use absolute numbers:

    =(ABS(A2038)*0.01)>=ABS(C2038)

    Regards,
    Bondi


  4. #4
    Niek Otten
    Guest

    Re: Comparing numbers, ignoring sign

    =(A2038*0.01)>=ABS(C2038)

    --
    Kind regards,

    Niek Otten

    "steev_jd" <[email protected]> wrote in message
    news:[email protected]...
    |
    | Hi,
    |
    | I have a very long list laid out in the following manner,
    |
    | Item 1~~Item 2~~Difference
    | 3.5~~~~3.5~~~~0
    | 4.2~~~~3.7~~~~0.5
    | -5~~~~-5~~~~~0
    |
    | I need to see if the difference is more than 1% of the original value
    | in list 1.
    | I can work this out for the positive numbers, but when I copy the
    | formula through cells it doesnt work on negative numbers.
    |
    | =(A2038*0.01)>=(C2038)
    |
    | Any ideas on how I can ignore the sign of the numbers in order to
    | ensure I get correct results?
    |
    | Thanks in advance.
    |
    |
    | --
    | steev_jd
    | ------------------------------------------------------------------------
    | steev_jd's Profile: http://www.excelforum.com/member.php...o&userid=33107
    | View this thread: http://www.excelforum.com/showthread...hreadid=533659
    |



+ 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.6.0 RC 1