legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,158
- Office Version
- 365
- Platform
- Windows
The following array formula returns only a single value to a cell and when I evaluate it (pressing F9 key) it only shows for example "101000", this is because it's only looking at a single cell (i.e. see blue A2)
{=IF(SUM(--(MID(A2,Rules!$I$3,Rules!$G$3)=Rules!$D$3:$D$6))>0,VLOOKUP(MID(A2,Rules!$I$3,Rules!$G$3),Rules!$D$3:$E$6,2),"SGL Not Found")}
However, when I change the formula from A2 to an array of cells A2:A12 (see red A2:A12) it return a #N/A error.
{=IF(SUM(--(MID($A$2:$A$12,Rules!$I$3,Rules!$G$3)=Rules!$D$3:$D$6))>0,VLOOKUP(MID($A$2:$A$12,Rules!$I$3,Rules!$G$3),Rules!$D$3:$E$6,2),"SGL Not Found")}
How can I fix my formula to show an array of answers instead of a single value?
{=IF(SUM(--(MID(A2,Rules!$I$3,Rules!$G$3)=Rules!$D$3:$D$6))>0,VLOOKUP(MID(A2,Rules!$I$3,Rules!$G$3),Rules!$D$3:$E$6,2),"SGL Not Found")}
However, when I change the formula from A2 to an array of cells A2:A12 (see red A2:A12) it return a #N/A error.
{=IF(SUM(--(MID($A$2:$A$12,Rules!$I$3,Rules!$G$3)=Rules!$D$3:$D$6))>0,VLOOKUP(MID($A$2:$A$12,Rules!$I$3,Rules!$G$3),Rules!$D$3:$E$6,2),"SGL Not Found")}
How can I fix my formula to show an array of answers instead of a single value?