Extract data from Columns and rows

Marlei

New Member
Joined
Jan 22, 2019
Messages
1
view
Hi everyone and thanks for reading this message I hope it makes sense.

I have this exercise I found on the internet in which i need to return the price of the breakfast in a chart depending on the room type and Hotel Category.

Basically I need to multiply the "Breakfast price" with the amount of people in Column "Type of Room" depending on what category is. I managed to create a formula with a lot of nested "IF" but I'm sure there is another easy way to get the same result or getting an array something. check the screenshot
view
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Excel 2010
ABCDEFGHI
1Your Table:Bring Back Dinner Cost if:
2Type*** Category Type ***Category Type is >>>Medium
3of RoomSmallMediumLargeType of Room is >>>Suite $ 28.10
4Regular 48.00 26.90 41.40
5Double 26.40 34.70 11.00
6Suite 24.10 28.10 23.10
7Deluxe 42.60 23.00 14.50
8
9

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I3=INDEX($C$4:$E$7,MATCH(H3,$B$4:$B$7,0),MATCH(I2,$C$3:$E$3,0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Cross posted https://www.excelforum.com/excel-general/1261242-extract-data-from-columns-and-rows.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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