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)))),"")
[TABLE="width: 804"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]JOB DESCRIPTION 1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Concrete pump[/TD]
[TD]5[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Supply and Install Reinforcement[/TD]
[TD]5[/TD]
[TD]t[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Form Work Install Rate[/TD]
[TD]5[/TD]
[TD]M2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Trench and Backfill: 300-600mm width to depth 1400mm Trench[/TD]
[TD]6[/TD]
[TD]m[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB DESCRIPTION 2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Concrete Supply ONLY[/TD]
[TD]5[/TD]
[TD]M3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Form Work Install Rate[/TD]
[TD]5[/TD]
[TD]M2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Place and Compact Fill around Structures 750mm width[/TD]
[TD]5[/TD]
[TD]m3[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
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)))),"")
[TABLE="width: 804"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]JOB DESCRIPTION 1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Concrete pump[/TD]
[TD]5[/TD]
[TD]Day[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Supply and Install Reinforcement[/TD]
[TD]5[/TD]
[TD]t[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Form Work Install Rate[/TD]
[TD]5[/TD]
[TD]M2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Trench and Backfill: 300-600mm width to depth 1400mm Trench[/TD]
[TD]6[/TD]
[TD]m[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]JOB DESCRIPTION 2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Concrete Supply ONLY[/TD]
[TD]5[/TD]
[TD]M3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Form Work Install Rate[/TD]
[TD]5[/TD]
[TD]M2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Place and Compact Fill around Structures 750mm width[/TD]
[TD]5[/TD]
[TD]m3[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]