Matching multiple information and bring the result

Ibrarbutt

New Member
Joined
Jul 23, 2015
Messages
30
Table 1

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]

Booked By[/TD]
[TD]Hotel Name[/TD]
[TD]Room Type[/TD]
[TD]No of Room[/TD]
[TD]Amount<strike></strike>[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Royal Hotel[/TD]
[TD]Single Room[/TD]
[TD]3[/TD]
[TD]1400[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Royal Hotel[/TD]
[TD]Twin Room[/TD]
[TD]2[/TD]
[TD]1600[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Mid Night Hotel[/TD]
[TD]Single Room[/TD]
[TD]4[/TD]
[TD]1200[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]Royal Hotl[/TD]
[TD]Single Room<strike></strike>[/TD]
[TD]4[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]ZYX[/TD]
[TD]3 star Hotel[/TD]
[TD]Twin Room[/TD]
[TD]1[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]below 1000 records
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

















Result (1) Required
Table 2


[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]
Hotel Name[/TD]
[TD]Single Room[/TD]
[TD]Twin Room[/TD]
[TD]Amounts[/TD]
[/TR]
[TR]
[TD]Royal Hotel[/TD]
[TD]Total of above[/TD]
[TD]Total of above[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mid night Hotel[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3 Star Hotel[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]may be 10 type of hotel
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]











Result (2) Required

i have table with the list of booked by, i need to match with above table and bring below result.
Table 3

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]
Booked By[/TD]
[TD]Single Room[/TD]
[TD]Twin Room[/TD]
[TD]Amounts[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Match with booking with table 1 and bring results as total[/TD]
[TD]Total of above[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ZYX[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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