List All Numbers

Mypaperdue

Board Regular
Joined
Feb 10, 2015
Messages
112
ABCDEFGHIJKLMN
11221133114411551
2
3013578569589015378016278
4124245014256237045127389
5457689236478126156349056
6679023125367459489238167
7
8
9
10
11
12
13
14
15
16

<tbody>
</tbody>

Good afternoon all,
I have a small table I am working with and I ran into a road block and was hoping I can get some assistant please. What I am trying to accomplish here is…. I have cell F1:M1 showing what I call “codes” and below them, I have cell F3:M6 showing different numbers representing each “codes.” What I want to do is input a “code” in cell A1 and have cell A8:A11 display the number that is representing that code. For example, if I were to input “code 14” in cell A1, I want cell A8:A11 to display 015,237,126 and 459.

Thank you in advance.
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try

A8 copied down till A11
=IF(A$1="","",INDEX($F$3:$M$6,ROWS(A$8:A8),MATCH(A$1,F$1:M$1,0)))

Custom format A8:A11
000

M.
 
Last edited:
Upvote 0
Another option, especialyy if you could use another cell (eg A2)

A8 is copied down
I have assumed F3:M6 are text values. If formatted numeric, then, as Marcelo has suggested, format the result cells the same.


Book1
ABCDEFGHIJKLM
1141221133114411551
25
3013578569589015378016278
4124245014256237045127389
5457689236478126156349056
6679023125367459489238167
7
8015
9237
10126
11459
Extract Column
Cell Formulas
RangeFormula
A2=MATCH(A1,F1:M1,0)
A8=INDEX(F3:M3,A$2)
 
Last edited:
Upvote 0
Another option, especialyy if you could use another cell (eg A2)

A8 is copied down
I have assumed F3:M6 are text values. If formatted numeric, then, as Marcelo has suggested, format the result cells the same.

ABCDEFGHIJKLM
1141221133114411551
25
3013578569589015378016278
4124245014256237045127389
5457689236478126156349056
6679023125367459489238167
7
8015
9237
10126
11459

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Extract Column

Worksheet Formulas
CellFormula
A2=MATCH(A1,F1:M1,0)
A8=INDEX(F3:M3,A$2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


This also worked. Thank you very much
 
Upvote 0
This also worked. Thank you very much
You are welcome from me too.

If you didn't want to use the helper cell like I did, you could simplify the INDEX part of Marcelo's formula a bit as follows for A8.

INDEX(F3:M3,MATCH(A$1,F$1:M$1,0))


BTW, best not to fully quote long posts as it makes the thread harder to read/navigate and just occupies storage space needlessly. If you want to quote, quote small, relevant parts only.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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