combination vlookup & hlookup

Kevinlzh

New Member
Joined
Sep 21, 2017
Messages
3
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)
FruitYearPrice($)
Apple20141.32
Apple20161.49
Apple20171.55
Pear20131.48
Pear20151.60
Pear20171.29

<tbody>
</tbody>


(Format to be presented)
20132014201520162017
Applena$1.32na$1.49$1.55
Pear$1.48na$1.60na$1.29

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Assuming your raw data is in cells A1:C7 and your 2nd table is in A9:F11, enter the below (confirm with ctrl+shift+enter)
=INDEX($C$2:$C$7,MATCH($A10&B$9,$A$2:$A$7&$B$2:$B$7,0))
 
Upvote 0
Assuming your raw data is in cells A1:C7 and your 2nd table is in A9:F11, enter the below (confirm with ctrl+shift+enter)
=INDEX($C$2:$C$7,MATCH($A10&B$9,$A$2:$A$7&$B$2:$B$7,0))

Wow you are a lifesaver! Thank you so so much!:)
 
Upvote 0

Forum statistics

Threads
1,215,829
Messages
6,127,130
Members
449,361
Latest member
VBquery757

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top