+ Reply to Thread
Results 1 to 5 of 5

Formula, Help needed

  1. #1
    Registered User
    Join Date
    05-22-2005
    Posts
    38

    Formula, Help needed

    --------------------------------------------------------------------------------

    I am trying to set up a formula that will add up multiple cells and then create an average. I have no trouble with this atall .... but after generating the average i wanted it to go on and display 'yes' if between -6 and 6. and 'no' if it is out of this region.
    This was my first attempt but this always displays 'Yes' as its always either above -6 or below 6.
    =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)>=(0-6)),"Yes","No")

    Can anyone offer any help?

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    This is what I would do:
    =IF(ABS(AVERAGE(C3,E3))<=6,"Yes","No")

    Hope it helped
    Ola Sandström


    Note:
    ABS(negative number)-->positive number
    ABS(positive number)-->positive number

  3. #3
    Registered User
    Join Date
    05-22-2005
    Posts
    38
    This formula does not seem to work, always gives no regardless of the value in the cells. is it possible to state between -6 and 6?

  4. #4
    Vasant Nanavati
    Guest

    Re: Formula, Help needed

    =IF(AND((C3+E3)/2>=-6,(C3+E3)/2<=6),"Yes","No")

    --

    Vasant


    "themax16" <[email protected]> wrote in message
    news:[email protected]...
    >
    > --------------------------------------------------------------------------

    ------
    >
    > I am trying to set up a formula that will add up multiple cells and
    > then create an average. I have no trouble with this atall .... but
    > after generating the average i wanted it to go on and display 'yes' if
    > between -6 and 6. and 'no' if it is out of this region.
    > This was my first attempt but this always displays 'Yes' as its always
    > either above -6 or below 6.
    > =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)>=(0-6)),"Yes","No")
    >
    > Can anyone offer any help?
    >
    >
    > --
    > themax16
    > ------------------------------------------------------------------------
    > themax16's Profile:

    http://www.excelforum.com/member.php...o&userid=23622
    > View this thread: http://www.excelforum.com/showthread...hreadid=372948
    >




  5. #5
    Bob Phillips
    Guest

    Re: Formula, Help needed

    other offerings in excel.misc

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "themax16" <[email protected]> wrote in message
    news:[email protected]...
    >
    > --------------------------------------------------------------------------

    ------
    >
    > I am trying to set up a formula that will add up multiple cells and
    > then create an average. I have no trouble with this atall .... but
    > after generating the average i wanted it to go on and display 'yes' if
    > between -6 and 6. and 'no' if it is out of this region.
    > This was my first attempt but this always displays 'Yes' as its always
    > either above -6 or below 6.
    > =IF((((C3+E3)/2)<=6)*OR(((C3+E3)/2)>=(0-6)),"Yes","No")
    >
    > Can anyone offer any help?
    >
    >
    > --
    > themax16
    > ------------------------------------------------------------------------
    > themax16's Profile:

    http://www.excelforum.com/member.php...o&userid=23622
    > View this thread: http://www.excelforum.com/showthread...hreadid=372948
    >




+ 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