two vlookups and one hlookup in one formula

ryan640

Board Regular
Joined
Jan 14, 2015
Messages
75
Hi,

I have a table that I am unable to change however I need to make the table set up in a way that I can use to enter into Power BI.

On one sheet I have the months going across the top and I need to make a formula to bring the months amount into rows. I also need them to match two criteria as well.

Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]type[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[/TR]
[TR]
[TD]Ryan[/TD]
[TD]Account[/TD]
[TD]100[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]

Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]type[/TD]
[TD]month[/TD]
[/TR]
[TR]
[TD]Ryan[/TD]
[TD]Account[/TD]
[TD]Jan 100 (formula)[/TD]
[/TR]
[TR]
[TD]Ryan[/TD]
[TD]Account[/TD]
[TD]Feb 200 (formula)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You can unpivot in BI Tools/Power Query or with the pivot table wizard: multiple consolidation range window available in Excel for a while but somewhat hidden on later versions (ALT D P retrieves it).
 
Last edited:
Upvote 0
You can unpivot in BI Tools/Power Query or with the pivot table wizard: multiple consolidation range window available in Excel for a while but somewhat hidden on later versions (ALT D P retrieves it).

I'm not sure it will only be power BI. I need it to be set up without any blanks which is why I thought a formula would be good so then I can hide the sheet.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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