Index/ Match/ Lookup

Status
Not open for further replies.

oO P2K Oo

New Member
Joined
Aug 12, 2018
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Thank you for viewing my post.

I am having difficulty with the index/match function.

Below is an extract of my table (I had issues uploading the table via the normal channels).

<table border="1" cellspacing="0" cellpadding="0" verdana,="" arial,="" tahoma,="" calibri,="" geneva,="" sans-serif;"="" style="width: "><tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Local code
[/TD]
[TD]Age
[/TD]
[TD]Universal Code
[/TD]
[TD][/TD]
[TD]Local Code
[/TD]
[TD]Age Boundary
[/TD]
[TD]Universal Code
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]TUCEG
[/TD]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD]TUCEG
[/TD]
[TD]6
[/TD]
[TD]ABC51A
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]TUCEG
[/TD]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD]TUCEG
[/TD]
[TD]19
[/TD]
[TD]ABC51B
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]TUCEG
[/TD]
[TD]19
[/TD]
[TD][/TD]
[TD][/TD]
[TD]TUCEG
[/TD]
[TD]19+
[/TD]
[TD]ABC51C
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]TUCEG
[/TD]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]TUCEG
[/TD]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]TUCEG
[/TD]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]TUCEG
[/TD]
[TD]21
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]TUCEG
[/TD]
[TD]17
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]TUCEG
[/TD]
[TD]24
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]TUCEG
[/TD]
[TD]67
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]TUCEG
[/TD]
[TD]38
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]TUCEG
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody></table>
The age boundary simply refers to the age in column B, if someone is 0-5 years and 364 days old they should be given a code ABC51A. If a person is 6-18 years and 364 days old they should be given a Universal code ABC51B. anyone above 19 years of age will have the code ABC51C. I can use the match function to identify the Local code, but I am struggling to link it with the age.

Can anyone help me with this issue? Many thanks in advance for your assistance with this query.

If you require any further explanations then please ask.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Book1
ABCDEFG
1Local codeAgeUniversal CodeLocal CodeAge BoundaryUniversal Code
2TUCEG3TUCEG6ABC51A
3TUCEG5TUCEG19ABC51B
4TUCEG19TUCEG19+ABC51C
5TUCEG20
6TUCEG6
7TUCEG12
8TUCEG21
9TUCEG17
10TUCEG24
11TUCEG67
12TUCEG38
13TUCEG0
Sheet2


Apologies, the table is now shown above.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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