Macro to Find specific cell and expand into an array using offset func

jackcel

New Member
Joined
Jul 16, 2014
Messages
5
Dear all,

I am looking to create a summary sheet ("summary") which pulls data from respective tabs labeled in Year and Quarter formats ("2014Q3"). Probably easier for me to send the excel over.

Due to the non-standardized nature of the data source and multiple tables within a tab ("2014Q3"), I can't really apply an indirect function to extract data.

I would like to create a macro to:

1. search tabs by referencing the headers in the summary sheet (see below)
2. search the postal districts and parameters listed in the summary sheet (ie postal district 03, < 100 sqm etc - thought of applying an index match for this.)
3. populate the data in the summary sheet.

I have no clue on how to accomplish this besides forming each array manually using an index match function.

Thank you so much!

Jack

Sample Table 1 in 2014Q3 - there are multiple tables of different postal districts and rental for each level and size. I thought of standardizing the top label into say Level 1 25th - so i can apply an indirect function. But how can i automate this through a macro? Each quarter has multiple tables.

Postal DistrictLevel 1 Level 2 or higher
05 25thMedian75th25thMedian75th
Percentile PercentilePercentile Percentile
< 100 sqm******
100 - < 200 sqm20.6920.9321.6317.1220.1420.76
200 - < 300 sqm***18.4419.1022.18
300 - < 1,000 sqm***28.4828.9841.44
>= 1,000 sqm******

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

Summary Sheet

Postal District03These are the parameters i intend to put into the dynamic formula
Size< 100 sqm
LevelLevel 1
Type25th
2012Q12012Q22012Q32012Q42013Q12013Q22013Q32013Q42014Q12014Q22014Q32014Q4
Rent (PSM)

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

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,504
Messages
6,125,183
Members
449,212
Latest member
kenmaldonado

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