Freddybutler
New Member
- Joined
- Jun 5, 2017
- Messages
- 2
Hello,
I am new to VBA and have run into an issue with an array formula over 255 characters. The array formulas are different for each cell and are already present in each cell, so I would like to loop through a range, increment a number by 1, and then apply the cntrl+shift+enter to each cell.
An example of one of the formulas is (I am aware this code is incomplete in many ways, I just need a push in the right direction):
For Each cell In Range("G258:AK258")
My first issue is that the formula is so long I am given an error message.
For each next cell in the range I want the green number to increase by one
Thanks in advance,
I am new to VBA and have run into an issue with an array formula over 255 characters. The array formulas are different for each cell and are already present in each cell, so I would like to loop through a range, increment a number by 1, and then apply the cntrl+shift+enter to each cell.
An example of one of the formulas is (I am aware this code is incomplete in many ways, I just need a push in the right direction):
For Each cell In Range("G258:AK258")
Selection.FormulaArray = _
=IFERROR(INDEX($C$221:$C$236,MATCH(1,($I$221:$I$236>=TIMEVALUE("8:59 PM"))*($I$221:$I$236<=TIMEVALUE("9:55 PM"))*($D$221:$D$236<>0)*(IF(ISNUMBER(SEARCH("'",$D$221:$D$236)), VALUE(LEFT($D$221:$D$236,FIND("'",$D$221:$D$236)-1)), "inch")=1),0)),INDEX($W$221:$W$236,MATCH(1,($AC$221:$AC$236>=TIMEVALUE("8:59 PM"))*($AC$221:$AC$236<=TIMEVALUE("9:55 PM"))*($Y$221:$Y$236<>0)*(IF(ISNUMBER(SEARCH("'",$Y$221:$Y$236)), VALUE(LEFT($Y$221:$Y$236,FIND("'",$Y$221:$Y$236)-1)), "inch")=1),0)))
My first issue is that the formula is so long I am given an error message.
For each next cell in the range I want the green number to increase by one
Thanks in advance,