Formula Required: Sort/Order output data of two columns into one

longbow2000

Board Regular
Joined
May 5, 2004
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Good Day

I need to order a previous process outcome into a new arrival number, as follows:

  • Customer receives a number and proceed to the Application Window. Two processing counters for assistance. Processing time is not the same, as applications are not the same.
  • The end time of the customer is recorded per processing counter.
  • Thereafter, the processed customer moves to the Payment Window.
  • In the attached screenshot, customer 1 remains first served, first processed and first to move to the Payment Window.
  • However, initial customer 2 processing time is longer and becomes customer 8 at the Payment Window.
In the screenshot (image attached) the values are manually entered into Column E; however, will you be able to assist in a formula in Column E to automate the process? The mini-sheet is also attached

Thanks in advance.
Longbow2000

Border_Optimisation.xlsx
ABCDEF
1Step 1: Application WindowStep 2: Payment Window
2CustomerTeller 1Teller 2New CustomerArrival
3#End TimeEnd Time#Time
41321
52872
63393
74484
85525
96646
107817
118868
129889
13109710
141110711
151213312
161315413
171416314
181517515
191618616
201721517
211822118
221924419
232024020
242124121
252224722
262324823
272425924
282526025
End_Teller_time
 

Attachments

  • Sort.png
    Sort.png
    57.4 KB · Views: 5

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks, updated the details. Using Office 365
 
Upvote 0
Thanks for that, how about
Fluff.xlsm
ABCDEF
1Step 1: Application WindowStep 2: Payment Window
2CustomerTeller 1Teller 2New CustomerArrival
3#End TimeEnd Time#Time
4132132
5287239
6339348
7448452
8552564
9664681
10781786
11886887
12988988
1310971097
141110711107
151213312133
161315413154
171416314163
181517515175
191618616186
201721517215
211822118221
221924419240
232024020241
242124121244
252224722247
262324823248
272425924259
282526025260
Data
Cell Formulas
RangeFormula
F4:F28F4=SORT(TOCOL(B4:C28,1))
Dynamic array formulas.
 
Upvote 0
Thanks for that, how about
Fluff.xlsm
ABCDEF
1Step 1: Application WindowStep 2: Payment Window
2CustomerTeller 1Teller 2New CustomerArrival
3#End TimeEnd Time#Time
4132132
5287239
6339348
7448452
8552564
9664681
10781786
11886887
12988988
1310971097
141110711107
151213312133
161315413154
171416314163
181517515175
191618616186
201721517215
211822118221
221924419240
232024020241
242124121244
252224722247
262324823248
272425924259
282526025260
Data
Cell Formulas
RangeFormula
F4:F28F4=SORT(TOCOL(B4:C28,1))
Dynamic array formulas.
Hi, this is just what I require; however, I get a #NAME? error with the "TOCOL" part. Viewing the Microsoft Account detail, I have Microsoft 365 Apps for enterprise, Version 2202 (Build 1493 .20858)
 
Upvote 0
Ok, you don't have the latest update yet, how about
Fluff.xlsm
ABCDEF
1Step 1: Application WindowStep 2: Payment Window
2CustomerTeller 1Teller 2New CustomerArrival
3#End TimeEnd Time#Time
4132132
5287239
6339348
7448452
8552564
9664681
10781786
11886887
12988988
1310971097
141110711107
151213312133
161315413154
171416314163
181517515175
191618616186
201721517215
211822118221
221924419240
232024020241
242124121244
252224722247
262324823248
272425924259
282526025260
Data
Cell Formulas
RangeFormula
F4:F28F4=LET(a,B4:C28,r,ROWS(a),s,SEQUENCE(r*COLUMNS(a),,0),x,INDEX(a,MOD(s,r)+1,INT(s/r)+1),SORT(FILTER(x,x<>"")))
Dynamic array formulas.
 
Upvote 0
Ok, you don't have the latest update yet, how about
Fluff.xlsm
ABCDEF
1Step 1: Application WindowStep 2: Payment Window
2CustomerTeller 1Teller 2New CustomerArrival
3#End TimeEnd Time#Time
4132132
5287239
6339348
7448452
8552564
9664681
10781786
11886887
12988988
1310971097
141110711107
151213312133
161315413154
171416314163
181517515175
191618616186
201721517215
211822118221
221924419240
232024020241
242124121244
252224722247
262324823248
272425924259
282526025260
Data
Cell Formulas
RangeFormula
F4:F28F4=LET(a,B4:C28,r,ROWS(a),s,SEQUENCE(r*COLUMNS(a),,0),x,INDEX(a,MOD(s,r)+1,INT(s/r)+1),SORT(FILTER(x,x<>"")))
Dynamic array formulas.
100% Great! Thank you and greetings from South Africa, looking forward to the next rugby game :-)
 
Upvote 0
You're welcome & thanks for the feedback.
With luck we'll next play each other on 28th Oct. (but i doubt we'll make it)
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

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