Index formula, maybe?

crave4excel

New Member
Joined
Feb 2, 2012
Messages
45
Hi
I'm trying to create a formula that auto "pull in" names that are assigned to a specific group number. For example, i have a table below to start off -

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]type[/TD]
[TD]group[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange A[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange b[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange c[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]orange d[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I then want to create a formula that automatically pulls in the type name (2nd column) based on the group number I entered in the 1st column.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]group [/TD]
[TD]type[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]orange a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]orange c[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]orange d[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]orange b[/TD]
[/TR]
</tbody>[/TABLE]

I'm not sure if this can be achieved at all, hoping the Excel gurus out there can lend me a hand! Appreciated any help in advance.

Regards,
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
AB
1typegroup
2orange A2
3orange b4
4orange c2
5orange d2
6
7
8grouptype
92orange A
102orange c
112orange d
124orange b
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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