RossLarson
New Member
- Joined
- Nov 10, 2012
- Messages
- 4
My data is laid out in a large grid (194R X 50C)
E6:BB6 is top row and
E199:BB199 is bottom row.
I want to check if some element is in each row of the grid and create an arrray of 1s and 0s. This is to multiply with another array of 1s and 0s that I already have so I can sum up the result.
However, the followign piece is giving my #VALUE errors when I evaluate the formula
this causes the surround match and if statements to return a #N/A error
Which makes the whole function return #N/A
(obviously this is entered with Ctrl + Shift + Enter)
Any ideas on why the offset is erroring out?
Any help is much appreciated.
E6:BB6 is top row and
E199:BB199 is bottom row.
I want to check if some element is in each row of the grid and create an arrray of 1s and 0s. This is to multiply with another array of 1s and 0s that I already have so I can sum up the result.
However, the followign piece is giving my #VALUE errors when I evaluate the formula
Code:
OFFSET(Part1!E5:BB5,ROW(1:194),0,1,50)
this causes the surround match and if statements to return a #N/A error
Code:
IF(MATCH(C5,OFFSET(Part1!E5:BB5,ROW(1:194),0,1,50),0) > 0, 1, 0)
Which makes the whole function return #N/A
Code:
=SUMPRODUCT(IF(MATCH(C5,OFFSET(Part1!E5:BB5,ROW(1:194),0,1,50),0) > 0, 1, 0), IF(Part1!$B$6:$B$199=1,1,0))
(obviously this is entered with Ctrl + Shift + Enter)
Any ideas on why the offset is erroring out?
Any help is much appreciated.