I'm looking for a formula for use in powerpivot, that can convert the following formula (I do not wanna use any VBA, only generate a caluculated column in powerpivot, based on a formula)
The formula checks for 3 different values, and returns a status code for each. If no match is found it returns "no match".
The formula looks for the criteria (1234 or 1857201 or 1857206) in column2 (item) and writes a status code in column3 (output). At the same time it also checks for simular order numbers (column1). So the same status code is present for all order-number rows. (If a match in column2 / item is found)
Se the excample in regular excell here:
http://www.filedropper.com/book3
Code:
=IF(SUMPRODUCT(([Item]=1234)*([Order]=A2))>0;"YES MATCH = 1234";IF(SUMPRODUCT(([Item]=1857201)*([Order]=A2))>0;"YES MATCH = 1857201";IF(SUMPRODUCT(([Item]=1857206)*([Order]=A2))>0;"YES MATCH = 1857206";"NO MATCH")))
The formula checks for 3 different values, and returns a status code for each. If no match is found it returns "no match".
The formula looks for the criteria (1234 or 1857201 or 1857206) in column2 (item) and writes a status code in column3 (output). At the same time it also checks for simular order numbers (column1). So the same status code is present for all order-number rows. (If a match in column2 / item is found)
Se the excample in regular excell here:
http://www.filedropper.com/book3