Hi, I'm new to this forum, and equally new to using macros in Excel 2007. I basically have three tables. The first two tables contains rates based

KMT_VBANewbie

New Member
Joined
Dec 3, 2013
Messages
1
Hi,

I'm new to this forum, and equally new to using macros in Excel 2007. I basically need to merge three tables into one.

The first two tables contains rates based on an issue age, and a fixed period of time. The only difference between them is the first table is for a "Band" class 1, the second table is "Band" class 2. The third table contains rates that are based on an attained age after the initial fixed period has expired, and applies regardless of the band class.

I need to make one individual table that will show the initial rate from the "Issue Age" tables, and that will then go to obtain the subsequent rates that will apply from the "Attained Age" table, and then go back to the "Issue Age" table and get the next initial rate, and then go back and fill in all of the subsequent rates from the "Attained Age" table....etc. And keep repeating this process until all of the rates have been extracted.

(My issue age tables usually go to around age 65; My attained age tables usually go to around age 100.)


I have a sample set shown below. I was thinking that I could accomplish this task by doing some lookup formulas, but I was hoping a macro could make this process quicker. I'd appreciate any and all suggestions on where to start, and how to accomplish this.

Thanks in advance!!!


For this scenario, this is how attained age is identified:
Issue AgeDurationAttained Age
18118
18219
18320
18421
18522
18623
18724
18825
18926
181027

<tbody>
</tbody>


TABLE 1, 10 YEAR TERM: BAND 1

Issue AgeM_StdM-SubStdF_StdF_SubStd
182.082.941.792.28
192.103.001.812.33
202.133.091.832.39
212.173.211.862.46

<tbody>
</tbody>

TABLE 2, 10 YEAR TERM: BAND 2
Issue AgeM_StdM-SubStdF_StdF_SubStd
181.932.721.682.13
191.952.771.702.18
201.982.851.722.23
212.022.961.752.29

<tbody>
</tbody>


TABLE 3: ATTAINED AGE RATES AFTER FIXED TERM PERIOD
ALL BANDS

Attained AgeM_StdM-SubStdF_StdF_SubStd
283.125.461.802.85
293.095.431.893.03
303.065.401.983.21
313.035.432.103.45

<tbody>
</tbody>


SAMPLE OF WHAT FINAL TABLE SHOULD SHOW:

Attained AgeIssue AgeSexBandClassDurationRate
1818M1Std102.08
2818M1Std113.12
2918M1Std123.09
3018M1Std133.06
3118M1Std143.03
1818M1SubStd102.94
2818M1SubStd115.46
2918M1SubStd125.43
3018M1SubStd135.40
3118M1SubStd145.43
1818F1Std101.79
2818F1Std111.80
2918F1Std121.89
3018F1Std131.98
3118F1Std142.10
1818F1SubStd102.28
2818F1SubStd112.85
2918F1SubStd123.03
3018F1SubStd133.21
3118F1SubStd143.45
1818M2Std101.93
2818M2Std113.12
2918M2Std123.09
3018M2Std133.06
3118M2Std143.03
1818M2SubStd102.72
2818M2SubStd115.46
2918M2SubStd125.43
3018M2SubStd135.40
3118M2SubStd145.43
1818F2Std101.68
2818F2Std111.80
2918F2Std121.89
3018F2Std131.98
3118F2Std142.10
1818F2SubStd102.13
2818F2SubStd112.85
2918F2SubStd123.03
3018F2SubStd133.21
3118F2SubStd143.45

<tbody>
</tbody>

(My table would then go to issue age 19, and repeat the process.)

P.S. I apologize for any typos. ;)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,004
Messages
6,122,656
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top