Formula Consistency Checking

mikecroom

New Member
Joined
Oct 8, 2010
Messages
47
I have created and am handing over a big spreadsheet.
Every so often I get an issue with formulae being inconsistent between rows:
eg row 1 of a table refers to row 1 of another table and verifies/reformats/recalculates it
then row2 does the same for row 2 etc
BUT - then you can get rogue rows where the rows do not match. Probably finger trouble but very hard to detect.

The Error Checking button does not help.
I was thinking of adding a column which checks the rows refererenced - but I don't even know how to extract the formula in one cell and process in another

Mike
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,689
Can you show a couple of the formulas as an example?

Are you happy to use VBA?
 

mikecroom

New Member
Joined
Oct 8, 2010
Messages
47
Very happy with VBA, long formulae ... anything

Just never addressed this issue before
 

GlennUK

Well-known Member
Joined
Jul 8, 2002
Messages
11,689
If you compare the FormulaR1C1 property of the cells in a column, would they all be consistent? ( I'd have been able to see this myself if you'd given examples of formulas as I suggested )
 

mikecroom

New Member
Joined
Oct 8, 2010
Messages
47
Glenn

Thank you.

Sorry I didn't post the formuale concerned:
1) the ones I was looking at were very trival (and then there are some monsters)
2) I was eating my lunch at the same time

I never use R1C1 "stuff" but this exactly does the trick. So thank you again.

Looks like:

Code:
Function ShowRow(rngCell As Range)
   ShowRow = rngCell.FormulaR1C1
End Function

I just ensure that the whole column has the same R1C1 contents as you suggested.

Now, strictly I could check every column but I think it is an issue with some rows being mis-propagated

Mike
Mike
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,602
Messages
5,838,321
Members
430,538
Latest member
PedroOliveira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top