MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2002, 06:57 AM   #1
Moose54
New Member
 
Join Date: Feb 2002
Location: Louisville, KY
Posts: 2
Default

I'm doing an account reconciliation where I have a bunch of negatives and positives in a column and the sum of the column should be zero. Each negative doesn't always have a matching positive. For example, -1000 could be offset by +499 and +501. If there are many numbers in the column, you can see where it would be time consuming to try to find a match. Is there a way for Excel to find the offsets for me?
Moose54 is offline   Reply With Quote
Old Feb 22nd, 2002, 07:12 AM   #2
JohnG
Board Regular
 
Join Date: Feb 2002
Location: SRC
Posts: 165
Default

Im not an accountant so you have to forgive me but is there going to be an exact corresponding number?
JohnG is offline   Reply With Quote
Old Feb 22nd, 2002, 07:16 AM   #3
Moose54
New Member
 
Join Date: Feb 2002
Location: Louisville, KY
Posts: 2
Default

Ideally, since the sum of all of the numbers should equal zero, each negative number will be zeroed by a combination of positives and vice versa. Often this isn't true, as is happening this morning. I'm looking for a quick way to determine which numbers don't have an offset.
Moose54 is offline   Reply With Quote
Old Feb 22nd, 2002, 02:51 PM   #4
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Hey Moose,

I was born to reconcile, alas.

using Excel's =combin function to see the number of possible combinations of x numbers from y :

any 2 from 100 = 4,950 possibilities
any 3 from 100 = 161,700 possibilities
any 4 from 100 = 3,921,225 possibilities
any 5 from 100 = 75,287,520 possibilities
any 6 from 100 = 1,192,052,400 possibilities

you can appreciate the complexity of the problem if your data range adds up to 0 with 6 of the numbers from your list !

I use VBA code provided from this board to do this - it checks any combinations from 1 to 6 variables in any sized range - give me a shout and I'll email it to you

I have to point out though, I did not write the VBA code, it was provided by some much cleverer bod from this board (I can't remember who though) some months ago.

Don't forget, a million combinations means a million calculations : if your 0 is made up of 6 numbers in a range of 200 numbers, you are talking 82 billion calculations Excel has to perform : maybe a few hours worth of the hourglass on centrestage...


__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old Feb 22nd, 2002, 06:22 PM   #5
Scott R
Board Regular
 
Join Date: Feb 2002
Location: WA state
Posts: 332
Default

I think the short answer is no.
If I can't come up with a systematic process by hand, how would I expect Excel to.
Good luck

[ This Message was edited by: Scott R on 2002-02-22 17:24 ]
Scott R is offline   Reply With Quote
Old Feb 23rd, 2002, 12:53 AM   #6
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-02-22 17:22, Scott R wrote:
I think the short answer is no.
If I can't come up with a systematic process by hand, how would I expect Excel to.
Good luck

[ This Message was edited by: Scott R on 2002-02-22 17:24 ]
Scott, am I reading this right ?!

I couldn't come up with a systematic process by hand for calculating the cosine of the cubed root of a 12-digit integer, but I'd sure as dammit *expect* Excel to be able to do it !

cheers mate
Chris
Chris Davison is offline   Reply With Quote
Old Feb 25th, 2002, 11:11 AM   #7
Scott R
Board Regular
 
Join Date: Feb 2002
Location: WA state
Posts: 332
Default

Chris-
Moose54 is "looking for which #'s don't have an offset" because I'm assuming Moose54 wants to take action on the out of balance entries.

If the sample data is +1000, +1000, -499, and -501, which +1000 can we eliminate? There's not enough information. A mathematical approach would blindly eliminate one of the +1000's and Moose54 could possibly be left investigating the wrong issue.
Scott R is offline   Reply With Quote
Old Feb 25th, 2002, 01:27 PM   #8
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
On 2002-02-25 10:11, Scott R wrote:
Chris-
Moose54 is "looking for which #'s don't have an offset" because I'm assuming Moose54 wants to take action on the out of balance entries.

If the sample data is +1000, +1000, -499, and -501, which +1000 can we eliminate? There's not enough information. A mathematical approach would blindly eliminate one of the +1000's and Moose54 could possibly be left investigating the wrong issue.
Hey Scott,

Yep, I see your point.

The question though, purely at face value, is what offsets to what in a single column. So if there's two +1000s isn't it mathematically irrelevant which one we pick, or proceed to eliminate ?

Like I said though, I do reconcile in about 50% of my worktime, so can fully appreciate the dangers of just matching off like-amounts without taking into account other criteria like narratives or transaction numbers. The original question isn't clear on whether these may also be a factor, so I didn't just assume they would be.

You are correct though, given two or more options, which do you pick, systematically and manually ? (It's the donkey and two bales of hay) so how would we expect excel to do it ?

Interesting
Chris Davison is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes