+ Reply to Thread
Results 1 to 8 of 8

How to determine difference?

  1. #1
    Fionavar
    Guest

    How to determine difference?

    If I have a cell that is 100 and another cell in which I want to demonstrate
    the difference - how do I set this up? The problem is that at the moment if
    I use a simple a1-b1 I get a negative number if b is larger. What I want is
    it to indicate the change as a +/-. So if A is 100 and B is 105, I would
    like to cell to indicate 5. If B is 95 - then -5 - does this make sense? Any
    help is MUCH appreciated.



  2. #2
    JE McGimpsey
    Guest

    Re: How to determine difference?

    one way:

    =B1-A1

    In article <10v0ggoi91s4c57@corp.supernews.com>,
    "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote:

    > If I have a cell that is 100 and another cell in which I want to demonstrate
    > the difference - how do I set this up? The problem is that at the moment if
    > I use a simple a1-b1 I get a negative number if b is larger. What I want is
    > it to indicate the change as a +/-. So if A is 100 and B is 105, I would
    > like to cell to indicate 5. If B is 95 - then -5 - does this make sense? Any
    > help is MUCH appreciated.


  3. #3
    Fionavar
    Guest

    Re: How to determine difference?

    Yeah I had thought of that, but what if @ the end of the annual cycle, it
    ends up being negative, then I guess it will display skewered. I am
    wondering if this might be an IF clause - but I have no idea how to set it
    up. Though in the end I can use the logical one you have shared - so thanks!

    "JE McGimpsey" <jemcgimpsey@mvps.org> wrote in message
    news:jemcgimpsey-7DA6CF.16475820012005@msnews.microsoft.com...
    > one way:
    >
    > =B1-A1
    >
    > In article <10v0ggoi91s4c57@corp.supernews.com>,
    > "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote:
    >
    >> If I have a cell that is 100 and another cell in which I want to
    >> demonstrate
    >> the difference - how do I set this up? The problem is that at the moment
    >> if
    >> I use a simple a1-b1 I get a negative number if b is larger. What I want
    >> is
    >> it to indicate the change as a +/-. So if A is 100 and B is 105, I would
    >> like to cell to indicate 5. If B is 95 - then -5 - does this make sense?
    >> Any
    >> help is MUCH appreciated.




  4. #4
    RagDyer
    Guest

    Re: How to determine difference?

    Does this work for you?

    =MAX(A1,B1)-MIN(A1,B1)
    --

    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================

    "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    news:10v0j33nrvrtb9a@corp.supernews.com...
    Yeah I had thought of that, but what if @ the end of the annual cycle, it
    ends up being negative, then I guess it will display skewered. I am
    wondering if this might be an IF clause - but I have no idea how to set it
    up. Though in the end I can use the logical one you have shared - so thanks!

    "JE McGimpsey" <jemcgimpsey@mvps.org> wrote in message
    news:jemcgimpsey-7DA6CF.16475820012005@msnews.microsoft.com...
    > one way:
    >
    > =B1-A1
    >
    > In article <10v0ggoi91s4c57@corp.supernews.com>,
    > "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote:
    >
    >> If I have a cell that is 100 and another cell in which I want to
    >> demonstrate
    >> the difference - how do I set this up? The problem is that at the moment
    >> if
    >> I use a simple a1-b1 I get a negative number if b is larger. What I want
    >> is
    >> it to indicate the change as a +/-. So if A is 100 and B is 105, I would
    >> like to cell to indicate 5. If B is 95 - then -5 - does this make sense?
    >> Any
    >> help is MUCH appreciated.




  5. #5
    CarlosAntenna
    Guest

    Re: How to determine difference?

    =ABS(a1-b1)

    Carlos

    "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    news:10v0ggoi91s4c57@corp.supernews.com...
    > If I have a cell that is 100 and another cell in which I want to
    > demonstrate the difference - how do I set this up? The problem is that at
    > the moment if I use a simple a1-b1 I get a negative number if b is larger.
    > What I want is it to indicate the change as a +/-. So if A is 100 and B is
    > 105, I would like to cell to indicate 5. If B is 95 - then -5 - does this
    > make sense? Any help is MUCH appreciated.
    >




  6. #6
    Fionavar
    Guest

    Re: How to determine difference?

    Thanks for the ideas! Both of those only work when the difference is an
    increase - it does not register the negative correctly. Am I explaining this
    clearly? I may just have to manually switch the number when I know it may be
    a negative, unless there is a way to do this?
    "CarlosAntenna" <carlos@antenna.com> wrote in message
    news:%23kZQvQ2$EHA.2572@tk2msftngp13.phx.gbl...
    > =ABS(a1-b1)
    >
    > Carlos
    >
    > "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    > news:10v0ggoi91s4c57@corp.supernews.com...
    >> If I have a cell that is 100 and another cell in which I want to
    >> demonstrate the difference - how do I set this up? The problem is that at
    >> the moment if I use a simple a1-b1 I get a negative number if b is
    >> larger. What I want is it to indicate the change as a +/-. So if A is 100
    >> and B is 105, I would like to cell to indicate 5. If B is 95 - then -5 -
    >> does this make sense? Any help is MUCH appreciated.
    >>

    >
    >




  7. #7
    RW
    Guest

    Re: How to determine difference?

    I think JE Mcgimpsey's answer was correct:
    =B1-A1
    When A1=100 and B1=105, B1-A1= 5;
    when A1=100 and B1=95, B1-A1= -5,
    exactly what you asked for.
    Maybe there's more to your question?

    (By the way, this is my first reply to a newsgroup. I hoped it works.)
    Ray W

    "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    news:10v10asfh6roo24@corp.supernews.com...
    > Thanks for the ideas! Both of those only work when the difference is an
    > increase - it does not register the negative correctly. Am I explaining
    > this clearly? I may just have to manually switch the number when I know it
    > may be a negative, unless there is a way to do this?
    > "CarlosAntenna" <carlos@antenna.com> wrote in message
    > news:%23kZQvQ2$EHA.2572@tk2msftngp13.phx.gbl...
    >> =ABS(a1-b1)
    >>
    >> Carlos
    >>
    >> "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    >> news:10v0ggoi91s4c57@corp.supernews.com...
    >>> If I have a cell that is 100 and another cell in which I want to
    >>> demonstrate the difference - how do I set this up? The problem is that
    >>> at the moment if I use a simple a1-b1 I get a negative number if b is
    >>> larger. What I want is it to indicate the change as a +/-. So if A is
    >>> 100 and B is 105, I would like to cell to indicate 5. If B is 95 -
    >>> then -5 - does this make sense? Any help is MUCH appreciated.
    >>>

    >>
    >>

    >
    >




  8. #8
    Fionavar
    Guest

    Re: How to determine difference?

    Yep seems you are correct RW in pointing out that JE Mcgimpsey was correct!
    Thanks to everyone for helping me!

    "RW" <rw2rw@hotmail.com> wrote in message
    news:ufMD%23k3$EHA.2076@TK2MSFTNGP15.phx.gbl...
    >I think JE Mcgimpsey's answer was correct:
    > =B1-A1
    > When A1=100 and B1=105, B1-A1= 5;
    > when A1=100 and B1=95, B1-A1= -5,
    > exactly what you asked for.
    > Maybe there's more to your question?
    >
    > (By the way, this is my first reply to a newsgroup. I hoped it works.)
    > Ray W
    >
    > "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    > news:10v10asfh6roo24@corp.supernews.com...
    >> Thanks for the ideas! Both of those only work when the difference is an
    >> increase - it does not register the negative correctly. Am I explaining
    >> this clearly? I may just have to manually switch the number when I know
    >> it may be a negative, unless there is a way to do this?
    >> "CarlosAntenna" <carlos@antenna.com> wrote in message
    >> news:%23kZQvQ2$EHA.2572@tk2msftngp13.phx.gbl...
    >>> =ABS(a1-b1)
    >>>
    >>> Carlos
    >>>
    >>> "Fionavar" <fionavarXXX@perlucidus.XXX.net> wrote in message
    >>> news:10v0ggoi91s4c57@corp.supernews.com...
    >>>> If I have a cell that is 100 and another cell in which I want to
    >>>> demonstrate the difference - how do I set this up? The problem is that
    >>>> at the moment if I use a simple a1-b1 I get a negative number if b is
    >>>> larger. What I want is it to indicate the change as a +/-. So if A is
    >>>> 100 and B is 105, I would like to cell to indicate 5. If B is 95 -
    >>>> then -5 - does this make sense? Any help is MUCH appreciated.
    >>>>
    >>>
    >>>

    >>
    >>

    >
    >




+ 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