Ordering based on a template

gledister

Board Regular
Joined
Mar 21, 2011
Messages
173
Imagine we have these data-template as below:

reference01
reference07
reference04
reference03
reference10
reference09

we need to order this data below considering the order on the data-template so for example if we have these data:

reference09
reference03
reference07

The end needs to be:
reference07
reference03
reference09

Thanks in advance!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi gledister,

You could use an Array Formula. In the example below, enter the formula in C2:C4 and confirm using Ctrl+Shift+Enter.

Excel Workbook
ABC
1Template (Named Range)InputSorted by Template
2reference01reference09reference07
3reference07reference03reference03
4reference04reference07reference09
5reference03
6reference10
7reference09
Sheet2
Excel 2007
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
Excel Workbook
NameRefers To
Template=Sheet2!$A$2:$A$7
Workbook Defined Names


This example assumes you define a name your template range. You can replace "Template" with your range address in the forumula if you prefer.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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