LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default EXCEL Macro problem

I need to implement the following logic in excel vba. I will appreciate any
ideas.

Thanks

Problem description -

There are 5 dimensions along which a transfer of goods happens.

Giver (G), giver channel (CH), account number (AC), taker (T), taker channel
(CH)

All of these can and do assume unique values.
Examples €“ G1, G2, G3 etc, CH1, CH2, CH3 etc and so forth

There can be any combination of these along which a transfer might take place.
Example €“ A transfer might look like

From G1, through CH3, to T4, through CH2, in account number AC5
So it looks like
G1 €“ CH3 €“ AC5 €“ CH2 €“ T4 = 100 where 100 is the amount that was transferred
in this transaction

I need to determine what total amount was transferred for each such
combination above. The problem is simple enough if the combinations are all
unique. But when the giver becomes the taker and taker becomes the giver, BUT
the channels and account number remain the same, then the transfer amount
needs to be netted.

Example:
G1 €“ CH3 €“ AC5 €“ CH2 €“ T4 = 100
T4 €“ CH3 €“ AC5 €“ CH2 €“ G1 = 10
Then this should be netted as
G1 €“ CH3 €“ AC5 €“ CH2 €“ T4 = 90


So, I need to identify such unique combinations as
G - CH €“ AC €“ CH - T
And sum (net) them.

If there were 5 G, CH, AC and T each, there would be 5x5x5x5x5 = 3125
possible combinations along which a transaction could take place. I need to
identify all those that are the same, AND ALSO, all those where everything
else if the same except the giver and taker have switched places.




 
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
Macro problem in Excel pd Excel Discussion (Misc queries) 2 March 14th 06 05:49 AM
Problem in excel macro [email protected] Excel Programming 1 February 14th 06 02:44 PM
excel macro problem Jim Thomlinson[_3_] Excel Programming 0 April 12th 05 08:32 PM
excel macro problem yvautrin Excel Programming 0 April 12th 05 08:27 PM
Excel 2k3 Macro Problem Mike Excel Programming 0 September 20th 04 07:29 PM


All times are GMT +1. The time now is 10:36 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"