Transpose If - repeat until change

abshaw

Board Regular
Joined
Feb 12, 2004
Messages
53
I have the following sheet (Sheet 1)

https://docs.google.com/spreadsheet/ccc?key=0Ag6TBs80YtTNdHBOUDROYnlWc3lVaWhnM2FzRlZPUlE

where the unique ID is Member ID which is unique for a family rather than an individual
so the task is to have record per unique id. The new sheet would look like sheet 2 in the same sample sheet



The tricky parts to look for are

. Not all members have families
. The primary person i.e. member will have Primary listed in the first column (sheet 1)
. All families are not list in row sequence so the macro will have to go through the whole column to find the full family
. Once the families are found (and put into an array of some sort), they have to be listed chronologically by their date of births.
. Sheet 2 column C Coverage has to coded by linking to Sheet 1 Column Y Product Benefit as follows
individual = IN
member plus spouse = IS
member plus children = IC
family = FA
. If the total number of dependents is more than 6 then skip from 7th dependent onwards (by date of birth order)




I know its a tall order but your help is appriciated in advance.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,711
Messages
6,174,028
Members
452,542
Latest member
Bricklin

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