Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Calc • How accurately compare lists?

$
0
0
I want to see if all the values in one list are present in the other.
bank reconciliation style.
the totals are not the same.
so put up two lists in a spreadsheet: one the bank's list of transactions, the other your own record.
then look for transactions in one that are not in the other.
with something like this maybe which searchs for date and amount:

Code:

=IF(AND(SUMPRODUCT((A:A=G8)*1) > 0, SUMPRODUCT((D:D=F8)*1) > 0), "Match", "No Match")
run that for one list and it will tell if all in that list find a match in the other.
run it amended to suit for the other list and it will tell you if that is all matched.
sounds great and looks great.
but I have a list of 1300 items and a list of 1296.
the list of 1300 claims to be totally matched in the smaller list.
obviously impossible.
it must be doing some 'double matching', counting the same thing twice or something.
so i think to have it remove from the lists the matching pairs once found. steadily reducing the list so it cannot use the same values twice.
but that's where I am stopped. I cannot find a way to do that.
I cannot find a matching function that tells me where it found the match.
I cannot code it up, unfortunately. lost my coding skills some years ago.
but if necessary i will try if someone could perhaps give me a leg up to get me started?
Or are there better ways?

Statistics: Posted by abrogard — Tue Dec 31, 2024 3:37 am



Viewing all articles
Browse latest Browse all 1281

Trending Articles