Index Match Multiple Lines of Data based on changing Queries

Detonator12

New Member
Joined
Jul 16, 2009
Messages
17
Hello, i have modified a couple of formulas I found, but am struggling to make them dynamic enough without having to edit the formula when copy pasting.

All of this data below is reading from another sheet based on "JOB DESCRIPTION 1" field. Is there a way I can modify this formula below, to handle easier copy pasting without modifying the formula?

Cell C40 is the first job description in this example. When copy pasted i need to modify it, and also modify the ROWS(C$42:C42) parts of the formula.
Then its dragged down per column.

=IFERROR(IF(ROWS(C$42:C42)>COUNTIFS('Detailed Breakdown'!B:B,$C$40),"",INDEX('Detailed Breakdown'!$C$1:$C$9999,SMALL(IF('Detailed Breakdown'!$B:$B=$C$40,ROW('Detailed Breakdown'!$C$1:$C$9999)-ROW('Detailed Breakdown'!$C$1)+1),ROWS(C$42:C42)))),"")

JOB DESCRIPTION 1
Concrete pump5Day
Supply and Install Reinforcement5t
Form Work Install Rate5M2
Trench and Backfill: 300-600mm width to depth 1400mm Trench6m
JOB DESCRIPTION 2
Concrete Supply ONLY5M3
Form Work Install Rate5M2
Place and Compact Fill around Structures 750mm width5m3

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

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You are having to modify the formula to accomodate for the job description because each description is of different length, correct? Or is there soem other reason?

Are all job Descriptions the same, eg: "Job Description" + increasing value?

Jon
 
Upvote 0

Forum statistics

Threads
1,215,401
Messages
6,124,705
Members
449,182
Latest member
mrlanc20

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