Index with if nested formula

MEHTA JR

New Member
Joined
Dec 22, 2017
Messages
4
I Want to add place reference in the formula

right now formula is working correct but if two place have same rate than it takes both place rates.

Place
Hotel Name
Rate
Shimla
Sukh Sagar
3000
Dharamshala
The Eden
3000

<tbody>
</tbody>

Shimla Hotel Name Dharamshal

3000 Sukhsagar (This Display) 3000 Sukhsagar (Not display)
The Eden (Not Display) The Eden (This Display)

Given Formula

{=INDEX($B$7:$B$16,SMALL(IF($E$19=$C$7:$C$16,ROW($C$7:$C$16)-ROW($C$7)+1),ROW(2:2)))}

In Shimla only Sukhsagar Displayed not The Eden and in case of Dharamshala only The Eden Displayed not Sukhsagar

How I can give Hotel name reference in formula

please advise

Jiten
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How will the data look like in the end? What do you want to have exactly?
 
Upvote 0
CityHotel NameRent
DalhousieThe Ark2600
DalhousieMohan Palace2600
AmritsarRitz Plaza3500
AmritsarNamskar Residenc2600
ManaliKhooshbu Resort2200
ManaliUtopia2000
DharamshalaEden3000
ShimlaSukhsagar3000
ShimlaDe Park2500

<tbody>
</tbody><colgroup><col><col><col></colgroup>



<tbody>
</tbody><colgroup><col><col><col></colgroup>
ShimlaHotelDharamshalaHotel
Rent3000Eden3000Eden
SukhsagarSukhsagar

<tbody>
</tbody><colgroup><col><col span="4"></colgroup>


When I give following formula to give the list of hotel according to rent cell value i.e when I entered 3000 then it give me 2 hotel name but hotel sukhsagar is belonging to Shimla not Dharamshal while hotel eden is belonging to Dharamshal not shimal.

but when I put 3000 against Shimla it gives me only Shimla belonging hotel details.

please help me to sort out this problem


Jiten
 
Upvote 0
Row\Col
A​
B​
C​
1​
CityHotel NameRent
2​
DalhousieThe Ark
2600​
3​
DalhousieMohan Palace
2600​
4​
AmritsarRitz Plaza
3500​
5​
AmritsarNamskar Residenc
2600​
6​
ManaliKhooshbu Resort
2200​
7​
ManaliUtopia
2000​
8​
DharamshalaEden
3000​
9​
ShimlaSukhsagar
3000​
10​
ShimlaDe Park
2500​
11​
RentShimlaDharamshala
12​
3000​
SukhsagarEden
13​
14​

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

=IF(ROWS(B$12:B12)>COUNTIFS($A$2:$A$10,B$11,$C$2:$C$10,$A12),"",INDEX($B$2:$B$10,SMALL(IF($C$2:$C$10=$A12,IF($A$2:$A$10=B$11,ROW($B$2:$B$10)-ROW($B$2)+1)),ROWS(B$12:B12))))
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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