Which formula should be used in cell A4 to show the results as shown below

Which formula should be used in cell A4 to show the results as shown below?

Which formula should be used in cell A4 to show the results as shown below?