#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default solver

I have the following problem:
One worksheet (Payments) has three columns named "cheque#"; "Account#";
and "Amount".
Another worksheet (Invoices) has three columns named "Account#";
"Invoice#"; and "Amount".

On the worksheet Payments there is one cheque# for each account# for a
certain amount.
On the worksheet Invoices there many Invoice# for different amounts with
the same Account#.

I would like to identify those invoices/amount for a given Account# that
totalize the amount paid with cheque#.

Example:
Worksheet Payments
"cheque#" "Account#" "Amount"
20070101 ABC-001 300.75
20070102 BCD-001 605.35
......... ....... ......



Worksheet Invoices
"Account#" "Invoice#" "Amount"
ABC-001 1001 100.25
ABC-001 1002 110.50
ABC-001 1003 200.25
ABC-001 1004 50.25
ABC-001 1005 90.00
........ .... .......
BCD-001 500 101.50
BCD-001 501 60.25
BCD-001 502 205.60
BCD-001 503 25.60
BCD-001 504 55.55
BCD-001 505 258.35

On this example the cheque# 20070101 should appear linked to invoice#
1001; 1002 and 1005.
The cheque# 20070102 should appear linked to invoice# 501; 502; 503; 504
and 505.

Thank you for your help solving this puzzle.

Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default solver

Hi Roberto

Before you even start thinking about how to solve this technically, I think
that you are in danger of not solving the use case. It looks to me as if
there could be many solutions to any given cheque, and there is no
deterministic way to link your data together. Unless you can guarantee that
there is only one possible solution to any cheque, you will be in trouble
later.

Yes - in your example there may be only one solution, but surely, in real
life, this will not be the case.

I think you need to change the way you record data to ensure a firm link can
be made.

"Roberto" wrote:

I have the following problem:
One worksheet (Payments) has three columns named "cheque#"; "Account#";
and "Amount".
Another worksheet (Invoices) has three columns named "Account#";
"Invoice#"; and "Amount".

On the worksheet Payments there is one cheque# for each account# for a
certain amount.
On the worksheet Invoices there many Invoice# for different amounts with
the same Account#.

I would like to identify those invoices/amount for a given Account# that
totalize the amount paid with cheque#.

Example:
Worksheet Payments
"cheque#" "Account#" "Amount"
20070101 ABC-001 300.75
20070102 BCD-001 605.35
......... ....... ......



Worksheet Invoices
"Account#" "Invoice#" "Amount"
ABC-001 1001 100.25
ABC-001 1002 110.50
ABC-001 1003 200.25
ABC-001 1004 50.25
ABC-001 1005 90.00
........ .... .......
BCD-001 500 101.50
BCD-001 501 60.25
BCD-001 502 205.60
BCD-001 503 25.60
BCD-001 504 55.55
BCD-001 505 258.35

On this example the cheque# 20070101 should appear linked to invoice#
1001; 1002 and 1005.
The cheque# 20070102 should appear linked to invoice# 501; 502; 503; 504
and 505.

Thank you for your help solving this puzzle.

Rob

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
How to replace Excel solver with some free solver codes in Excel V ct2147 Excel Programming 2 November 8th 06 07:06 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
solver RONCPA Excel Discussion (Misc queries) 2 September 11th 05 04:06 AM
VB solver Garland Excel Programming 0 September 20th 04 07:51 PM
Resetting Solver Manually to Fix Solver Bug Stratuser Excel Programming 0 September 13th 04 07:04 PM


All times are GMT +1. The time now is 08:39 AM.

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"