Select Specific Cell Based on Value

cha

New Member
Joined
Aug 16, 2011
Messages
21
Hi,
I have a list of classes. I want to make a new sheet and categorize them by class family.
I used vlookup on the class to get its family, so I figured out how to get that family key mapped to each class. I have a Family sheet made already.
Based on the vlookup value (family), how do I copy the class data onto the Family sheet and paste it as a new row into its proper section?


Suggestions please?

Here is the first table. (The family for B => f2, D=>f4, E=>f5)

<table class="cms_table" width="193"><tbody><tr class="cms_table_tr" valign="top"><td class="cms_table_td">Start Date</td> <td class="cms_table_td">Class</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">8/9/2011</td> <td class="cms_table_td">B</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">8/10/2011</td> <td class="cms_table_td">D</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">8/10/2011</td> <td class="cms_table_td">E</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">8/11/2011</td> <td class="cms_table_td">E</td> </tr> </tbody></table>

This is the final table I'm trying to fill in:

<table class="cms_table" width="256"><tbody><tr class="cms_table_tr" valign="top"><td class="cms_table_xl65" width="64">Family</td> <td class="cms_table_td" width="64">Start Date</td> <td class="cms_table_td" width="64">Class</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">f1</td> <td class="cms_table_td">
</td> <td class="cms_table_td">
</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">f2</td> <td class="cms_table_td">
</td> <td class="cms_table_td">
</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">f3</td> <td class="cms_table_td">
</td> <td class="cms_table_td">
</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">f4</td> <td class="cms_table_td">
</td> <td class="cms_table_td">
</td> </tr> <tr class="cms_table_tr" valign="top"><td class="cms_table_td">f5</td> </tr></tbody></table>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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