Forum Discussion
pemorisak
Sep 27, 2022Copper Contributor
Formula Help
Hello! I am looking to add a formula into an excel document in which it looks at three different columns of data and based on which column it is in, leaves a specific value. Is this possible? F...
- Sep 28, 2022
pemorisak As a variant, perhaps the attached file contains something you could use. It finds the number from B1 in the data array (C1:E15 in this example). This returns a single number 1 (if found) and many zeros or all zeros if not found. Then, MMULT enables you to "calculate the column number in which B1 is found (1, 2 or 3). If not found it returns 0 which you then suppress (make invisible) with a custom format.
A1 contains this formula:
=SUM(MMULT(IFERROR(FIND(B1,C1:E15),0),{1;2;3}))
Detlef_Lewin
Sep 28, 2022Silver Contributor