0

The formula in Microsoft Excel is not any different than in the Google Sheets. But, I get different results

left Microsoft Excel, right Google Sheets
      (left) Microsoft Excel,              (right) Google Sheets

The Google Excel formula works; the same Google Sheets formula does not work in the Microsoft Excel one.

How can I fix this? Ignore the Dutch separator ; – in the English version with the separator , I have the same problem.

decibel
  • 23

1 Answers1

4

The problem on the Excel side is that you seem to be expecting SEARCH(rangevalue) to return an array, but, as far as I can tell from the question, you have not entered it as an array formula.  If you click in cell D2 and press Ctrl+Shift+Enter, your formula will work.

  • I think that to perform an array formula in Google Sheets, you need to preface the formula with =(ArrayFormula( instead of the button combo above. – O.Allen Apr 17 '18 at 08:58
  • @O.Allen:  Well, I don’t know much about Google Sheets, so I won’t dispute what you’re saying — except to point out that, in the image in the question, it appears that SEARCH(F$2:F$5, A2) is returning an array (like {10, #VALUE, #VALUE, #VALUE}) in Google Sheets without using ArrayFormula. – G-Man Says 'Reinstate Monica' Apr 17 '18 at 17:55