Management & CommerceHardBusiness analyst · Excel test

A1 contains 'Professional Services'. What does =IF(ISNUMBER(SEARCH("serv", A1)), "Service line", "Other") return?

  1. A. Other, because SEARCH is case-sensitive
  2. B. #VALUE!, because 'serv' is only part of a word
  3. C. Service line, as SEARCH finds 'serv' at 14
  4. D. 14, the position SEARCH returns

Correct answer: C. Service line, as SEARCH finds 'serv' at 14

SEARCH is not case-sensitive and returns the position of 'serv' (14) in 'Professional Services'. ISNUMBER turns that into TRUE, so the IF returns 'Service line'. If the text were absent, SEARCH would return #VALUE! and ISNUMBER would give FALSE.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic