Unsure on the Subject / Indexing?

ajstole

New Member
Joined
Apr 3, 2018
Messages
8
Apologies for not knowing what this may be.

I have the following table and am trying to figure out if excel is even capable of indexing some value. Each number on top has 2 categories. If the desired number chosen is 34, the result should be 30 and 40 for example. If 30 is chosen, the 10 and 20 should show.

Enter Desired Number Here:
Category 1 last number to be shown:
Category 2 first number to be shown:

303234
Category 1Category 2Category 1Category 2Category 1Category 2
12011302140
21812282238
31613262336
41414242434
51215222532
61016202630
7817182728
8618162826
9419142924
10220123022

<colgroup><col span="6"></colgroup><tbody>
</tbody>

<colgroup><col span="6"></colgroup><tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
See if this does what you want. If not, please give more explanation/examples.

Excel Workbook
ABCDEF
1Desired Num34
2Cat 1 Last30
3Cat 2 First40
4
5303234
6Category 1Category 2Category 1Category 2Category 1Category 2
712011302140
821812282238
931613262336
1041414242434
1151215222532
1261016202630
137817182728
148618162826
159419142924
1610220123022
Last first
 
Upvote 0
This is awesome!! That was quick, did not expect that at all! If I did add a second column, what about this? Forgive me, I do not how to attach the picture here.

Desired Number
Cat 1 + Cat 2 Last
Cat 3 First
303234
Cat 1Cat 2Cat 3Cat 1Cat 2Cat 3Cat 1Cat 2Cat 3
111102202032730
21294181952429
31386161872128
41478141791827
5156101216111526
6165121015131225
71741481415924
81831661317623
91921841219322
102012021121021

<colgroup><col span="9"></colgroup><tbody>
</tbody>

See if this does what you want. If not, please give more explanation/examples.

Last first

ABCDEF
1Desired Num34
2Cat 1 Last30
3Cat 2 First40
4
530 32 34
6Category 1Category 2Category 1Category 2Category 1Category 2
712011302140
821812282238
931613262336
1041414242434
1151215222532
1261016202630
137817182728
148618162826
159419142924
1610220123022

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:95px;"><col style="width:82px;"><col style="width:82px;"><col style="width:82px;"><col style="width:82px;"><col style="width:82px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=INDEX(A16:F16,MATCH(B1,A5:E5,0))
B3=INDEX(A7:F7,MATCH(B1,A5:E5,0)+1)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
This is awesome!! That was quick, did not expect that at all! If I did add a second column, what about this? Forgive me, I do not how to attach the picture here.

Excel Workbook
ABCDEFGHI
1Desired Num32
2Cat 1 Last20
3Cat 2 First30
4Cat 3 First20
5303234
6Category 1Category 2Category 3Category 1Category 2Category 3Category 1Category 2Category 3
71201130202140
821812282238
931613262336
1041414242434
1151215222532
1261016202630
137817182728
148618162826
159419142924
1610220123022
Last first




BTW
1. 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.
2. Be patient when you submit a post. Especially for new members they can get help up for a while. That should improve as you have been here longer and post more. :)
3. See my signature block below for a link of how to post small screen shots.
 
Last edited:
Upvote 0
Hard to follow...

You have:

Row\Col
A​
B​
C​
D​
E​
F​
1​
Enter Desired Number Here:
2​
Category 1 last number to be shown:
3​
Category 2 first number to be shown:
4​
30​
32​
34​
5​
Category 1Category 2Category 1Category 2Category 1Category 2
6​
1
20
11
30
21
40
7​
2
18
12
28
22
38
8​
3
16
13
26
23
36
9​
4
14
14
24
24
34
10​
5
12
15
22
25
32
11​
6
10
16
20
26
30
12​
7
8
17
18
27
28
13​
8
6
18
16
28
26
14​
9
4
19
14
29
24
15​
10
2
20
12
30
22

E1:E3 are unfilled. At least E1 should be given, right?

What row 4 means is unclear.
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,966
Members
449,137
Latest member
yeti1016

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