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: 15
Default Excel List Sorter

I done this using formulas in Excel and works fine. However, I'm
looking to easing myself into broadening my VBA knowledge. Wonder if
this is possible in Excel VBA?

I have a list(table 1) and I want to generate using Excel VBA the
remaining part of the table using excel VBA (see table 2).

Want some excel vba code to go through each record Payment field column
and fill in the Pay_Type, Area and Interest columns. Taking into
account that A_ID column is always blank.

The key for the Payment is:
Pay_Type Area Interest
M = Monthly A 10
S = Semi-Ann 3 30
Q = Quarterly DDE 25
D = Decade 10y 4
Y = Yearly 123 5

table1:
Customer Payment
1 M
20 M
17 S
3 M
4 S
15 S
5 S
70 Q
81 Y
9 Q
10 Q
34 Y
21 Y
6 Q
9 M

table 2
Customer Payment A_ID Pay_Type Area Interest
1 M Monthly A 10
20 M Monthly A 10
17 S Semi-Ann 3 30
3 M Monthly A 10
4 S Semi-Ann 3 3
15 S Semi-Ann 3 3
5 S Semi-Ann 3 3
70 Q Quarterly DDE 25
81 Y Yearly 123 5
92 Q Quarterly DDE 25
11 Q Quarterly DDE 25
34 Y Yearly 123 5
21 Y Yearly 123 5
6 Q Quarterly DDE 25
9 M Monthly A 10
10 S Semi-Ann 3 30
40 D Decade 10y 4
23 D Decade 10y 4

Is this doable in Excel VBA?

Apreciate your help on this matter.

Many Thanks and Kind regards

Brenda "XXX"

 
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
Database Style Vinyl Sorter SpeakaTweaka Excel Discussion (Misc queries) 1 August 11th 06 03:44 AM
Random List Sorter Sethnstorm Excel Discussion (Misc queries) 2 March 18th 06 04:04 AM
Column drop-down list sorter CMonroe329 Excel Discussion (Misc queries) 1 September 28th 05 07:57 PM
Sorter macro scottwilsonx[_49_] Excel Programming 0 October 5th 04 12:16 PM
Sorter macro scottwilsonx[_48_] Excel Programming 1 October 4th 04 01:53 PM


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