Order and Ranking: Position Formulas, Comparisons and MCQs
Order and ranking questions tell you where a person stands in a row, a queue or a class list and ask for a total, a rank from the other end, or the number of people between two persons. A second type compares people by height, weight, marks or age and asks who comes first, last or in the middle. A handful of formulas and a quick sketch of the row solve almost every question.
Asked in: GAT, HAT, NTS, ISSB, SSC CGL, IBPS PO, CAT
Position from both ends
If a person is at position L from the left (or top) and at position R from the right (or bottom), the person is counted in both numbers. That is why one is subtracted when you add them.
The same idea gives the rank from the other end: subtract the known rank from the total and add one. Top and bottom in a class list work exactly like left and right in a row.
- Total = L + R − 1
- Position from right = Total − Position from left + 1
- Middle position of an odd row of N people = (N + 1) ÷ 2
People between two persons
Suppose A is p-th from the left and B is q-th from the right in a row of N people. First convert B's position to the left end: B is (N − q + 1)-th from the left. The number of people between them is the gap between the two positions minus one.
When A is to the left of B and their counts do not overlap, this simplifies to N − p − q. When p + q is larger than N, the two counts cross each other, and the number between them is p + q − N − 2.
- No overlap: between = N − (p + q)
- Overlap: between = (p + q) − N − 2
- Safe method: convert both to the same end, then between = difference − 1
Interchanged positions
When two persons interchange places, each one takes the other's old position exactly. So if A moves to B's place, A's new position from the left equals B's old position from the left, and A's new position from the right equals B's old position from the right.
This lets you combine a left count and a right count for the same spot. If A is now 15th from the left and B was 7th from the right before the swap, that spot is 15th from the left and 7th from the right, so the row has 21 people.
Minimum number and 'cannot be determined'
When a question gives two counts and a gap but does not say which person is on which side, both arrangements are possible. The 'minimum number' is the smaller of the two totals, which usually comes from the overlapping arrangement.
Draw both cases before answering. If the question asks for an exact number and both cases are valid, the honest answer is that it cannot be determined.
Comparison and ranking puzzles
For comparisons of height, weight, marks or age, write the people on a vertical line with the largest at the top. Place each new fact by moving people above or below the ones already placed.
A person's position is fixed only when every needed comparison is given. If two people are both below a third but never compared with each other, their order is unknown, so questions about them may have no definite answer.
- A taller than B and B taller than C ⇒ A taller than C
- A taller than B and A taller than C ⇒ order of B and C unknown
Ranks with failed or absent students
Sometimes a rank is given only among the students who passed. Find the number of passed students with L + R − 1, then add the failed and absent students separately to get the class strength.
Read carefully whether a rank counts everyone or only a group; mixing the two is the most common source of an answer that is off by a few.
Solved examples
- Ravi is 12th from the left and 17th from the right in a row of students. How many students are in the row?
- Ravi is counted in both the left count and the right count.
- Total = 12 + 17 − 1 = 28.
Answer: 28 students - In a class of 40 students, Ayesha ranks 15th from the top. What is her rank from the bottom?
- Rank from bottom = Total − Rank from top + 1.
- 40 − 15 + 1 = 26.
Answer: 26th from the bottom - In a row of 30 boys, Hamza is 10th from the left and Arjun is 12th from the right. How many boys sit between them?
- Arjun is 30 − 12 + 1 = 19th from the left.
- Hamza is 10th from the left, so the boys between them are in positions 11 to 18.
- That is 19 − 10 − 1 = 8 boys, which matches N − (p + q) = 30 − 22 = 8.
Answer: 8 boys - In a row, Ali is 9th from the left and Rohan is 7th from the right. When they interchange places, Ali becomes 15th from the left. How many people are in the row?
- After the swap Ali stands in Rohan's old place.
- So Rohan's old place is 15th from the left, and it was 7th from the right.
- Total = 15 + 7 − 1 = 21.
Answer: 21 people - Neha is taller than Sana but shorter than Priya. Bilal is taller than Priya, and Zara is shorter than Sana. Who is the third tallest?
- Neha is above Sana, and Priya is above Neha: Priya, Neha, Sana.
- Bilal is above Priya and Zara is below Sana.
- Full order from tallest: Bilal, Priya, Neha, Sana, Zara.
Answer: Neha - In a row of 25 children, Kashif is 17th from the left and Deepa is 14th from the right. How many children are between them?
- Here 17 + 14 = 31 is more than 25, so the two counts overlap.
- Deepa is 25 − 14 + 1 = 12th from the left, so she is to the left of Kashif.
- Between positions 12 and 17 are positions 13 to 16, which is 4 children. Check: 31 − 25 − 2 = 4.
Answer: 4 children
Exam shortcuts
- Write 'L + R − 1' at the top of your rough sheet; most single-person questions are just this formula used forwards or backwards.
- To find people between two persons, convert both positions to the same end first. It avoids having to remember which overlap formula applies.
- For an interchange, the key sentence is 'the new position of one person is the old position of the other'. Use it to join a left count to a right count.
- In comparison puzzles, draw a vertical ladder and keep the unknown pairs side by side instead of forcing an order.
- When a question asks for the minimum number in a row, test the overlapping arrangement first; it almost always gives the smaller total.
Common mistakes
- Adding the two positions without subtracting one, which counts the person twice.
- Using N − p − q when the two counts overlap, which can give a negative or wrong answer.
- In interchange questions, keeping a person's old position instead of giving them the other person's position.
- Assuming an order between two people who were never compared with each other or through a chain.
- Forgetting to add failed or absent students when the rank was given among passed students only.
Practice MCQs
- Sana is 14th from the left and 9th from the right in a row of girls. How many girls are in the row?
A) 22
B) 23
C) 21
D) 24
Answer: A) 22 — Sana is counted in both counts, so the total is 14 + 9 − 1 = 22. Adding without subtracting gives 23, and 21 or 24 come from subtracting or adding the overlap wrongly. - In a class of 45 students, Karan ranks 18th from the top. What is his rank from the bottom?
A) 27th
B) 29th
C) 28th
D) 26th
Answer: C) 28th — Rank from bottom = 45 − 18 + 1 = 28. Forgetting the +1 gives 27, and adding an extra 1 gives 29. - In a row of 40 children, Usman is 16th from the left. What is his position from the right?
A) 24th
B) 25th
C) 26th
D) 23rd
Answer: B) 25th — Position from the right = 40 − 16 + 1 = 25. The value 24 misses the +1, while 26 and 23 do not match the formula. - In a row of 35 students, Priya is 11th from the left and Hina is 15th from the right. If Priya is to the left of Hina, how many students are between them?
A) 10
B) 8
C) 11
D) 9
Answer: D) 9 — Hina is 35 − 15 + 1 = 21st from the left. Between positions 11 and 21 are 21 − 11 − 1 = 9 students, which matches 35 − (11 + 15) = 9. The other values miscount the ends. - In a row of 28 people, Asad is 18th from the left and Bina is 16th from the right. How many people are between Asad and Bina?
A) 5
B) 4
C) 6
D) 3
Answer: B) 4 — Bina is 28 − 16 + 1 = 13th from the left, so she is to the left of Asad. Between positions 13 and 18 are positions 14 to 17, which is 4 people. Using 28 − 18 − 16 gives a negative number, because the counts overlap. - In a row, Ahmed is 8th from the left and Vikram is 12th from the right. They interchange places, and Ahmed becomes 20th from the left. How many people are in the row?
A) 31
B) 32
C) 30
D) 27
Answer: A) 31 — After the swap Ahmed stands at Vikram's old place, so that place is 20th from the left and 12th from the right. Total = 20 + 12 − 1 = 31. The value 27 wrongly mixes Ahmed's old position with Vikram's. - Meera is 10th from the left and Faisal is 6th from the right in a row. When they interchange places, Meera becomes 15th from the left. What is Faisal's position from the right after the interchange?
A) 10th
B) 12th
C) 9th
D) 11th
Answer: D) 11th — Meera now stands in Faisal's old place, which is 15th from the left and 6th from the right, so the row has 15 + 6 − 1 = 20 people. Faisal now stands in Meera's old place, 10th from the left, which is 20 − 10 + 1 = 11th from the right. The value 10 is his position from the left, not the right. - In a queue, Rahul is 7th from the front. Bilal is 4 places behind Rahul and is 10th from the end of the queue. How many people are in the queue?
A) 21
B) 19
C) 20
D) 17
Answer: C) 20 — Bilal is 7 + 4 = 11th from the front and 10th from the end, so the queue has 11 + 10 − 1 = 20 people. Forgetting to subtract one gives 21; using Rahul's 7th place in place of Bilal's gives 16 or 17. - A is heavier than B, and B is heavier than C. D is heavier than A. Who is the lightest?
A) B
B) A
C) C
D) D
Answer: C) C — The chain is D, A, B, C from heaviest to lightest, so C is the lightest. B is heavier than C, and D is the heaviest of all. - Among five friends, P is taller than Q but shorter than R. S is shorter than Q, and T is taller than R. Who is in the middle by height?
A) P
B) Q
C) R
D) S
Answer: A) P — From tallest to shortest the order is T, R, P, Q, S, so P is third of five, the middle. R is second, Q is fourth and S is the shortest. - Ayesha scored more than Neha, and Neha scored more than Rohit. Kamran scored less than Ayesha. Who scored the least?
A) Rohit
B) Kamran
C) Neha
D) Cannot be determined
Answer: D) Cannot be determined — Ayesha is clearly the top scorer, and Neha is above Rohit. But Kamran is compared only with Ayesha, so he could be above or below Rohit. The lowest scorer could be Rohit or Kamran, and Neha cannot be the lowest because Rohit is below her. - In a class, Imran ranks 9th from the top and 26th from the bottom among the students who passed. 6 students failed and 3 were absent. How many students are in the class?
A) 34
B) 43
C) 40
D) 44
Answer: B) 43 — Passed students = 9 + 26 − 1 = 34. Adding 6 failed and 3 absent students gives 34 + 9 = 43. The value 34 counts only those who passed, 40 forgets the absent students and 44 forgets to subtract one. - In a row of boys, Arif is 10th from the left and Deepak is 8th from the right. There are exactly 3 boys between them. What is the minimum possible number of boys in the row?
A) 13
B) 21
C) 17
D) 14
Answer: A) 13 — If Arif is to the left of Deepak, the row has 10 + 3 + 8 = 21 boys. If the counts overlap, Deepak stands 4 places to the left of Arif, at 6th from the left, and he is 8th from the right, so the row has 6 + 8 − 1 = 13 boys (Arif is then 4th from the right). The smaller total, 13, is the minimum; 17 and 14 fit neither arrangement. - Nida is 15th from the left in a row of 40 girls. If she moves 6 places to the right, what is her new position from the right?
A) 19th
B) 20th
C) 21st
D) 26th
Answer: B) 20th — Moving 6 places to the right puts her at 21st from the left. From the right she is 40 − 21 + 1 = 20th. The value 21 is her new position from the left, and 26 is her old position from the right. - Among six friends, Ali is heavier than Bina and Esha but lighter than Danish. Chetan is lighter than Esha but heavier than Bina. Farhan is heavier than Danish. Who is the third heaviest?
A) Esha
B) Danish
C) Ali
D) Chetan
Answer: C) Ali — Farhan is above Danish, and Danish is above Ali. Ali is above Esha and Bina, and Esha is above Chetan, who is above Bina. The full order is Farhan, Danish, Ali, Esha, Chetan, Bina, so Ali is third. Danish is second, Esha fourth and Chetan fifth.
Questions
Why do we subtract 1 in L + R − 1?
Because the person whose position is given is counted twice: once in the count from the left and once in the count from the right. Subtracting 1 removes the double count.
How do I know whether two counts overlap?
Add the two positions given from opposite ends. If the sum is more than the total, the counts cross each other and the overlap formula applies. The safest way is to convert both positions to the same end and compare them directly.
What changes when two people interchange places?
Each person takes the other's old position exactly, from both ends. This gives you two counts for the same spot, which you can join with L + R − 1.
When is the answer 'cannot be determined' in comparison questions?
When two people are never compared, either directly or through a chain of other people. Their relative order is then unknown, so a question that depends on it has no single answer.