Andonny
The following array formula will inform you whether your data have been altered:
="ISCHANGED: "&NOT(AND((PREVIOUS)=(CURRENT)))
where PREVIOUS is the name of the columnar range of interest (e.g., the cells containing fruit names) and CURRENT, again the name of the
cells containing fruit names in the possibly altered data.
Remember hitting CONTROL+SHIFT+ENTER to enter the array formula.
Hope this is sufficient.
Aladin
Hi,
Thank you so much for your help. You have made my life a lot easier at work.
With the array formula I managed to get #N/A. I must be applying it wrongly. I placed it into the column where "changed" is. I don't understand the first part of the fomula and therefore I wasn't able to decide what I was doing wrong.
Thanks a million
Andonny
Hi Andonny
Have you looked as Tools>Track changes ? This will give you loads of detail!
Dave
OzGrid Business Applications
Andonny,
The previous formula was intended to globally assess whether any change occurred. That formula works. The way you tried to apply the formula tells me that you want detailed info. So I'm proposing you now a different system of formulas that produce more info.
I'll assume that the previous data occupy the range A2:D8 and consists of the following:
{0,"primary","secondary","conversion";"pear","kg","kg",1.5;"apple","kg","cr",2.1;"apple","kg","cn",3.4;"apple","kg","ea",0.5;"kiwi","ea","kg",4;"kiwi","ea","ea",4.1}, where the first entry (d.i. 0) means blank.
I'll also assume that the current, possibly altered, data occupy the range A12:D18 and consists of the following:
{0,"primary","secondary","conversion";"pear","kg","kg",2;"apple","kg","cr",2.1;"apple","kg","ea",1;"kiwi","ea","kg",4;"kiwi","ea","ea",4.1;"kiwi","ea","cr",10}, where the first entry (d.i. 0) means blank.
In E1 array-enter: =NOT(OR(AND(A3:A8=A13:A18,B3:B8=B13:B18,C3:C8=C13:C18,D3:D8=D13:D18)))
This formula results in either FALSE or TRUE. The value TRUE indicates globally that the previous and current data are different.
In E13 arrayenter: =IF($E$1,IF(ISNUMBER(MATCH(A13&B13&C13&D13,A3:A8&B3:B8&C3:C8&D3:D8,0)),"","CHANGED"),"") [ copy down this to E18 ]
This formula tells you per row of the current data whether it is "changed", meaning whether the values of the row in question exist as such in the previous data.
Applied to your example data, we get as an addtional column to the current data:
{0,"primary","secondary","conversion",0;"pear","kg","kg",2,"CHANGED";"apple","kg","cr",2.1,"";"apple","kg","ea",1,"CHANGED";"kiwi","ea","kg",4,"";"kiwi","ea","ea",4.1,"";"kiwi","ea","cr",10,"CHANGED"}
Aladin
PS. Let me know if you'd like to have a copy of the workbook showing the above machinary.