I am trying to convert an array formula into vba.
Here is my simplified version:
=IF(SUMPRODUCT((A1:A5="a")*(B1:B5=1))*(C1:C5)=1,True,False)
In this case ‘a’ and ‘1’ are the match I’m looking for, so 'True' would be returned when a match is found. 'False would allow teh code to loop down to the next row. If a match is found, another piece of code I have will paste in a value to the adjacent empty cell.
The data is arranged so there can only ever be one match.
Please say if I’m not being clear enough.
Here is my simplified version:
=IF(SUMPRODUCT((A1:A5="a")*(B1:B5=1))*(C1:C5)=1,True,False)
In this case ‘a’ and ‘1’ are the match I’m looking for, so 'True' would be returned when a match is found. 'False would allow teh code to loop down to the next row. If a match is found, another piece of code I have will paste in a value to the adjacent empty cell.
The data is arranged so there can only ever be one match.
Please say if I’m not being clear enough.