Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Compare allowing variance

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Compare allowing variance

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Compare allowing variance

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
% Variance Abdul[_2_] Excel Worksheet Functions 3 November 9th 09 06:25 AM
Variance FreddieP Excel Discussion (Misc queries) 5 September 28th 06 01:41 PM
Pivot Tables - Variance and Variance % PJS Excel Discussion (Misc queries) 2 January 18th 06 03:12 AM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM
How can I compare a list of strings, allowing positive matching b. Joe Southin Excel Programming 2 December 8th 04 09:45 AM


All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"