+ Reply to Thread
Results 1 to 17 of 17

IF Statement Inquiry

Hybrid View

Opus1 IF Statement Inquiry 03-19-2012, 03:59 PM
NBVC Re: IF Statement Inquiry 03-19-2012, 04:03 PM
Opus1 Re: IF Statement Inquiry 03-19-2012, 04:51 PM
NBVC Re: IF Statement Inquiry 03-19-2012, 04:52 PM
Opus1 Re: IF Statement Inquiry 03-19-2012, 05:44 PM
Opus1 Re: IF Statement Inquiry 03-25-2012, 10:03 PM
NBVC Re: IF Statement Inquiry 03-26-2012, 08:30 AM
Down Under Re: IF Statement Inquiry 03-26-2012, 08:43 AM
Opus1 Re: IF Statement Inquiry 03-26-2012, 11:11 AM
NBVC Re: IF Statement Inquiry 03-26-2012, 01:10 PM
Down Under Re: IF Statement Inquiry 03-26-2012, 11:16 AM
Opus1 Re: IF Statement Inquiry 03-26-2012, 11:38 AM
Down Under Re: IF Statement Inquiry 03-26-2012, 11:44 AM
Opus1 Re: IF Statement Inquiry 03-26-2012, 12:29 PM
darknation144 Re: IF Statement Inquiry 03-29-2012, 04:02 AM
Opus1 Re: IF Statement Inquiry 03-30-2012, 09:48 AM
darknation144 Re: IF Statement Inquiry 03-30-2012, 09:59 AM
  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: IF Statement Inquiry

    Try this:

    =if(max(abs(b2:e2))<=0.02,1,"error")

    As this formula involves an array you have to hit ctrl + shift + enter for it to work.

  2. #2
    Registered User
    Join Date
    03-19-2012
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: IF Statement Inquiry

    Hi NBVC,

    Thanks for your replies. When ever there is a variance in any of the cells B2, C2, D2 or E2, I would like "Error" to show up when the variance is greater then +/- 2 cents. So if the cell has a value of 3 cents or higher or - 3 cents, -4 cents...etc, "Error" is the result. If any one of the cells has a value of -0.02, -0.01, 0, 1 or 2, I need "1" to shows up.

    Also thank you Down Under for your reply. I have tried your formula but got a "#VALUE!" error.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF Statement Inquiry

    Quote Originally Posted by Opus1 View Post
    Hi NBVC,

    Thanks for your replies. When ever there is a variance in any of the cells B2, C2, D2 or E2, I would like "Error" to show up when the variance is greater then +/- 2 cents. So if the cell has a value of 3 cents or higher or - 3 cents, -4 cents...etc, "Error" is the result. If any one of the cells has a value of -0.02, -0.01, 0, 1 or 2, I need "1" to shows up.

    .
    Probably need the OR with operations reversed...

    e.g

    =IF(OR(ABS(B2)>0.02,ABS(C2)>0.02,ABS(D2)>0.02,ABS(E2)>0.02),"ERROR",1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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