Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default HOW TO CATCH A DIFFERENT/INCONSISTENT FORMULA

I have a list of digits in Columns A, B & C and Column D has a formula like
=SUM(A1:C1) or AVERAGE(A1:C1) copied down.

Now is there any procedure to checkout if any formula is not consistent?

I want to develop a Custom Function like:

=Consistent(D20,D1:D100)

which would return True if:

D20=Sum(A1:C1)
AND
Each cell in the range D1:D1000 consists similar formulas, e.g.
D100=Sum(A100:C100); &
D1000=Sum(A1000:C1000); etc

and False if not same, e.g.

D20=A1+B1+C1 instead of Sum(A1:C1).

Any help in formulating a code for such a function shall be highly obliged.

Thanx in advance.

--

Best Regards,
FARAZ A. QURESHI
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default HOW TO CATCH A DIFFERENT/INCONSISTENT FORMULA

Before you do that, you may want to try looking at the formulas in R1C1
reference style:
Tools|options|General tab

Then look at the formulas
Tools|Options|view tab|check formulas

You may be able to just scroll up and down to find the one that doesn't belong.

If you wanted a UDF, you could look at the .formular1c1 property and compare it
with the one above (except for the top).


FARAZ QURESHI wrote:

I have a list of digits in Columns A, B & C and Column D has a formula like
=SUM(A1:C1) or AVERAGE(A1:C1) copied down.

Now is there any procedure to checkout if any formula is not consistent?

I want to develop a Custom Function like:

=Consistent(D20,D1:D100)

which would return True if:

D20=Sum(A1:C1)
AND
Each cell in the range D1:D1000 consists similar formulas, e.g.
D100=Sum(A100:C100); &
D1000=Sum(A1000:C1000); etc

and False if not same, e.g.

D20=A1+B1+C1 instead of Sum(A1:C1).

Any help in formulating a code for such a function shall be highly obliged.

Thanx in advance.

--

Best Regards,
FARAZ A. QURESHI


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default HOW TO CATCH A DIFFERENT/INCONSISTENT FORMULA

There is an "Inconsistent formula in region" feature built-in to Excel.
Check out the "Error Checking" tab in Tools | Options.
--
Jim Cone
Portland, Oregon USA



"FARAZ QURESHI"

wrote in message
I have a list of digits in Columns A, B & C and Column D has a formula like
=SUM(A1:C1) or AVERAGE(A1:C1) copied down.

Now is there any procedure to checkout if any formula is not consistent?

I want to develop a Custom Function like:

=Consistent(D20,D1:D100)

which would return True if:

D20=Sum(A1:C1)
AND
Each cell in the range D1:D1000 consists similar formulas, e.g.
D100=Sum(A100:C100); &
D1000=Sum(A1000:C1000); etc

and False if not same, e.g.

D20=A1+B1+C1 instead of Sum(A1:C1).

Any help in formulating a code for such a function shall be highly obliged.

Thanx in advance.

--

Best Regards,
FARAZ A. QURESHI
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default HOW TO CATCH A DIFFERENT/INCONSISTENT FORMULA

Thanx Dave,
Just checked out your reply.
Sure found it to be excellent!
Thanx again!
--

Best Regards,
FARAZ A. QURESHI


"Dave Peterson" wrote:

Before you do that, you may want to try looking at the formulas in R1C1
reference style:
Tools|options|General tab

Then look at the formulas
Tools|Options|view tab|check formulas

You may be able to just scroll up and down to find the one that doesn't belong.

If you wanted a UDF, you could look at the .formular1c1 property and compare it
with the one above (except for the top).


FARAZ QURESHI wrote:

I have a list of digits in Columns A, B & C and Column D has a formula like
=SUM(A1:C1) or AVERAGE(A1:C1) copied down.

Now is there any procedure to checkout if any formula is not consistent?

I want to develop a Custom Function like:

=Consistent(D20,D1:D100)

which would return True if:

D20=Sum(A1:C1)
AND
Each cell in the range D1:D1000 consists similar formulas, e.g.
D100=Sum(A100:C100); &
D1000=Sum(A1000:C1000); etc

and False if not same, e.g.

D20=A1+B1+C1 instead of Sum(A1:C1).

Any help in formulating a code for such a function shall be highly obliged.

Thanx in advance.

--

Best Regards,
FARAZ A. QURESHI


--

Dave Peterson

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
Inconsistent Formula? andrew Excel Discussion (Misc queries) 6 February 12th 09 05:04 AM
Strange and inconsistent result from a simple formula Jack Sadie Excel Worksheet Functions 9 May 15th 07 05:39 PM
Formula results inconsistent. CyberTootie Excel Worksheet Functions 3 October 15th 06 03:20 PM
Help! ISO formula for inconsistent monthly dates Yeah Excel Discussion (Misc queries) 11 August 27th 06 03:32 AM
how to catch the second or more cell with vlookup Valley Excel Worksheet Functions 8 April 24th 06 12:02 AM


All times are GMT +1. The time now is 03:33 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"