Hello, I am looking for a macro to search column C and insert an array formula one row below every occurrence of "Resource Description." Then, in column A of each row that a formula will be inserted, there is a number - which calculates how many rows to drag this array formula down. After the array formula is inserted, I would like to drag the formula down that many rows, and paste as values.
Key issue: the cell reference bolded/underlined in the code below needs to refer to 1 row above the cell it is being inserted into AND must be locked with $ as it is shown below. This formula / drag technique is extracting a unique list of Resource IDs from another worksheet, based on certain criteria). I am also having issues with the paste as values.
Appreciate any support you may be able to provide!
Example:
CELL C23= "Resource Description"
ENTERED INTO CELL C24:
CELL C28= "Resource Description"
ENTERED INTO CELL C29:
"Resource Description" will be found many times in column C and will not always be in the same rows.
Key issue: the cell reference bolded/underlined in the code below needs to refer to 1 row above the cell it is being inserted into AND must be locked with $ as it is shown below. This formula / drag technique is extracting a unique list of Resource IDs from another worksheet, based on certain criteria). I am also having issues with the paste as values.
Appreciate any support you may be able to provide!
Example:
CELL C23= "Resource Description"
ENTERED INTO CELL C24:
Code:
{=IFERROR(INDEX('Staffing Plan'!$K$14:$K$1008, MATCH(0, IF($T20='Staffing Plan'!$Y$14:$Y$1008, COUNTIF([I][B][U]$C$23:$C23[/U][/B][/I], 'Staffing Plan'!$K$14:$K$1008), ""), 0)),"")}
CELL C28= "Resource Description"
ENTERED INTO CELL C29:
Code:
{=IFERROR(INDEX('Staffing Plan'!$K$14:$K$1008, MATCH(0, IF($T20='Staffing Plan'!$Y$14:$Y$1008, COUNTIF([I][B][U]$C$28:$C28[/U][/B][/I], 'Staffing Plan'!$K$14:$K$1008), ""), 0)),"")}
"Resource Description" will be found many times in column C and will not always be in the same rows.
Last edited: