FraukeJarre
New Member
- Joined
- Feb 23, 2018
- Messages
- 2
Dear MrExcel Team,
I created the following table in the same worksheet as the original table (with the source data):
[TABLE="width: 568"]
<tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Event 1[/TD]
[TD]Formulatext of Event1[/TD]
[/TR]
[TR]
[TD]LaCan[/TD]
[TD]COLOMBIA[/TD]
[TD]3[/TD]
[TD]=VLOOKUP(A6,A6:B26,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]ESTONIA[/TD]
[TD]20[/TD]
[TD]=VLOOKUP(A7,A7:B27,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]GERMANY[/TD]
[TD]149[/TD]
[TD]=VLOOKUP(A8,A8:B28,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]HUNGARY[/TD]
[TD]113[/TD]
[TD]=VLOOKUP(A9,A9:B29,2,0)[/TD]
[/TR]
[TR]
[TD]AMEA[/TD]
[TD]INDIA[/TD]
[TD]61[/TD]
[TD]=VLOOKUP(A10,A10:B30,2,0)[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I then tried to sort the table by "region" rather then by "country" - but the formulas are not sorted and the numbers indicated for the "Event 1" are no longer correct...
[TABLE="width: 568"]
<tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Event 1[/TD]
[TD]Formulatext of Event1[/TD]
[/TR]
[TR]
[TD]AMEA[/TD]
[TD]INDIA[/TD]
[TD]3[/TD]
[TD]=VLOOKUP(A6,A6:B26,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]ESTONIA[/TD]
[TD]20[/TD]
[TD]=VLOOKUP(A7,A7:B27,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]GERMANY[/TD]
[TD]149[/TD]
[TD]=VLOOKUP(A8,A8:B28,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]HUNGARY[/TD]
[TD]113[/TD]
[TD]=VLOOKUP(A9,A9:B29,2,0)[/TD]
[/TR]
[TR]
[TD]LaCan[/TD]
[TD]COLOMBIA[/TD]
[TD]61[/TD]
[TD]=VLOOKUP(A10,A10:B30,2,0)[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I then tried the same with the INDEX-MATCH function "=INDEX(B6:B26,MATCH(A6,A6:A26,0))" as I thought it would be a VLOOKUP issue. But again when sorting the table - the formula is not sorted...
Do you know what I can do to get also the formulas sorted?
Thanks so much in advance for your help!
I created the following table in the same worksheet as the original table (with the source data):
[TABLE="width: 568"]
<tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Event 1[/TD]
[TD]Formulatext of Event1[/TD]
[/TR]
[TR]
[TD]LaCan[/TD]
[TD]COLOMBIA[/TD]
[TD]3[/TD]
[TD]=VLOOKUP(A6,A6:B26,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]ESTONIA[/TD]
[TD]20[/TD]
[TD]=VLOOKUP(A7,A7:B27,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]GERMANY[/TD]
[TD]149[/TD]
[TD]=VLOOKUP(A8,A8:B28,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]HUNGARY[/TD]
[TD]113[/TD]
[TD]=VLOOKUP(A9,A9:B29,2,0)[/TD]
[/TR]
[TR]
[TD]AMEA[/TD]
[TD]INDIA[/TD]
[TD]61[/TD]
[TD]=VLOOKUP(A10,A10:B30,2,0)[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I then tried to sort the table by "region" rather then by "country" - but the formulas are not sorted and the numbers indicated for the "Event 1" are no longer correct...
[TABLE="width: 568"]
<tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Event 1[/TD]
[TD]Formulatext of Event1[/TD]
[/TR]
[TR]
[TD]AMEA[/TD]
[TD]INDIA[/TD]
[TD]3[/TD]
[TD]=VLOOKUP(A6,A6:B26,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]ESTONIA[/TD]
[TD]20[/TD]
[TD]=VLOOKUP(A7,A7:B27,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]GERMANY[/TD]
[TD]149[/TD]
[TD]=VLOOKUP(A8,A8:B28,2,0)[/TD]
[/TR]
[TR]
[TD]EU[/TD]
[TD]HUNGARY[/TD]
[TD]113[/TD]
[TD]=VLOOKUP(A9,A9:B29,2,0)[/TD]
[/TR]
[TR]
[TD]LaCan[/TD]
[TD]COLOMBIA[/TD]
[TD]61[/TD]
[TD]=VLOOKUP(A10,A10:B30,2,0)[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
I then tried the same with the INDEX-MATCH function "=INDEX(B6:B26,MATCH(A6,A6:A26,0))" as I thought it would be a VLOOKUP issue. But again when sorting the table - the formula is not sorted...
Do you know what I can do to get also the formulas sorted?
Thanks so much in advance for your help!