Does If + vlookup work in this case

excelzunder

New Member
Joined
Apr 10, 2018
Messages
1
Hello,

I need to complete the table but I'm not sure how to write the formula in this case.
Could you please advise.

Chart A: original data

[TABLE="width: 500"]
<tbody>[TR]
[TD]Project
[/TD]
[TD]Product
[/TD]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]A
[/TD]
[TD]Store1
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]B
[/TD]
[TD]Store2
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]A
[/TD]
[TD]Store1
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]C
[/TD]
[TD]Store3
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]A
[/TD]
[TD]Store1
[/TD]
[/TR]
[TR]
[TD]2233
[/TD]
[TD]A
[/TD]
[TD]Store1
[/TD]
[/TR]
[TR]
[TD]2233
[/TD]
[TD]B
[/TD]
[TD]Store2
[/TD]
[/TR]
[TR]
[TD]2233
[/TD]
[TD]A
[/TD]
[TD]Store1
[/TD]
[/TR]
</tbody>[/TABLE]

Chart B: I need to complete "Store" column by formula

[TABLE="width: 500"]
<tbody>[TR]
[TD]Project
[/TD]
[TD]Product
[/TD]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]A
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]B
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]A
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]1973
[/TD]
[TD]C
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]2233
[/TD]
[TD]A
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]2233
[/TD]
[TD]C
[/TD]
[TD]???
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Let A:C house Chart A and E:G ChartB.

In G2 control+shift+enter, not just enter, and copy down:

=INDEX($C$2:$C$9,MATCH($F2,IF($A$2:$A$9=$E2,$B$2:$B$9),0))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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