Forum

Notifications
Clear all

Index & match Formula Error

10 Posts
2 Users
0 Reactions
129 Views
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

Hi There,

I need to find a value that is looking up 3 values., Value 1 is the Group, i.e. Hilton, Value 2 is the week i.e W1, value 3 is the Occupancy %

I have tried creating a VLookup,Index,Match formular but both the Week & Occupancy ref are in the same column

Week is in cell AC7

Occupancy is in cell AC8

I believe the index formular looks up row then column, but need to look up column then column again

=VLOOKUP($BA$2,'REV OCC'!E8:AKF322,(INDEX('REV OCC'!E8:AKF322,MATCH(BA4,'REV OCC'!E8:AKF8,0),MATCH(A3,'REV OCC'!N7:AKF7,0))),0)

Any help would be greatly appreciated

Paul

 
Posted : 25/05/2018 6:48 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

If your data is consistent, you can use INDEX/MATCH.

To get the 2nd row (Occupancy%), just add 1 to the MATCH value.

Please refer to the attachment.

Hope this helps.

Sunny

 
Posted : 25/05/2018 10:12 am
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

Hi Sunny,

Thanks for the reply, however unable to make the formula work due to how the info is laid out, have attached a 'clean' version of the report so you have a better idea what I require.

FYI the reason I'm doing this is because I need to add columns into the 'Rev-Occ' data tab which means I would have to update every VLookup column index

Thanks

Paul

 
Posted : 28/05/2018 11:03 am
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

sorry forgot to attach file

 
Posted : 28/05/2018 11:14 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

Take a look at the attachment.

The final formula may look complicated but the logic is easy to understand.

Hope this helps.

Sunny

 
Posted : 28/05/2018 12:48 pm
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

Thanks Sunny,

You are a star!!!

 

Regards

Paul

 
Posted : 29/05/2018 8:21 am
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

Hi Sunny,

Really sorry but have found an issue, when I updated the other columns to have W1, W2, W3 etc the formula does not work as it does not refer to the header in E4 'Occupancy' which is in row 8 on the 'Rev'Occ'?, I tried adding another MATCH formula but it did not work.

Any thoughts?

Thanks

Paul

 
Posted : 29/05/2018 12:20 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

The data that you gave us earlier is very different from the one you gave us now. The suggested solution is based on what you gave us earlier.

The header is a critical component for the lookup and should have been given to us in full and not amended later that ruined the solution.

If you need to have W1, W2 etc in multiple columns as a header, I suggest you insert them in row 8. 

Leave row 7 as it is with only a single W1, W2 etc but hide the entire row 7.

Sunny

 
Posted : 30/05/2018 8:53 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

My 2nd attempt

I created a helper row 7 that concatenated rows 8 and 9 to create a unique value.

I then use the same technique as my previous suggestion to get the row and column.

You can hide row 7.

Hope this helps.

Sunny

 
Posted : 31/05/2018 4:30 am
(@benjamip)
Posts: 89
Estimable Member
Topic starter
 

Thanks Sunny

Issue solved, fantastic help

Regards

Paul

 
Posted : 31/05/2018 7:30 am
Share: