Using index/match with columns and rows - tables and how to automatically copy

agwalsh
agwalsh used Ask the Experts™
on
I'm attaching a file. In the formulas sheet I have set up the first column (B - Carlow heading in table) to use index match to pull in the matching data from the Housing survey sheet. I get that I can copy/paste across and amend Carlow to matching counties. But if I wanted to just be able to copy this formula across...what tweak do I need to add to the formula to do this?
EE_check_national_housing_developme.xlsx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Microsoft Excel Expert
Top Expert 2014
Commented:
just put this formula in  B2 and drag right and down

=INDEX(Table1[[Carlow]:[TOTAL]],MATCH([@[2014 UFD Survey]],Table1[2014 UFD Survey],0),MATCH(Table13[[#Headers],[Carlow]],Table1[[#Headers],[Carlow]:[TOTAL]],0))

see attached.
EE_check_national_housing_developme.xlsx

Author

Commented:
OK, I will try that but couple of questions first .. :-) What's the [Carlow]:[TOTAL]] bit? I actually experimented quite a bit with the #headers option but I couldn't get it to work? Thanks - much appreciated.
Actually I get what the  [Carlow]:[TOTAL]] bit is ah, BUT could I just add that to the formula by picking Carlow from the dropdown in the formula bar, then entering : , then just picking Total from the list?
Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
well, index and match is easy but it becomes a bit tricky if the range of lookup rows and lookup columns are not matching the number of rows and columns in the data referece. besides, using tables are good but again understanding the structural reference is confusing, so i suggest you read useful blog on table references from my friend Jon's blog
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Author

Commented:
Yes, tables are really powerful but my understanding of the full ramifications of the structural references you have up there is a bit shaky, so need to spend some time on that. Thank you so much though :-)

Author

Commented:
Did what I required and gave me the impetus to really get to grips with structural references.. Thanks
Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
you are welcome. thanks for the feedback

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial