I am not new to excel or vba; however, I am having some difficulty with the lack of a boolean "or" function in excel. As you know, the "&" function works fine, but you cannot insert the "|" or "||" operator into a formula. Is there an alternative that will give me an "or"?
Note: The pre-defined "or function" (i.e., [or(condition1, condition 2...)] is not helpful in this instance. It evaluates values in another set of cells rather than the current cell and returns "true" or "false" instead of a numeric value.
The code that I am currently using is the following: =IF(IFERROR(INDEX($H$2:INDIRECT("H"&ROW()-1),MATCH(7,$D$2:INDIRECT("D"&ROW()-1),0)),0)=99,(INDIRECT("F"&ROW())*2),INDIRECT("F"&ROW()))
The value "7" is currently being matched. I need it to match multiple values, such as Match(5|6|7,... or Match (5||6||7,...
Any bright ideas?
microsoft-excel
shareeditflag
asked 1 min ago
Noah
1
Bookmarks