+ Reply to Thread
Results 1 to 4 of 4

Excel Formula Variances

  1. #1
    Registered User
    Join Date
    12-01-2006
    Posts
    6

    Excel Formula Variances

    Greetings,
    I have a quick question. If I wanted run a boolean logic test with variance on the test how would I do it? For Instance IF(D18=0,"True","False") but I am willing to allow a variance of + or - 5%. Hence any amount within greater or less than 5% variance would come back true.
    Total=100
    Hence any amount within greater or less than 5%of 100 would come back true. Think in terms of balancing a checkbook. If the amount is within 5% plus or minus it is adaquete.
    Thanks in Advance

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Not sure this is what you want. I'm assuming a total of 100 here. So if you have a SUM in say A4

    =SUM(A1:A3) then in B4

    =IF(AND(A4<=100+100*5%,A4>=100-100*5%),"OK","Not OK")
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    If you are after variance and standard deviation ...
    Take a look at var() and stdev() functions

    HTH
    Carim

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,917
    What's in D18?

    If I were looking at a problem like this, I would probably use a formula like =IF(and(0.95*100<D18,D18<1.05*100),"OK","Not OK") or =IF(AND(0.95<D18/100,D18/100<1.05),"OK","Not OK"). Make it fit your spreadsheet layout.

    If you just want TRUE or FALSE returned, you can drop the IF function and just use =AND(....)

+ 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