Guys, I need urgent help with converting of the below raw data into the below format of data to be presented. I am open to all other methods, not necessarily using vlookup/hlookup.
Thank you.
(Raw data)
<tbody>
</tbody>
(Format to be presented)
<tbody>
</tbody>
Thank you.
(Raw data)
Fruit | Year | Price($) |
Apple | 2014 | 1.32 |
Apple | 2016 | 1.49 |
Apple | 2017 | 1.55 |
Pear | 2013 | 1.48 |
Pear | 2015 | 1.60 |
Pear | 2017 | 1.29 |
<tbody>
</tbody>
(Format to be presented)
2013 | 2014 | 2015 | 2016 | 2017 | |
Apple | na | $1.32 | na | $1.49 | $1.55 |
Pear | $1.48 | na | $1.60 | na | $1.29 |
<tbody>
</tbody>