I would like to multiply, row-by-row, two columns in an Excel sheet (in order to take the median of the resulting column).

1  3
2  5
4  2

Should become


How can I do that in a formula (i.e. without creating a separate column with the multiplication result)?


You want an array formula...

Assuming your data starts in A1, you can type:


and the press Ctrl + Shift + Enter to enter it into the cell as an array formula. If you do it correctly, you'll see the formula enclosed in curly braces by Excel.

  • Thanks a lot! I didn't know you had t use ctrl+shift+enter for that. – Jonas Jun 22 '10 at 11:10

In excel, you can multiply cells together in the median formula to get the result.

The median of {3, 10, 8} = 8 in excel you can use Median(A1*B1, A2*B2, A3*B3) to get the same result. Provided the first number "1" starts on A1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.