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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,225,754
Messages
6,186,825
Members
453,377
Latest member
JoyousOne

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