PC Review


Reply
Thread Tools Rate Thread

Compare allowing variance

 
 
Karen53
Guest
Posts: n/a
 
      27th Nov 2007
Hi,

I've been goind around with this and am not sure how to accomplish it. I am
trying to compare two values, but I want to allow a variance of plus or minus
the value in Gross Up I2. The formula used depends on whether G7 begins with
"Pro". What I have only works for a positive number, not a negative. How
would I do this?

=IF(LEFT($G$7,3)="Pro",IF(SUM($G$11-SUM('GL Line Items'!$E$10/'Gross Up'! _
F2*$B$3))>'Gross Up'!I2,"Totals do not match",""),IF(SUM($G$11-'GL Line
Items'! _
$E$10)>'Gross Up'!I2,"Totals do not match",""))
--
Thanks for your help.
Karen53
 
Reply With Quote
 
 
 
 
sebastienm
Guest
Posts: n/a
 
      27th Nov 2007
Hi,
Your formulation would be equivalent to:
Abs( GrossUp - Value) < Variance
i.e.

=IF(LEFT($G$7,3)="Pro"
,IF(ABS( <Total1> - <Value1> ) < <Variance1> , "", "No Match")
,IF(ABS( <Total2> - <Value2> ) < <Variance2> , "", "No Match) )

Just replace <Total1>, <Total2>, <Value1>, <Value2>, <Varaince1>,
<Variance2> with the cell references.
Note: no need of SUM(A1-A2), you can just write A1-A2

--
Regards,
Sébastien
<http://www.ondemandanalysis.com>


"Karen53" wrote:

> Hi,
>
> I've been goind around with this and am not sure how to accomplish it. I am
> trying to compare two values, but I want to allow a variance of plus or minus
> the value in Gross Up I2. The formula used depends on whether G7 begins with
> "Pro". What I have only works for a positive number, not a negative. How
> would I do this?
>
> =IF(LEFT($G$7,3)="Pro",IF(SUM($G$11-SUM('GL Line Items'!$E$10/'Gross Up'! _
> F2*$B$3))>'Gross Up'!I2,"Totals do not match",""),IF(SUM($G$11-'GL Line
> Items'! _
> $E$10)>'Gross Up'!I2,"Totals do not match",""))
> --
> Thanks for your help.
> Karen53

 
Reply With Quote
 
Karen53
Guest
Posts: n/a
 
      27th Nov 2007
Thank you, Sebastien!

--
Thanks for your help.
Karen53


"sebastienm" wrote:

> Hi,
> Your formulation would be equivalent to:
> Abs( GrossUp - Value) < Variance
> i.e.
>
> =IF(LEFT($G$7,3)="Pro"
> ,IF(ABS( <Total1> - <Value1> ) < <Variance1> , "", "No Match")
> ,IF(ABS( <Total2> - <Value2> ) < <Variance2> , "", "No Match) )
>
> Just replace <Total1>, <Total2>, <Value1>, <Value2>, <Varaince1>,
> <Variance2> with the cell references.
> Note: no need of SUM(A1-A2), you can just write A1-A2
>
> --
> Regards,
> Sébastien
> <http://www.ondemandanalysis.com>
>
>
> "Karen53" wrote:
>
> > Hi,
> >
> > I've been goind around with this and am not sure how to accomplish it. I am
> > trying to compare two values, but I want to allow a variance of plus or minus
> > the value in Gross Up I2. The formula used depends on whether G7 begins with
> > "Pro". What I have only works for a positive number, not a negative. How
> > would I do this?
> >
> > =IF(LEFT($G$7,3)="Pro",IF(SUM($G$11-SUM('GL Line Items'!$E$10/'Gross Up'! _
> > F2*$B$3))>'Gross Up'!I2,"Totals do not match",""),IF(SUM($G$11-'GL Line
> > Items'! _
> > $E$10)>'Gross Up'!I2,"Totals do not match",""))
> > --
> > Thanks for your help.
> > Karen53

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
% Variance Abdul Microsoft Excel Worksheet Functions 5 9th Nov 2009 03:12 PM
Pivot Tables - Variance and Variance % =?Utf-8?B?UEpT?= Microsoft Excel Misc 2 18th Jan 2006 03:12 AM
Pivot Tables - Variance and % Variance fields =?Utf-8?B?Q3JhaWdT?= Microsoft Excel Misc 5 6th Jan 2005 12:22 AM
How can I compare a list of strings, allowing positive matching b. =?Utf-8?B?Sm9lIFNvdXRoaW4=?= Microsoft Excel Programming 2 8th Dec 2004 09:45 AM
Variance D. Blinn Microsoft Access Reports 0 8th Sep 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 AM.