# Index/Match Excel Formula assistance required

1. ## Index/Match Excel Formula assistance required

Have just joined the forum and would appreciate some help.

I have a sheet (attached) containing data of persons occupying properties and their dates of occupation. Each property is listed across the top of the sheet and the occupants filled in against their dates of stay.

I would like to put a formula on the analysis sheet in the shaded cells so that when i key a property code into (cell c3) for any property then it would copy across the occupants for that property on each date. I have tried index and match as =INDEX(analysis!b5:f5,MATCH(\$c\$3,analysis!\$b\$3:\$f\$3)) but it either picks up the wrong property or nothing at all.

Is this the correct formula usage or is there another formula that I should be using.

2. ## Re: Excel Formula help required

Hi
I'm afraid you'll have to adapt your thread title to forum rules ( more descriptive) before getting help

3. ## Re: Index/Match Excel Formula assistance required

You need a zero as third argument in the MATCH function, i.e. like this

=INDEX(Analysis!B5:F5,MATCH(\$C\$3,Analysis!\$B\$3:\$F\$3,0))&""

Although that doesn't check the dates explicitly , just assumes that the dates in A6 down match those in the table - if you want to explicitly check dates too then try this version

=INDEX(Data!B\$5:F\$21,MATCH(A6,Data!A\$5:A\$21,0),MATCH(C\$3,Data!B\$3:F\$3,0))&""

4. ## Re: Index/Match Excel Formula assistance required

Many thanks daddylonglegs, have used your first solution and it is exactly what I was looking for.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1