Management & CommerceVery hardBusiness analyst · Excel test

A1 contains the text 'Delhi-North-Zone7'. What does =MID(A1, FIND("-", A1) + 1, FIND("-", A1, FIND("-", A1) + 1) - FIND("-", A1) - 1) return?

  1. A. Nort
  2. B. North
  3. C. North-Zone7
  4. D. Delhi

Correct answer: B. North

The first '-' is at position 6, so the second search starts at 7 and finds the second '-' at 12. MID starts at 7 and takes 12 − 6 − 1 = 5 characters: 'North'. The nested FIND is what locates the second hyphen; without it you would get the rest of the string or the first segment.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic