Arranging numbers in a particular order

Joined
Mar 22, 2016
Messages
14
Sir , I have a query with starting register number and ending Register number of a batch of students
how can i create a report as given below (for Eg. starting reg.Number 346 and ending Reg.Number 483)

REGISTER NUMBERS

FROM TO

346 365 (20)
366 385 (20)
386 405 (20)
406 425 (20)
426 445 (20)
446 465 (20)
466 483 (18)

It will be very helpful if a VBA code is available
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Probably more to this than you show, but this should just be "to" - "from" cells?

Sir I have a table and a query in ms access with register number of students . i have to create a seating arrangement for examination (as shown in above report) each room contains 20 students and in the last room 20 or less than 20
 
Upvote 0
Actually, looks like the report is already created and here it is:

REGISTER NUMBERS FROM TO
346 365 (20)
366 385 (20)
386 405 (20)
406 425 (20)
426 445 (20)
446 465 (20)
466 483 (18)
 
Upvote 0
Hi,
You said you have the query:
Sir , I have a query with starting register number and ending Register number of a batch of students

Don't you have the query? I'm not sure what you mean. Is there something wrong with the query? Normally you just run your query to get the information you want.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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