Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reconising matching no's in 2 seperate lists

Hi,

I have this problem, can anyone recommend anything that will make m
life easier...

I have two lists of numbers (lets call them list A and list B) and
want to run a macro that will match the two up nicely!

The totals of the two lists can be equal or they may not be equall - i
differs each time!

A number in list A may match a number in list B directly.
Alternatively the sum of some of the numbers in list A may equal on
number in list B (and vice versa). Occasionally the sum of severa
numbers in list A may match a sum of numbers in list B.
Finally some numbers will have no match in the other list.

Is there a macro or other method within excel that will identify thes
matches, potential matches etc... or is this something beyond it
(albeit impressive) capabilities?

As you can imagine i have been working on this for quite some time
the only result being that my head, much like my macros, no longe
work!

Many thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default reconising matching no's in 2 seperate lists

for a limited size list, you can use solver to do this.

You would have to treat each value in B as a separate problem which could
result in a wrong overall answer. I haven't seen any suggestions on how to
optimally allocate the numbers in A to the numbers in B or even that that is
appropriate. I assume you are trying to match payments/partial payments
with debits or something like that. Perhaps you could solve it as a linear
programming problem, but I would imagine the lists would have to be pretty
small to solve it in Excel.

--
Regards,
Tom Ogilvy

ian123 wrote in message
...
Hi,

I have this problem, can anyone recommend anything that will make my
life easier...

I have two lists of numbers (lets call them list A and list B) and i
want to run a macro that will match the two up nicely!

The totals of the two lists can be equal or they may not be equall - it
differs each time!

A number in list A may match a number in list B directly.
Alternatively the sum of some of the numbers in list A may equal one
number in list B (and vice versa). Occasionally the sum of several
numbers in list A may match a sum of numbers in list B.
Finally some numbers will have no match in the other list.

Is there a macro or other method within excel that will identify these
matches, potential matches etc... or is this something beyond its
(albeit impressive) capabilities?

As you can imagine i have been working on this for quite some time -
the only result being that my head, much like my macros, no longer
work!

Many thanks


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reconising matching no's in 2 seperate lists

Tom,

Many thanks for your consideration of my problem. I am trying to match
month end customer account balances to a list of payments made by all
payments- not the easiest task in the world!!!

Could you elaborate on 'solver' please as i do not know what this is,
its potential applications or how i would use it!

Many thanks


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default reconising matching no's in 2 seperate lists



Solver is an addin shipped with Excel. It is used to solve equations. If
it is installed, you can select it in tools=Addins, then in Tools you will
have the option for solver. One use is for solving linear programming type
problems. Excel is distributed with a samples workbook (I believe) that
should have some solver examples. If you don't see it in Tools=Addins,
then you need to go back to office setup and install it.


Here are some previous posts on the topic: (see last url for a sample
workbook that does the first technique (or something similar)


Solver - one combination for a sum
http://groups.google.com/groups?thre...2msftngp13.phx.
gbl

solve for all combinations (VBA)

http://groups.google.com/groups?thre...pernews.com &
rnum=3
(error on the column protection)

Jim Day has a download that represents the technique (not written by Jimmy)

http://www.cableone.net/twodays/recurs.xls

--
Tom Ogilvy


ian123 wrote in message
...
Tom,

Many thanks for your consideration of my problem. I am trying to match
month end customer account balances to a list of payments made by all
payments- not the easiest task in the world!!!

Could you elaborate on 'solver' please as i do not know what this is,
its potential applications or how i would use it!

Many thanks


---
Message posted from http://www.ExcelForum.com/



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
matching & combining data from seperate worksheets sshaefer Excel Worksheet Functions 2 May 10th 10 02:47 PM
Matching address with two seperate worksheets Christie Excel Worksheet Functions 5 January 27th 09 01:36 AM
Matching data/columns from two seperate files Mike Excel Discussion (Misc queries) 5 August 22nd 08 08:09 PM
Matching data from seperate excel files Stephen H Excel Worksheet Functions 1 November 11th 05 06:12 AM
Vlook up for matching data in two seperate sheets funky via OfficeKB.com Excel Discussion (Misc queries) 1 June 3rd 05 10:16 PM


All times are GMT +1. The time now is 08:13 PM.

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"