Column A contains 1's or 0's, 1 meaning what's in the cell to the right of it (in B) should be included, 0 excluded.
I then want in C1, say, a text such as ="The following companies are not included in the mean: "[list of excluded]
Now, I obviously want the list of excluded companies (the names in column B) to be separated with comma and the last on introduced with an " and " in front of it.
I also want this all to be flexible, so I can turn off and on companies using the switch in column A.
Is there any clever way to do this?
Was thinking maybe there's a funky LISTIF-CSE-function type one could construct... but can't get anywhere.
Many thanks...
I then want in C1, say, a text such as ="The following companies are not included in the mean: "[list of excluded]
Now, I obviously want the list of excluded companies (the names in column B) to be separated with comma and the last on introduced with an " and " in front of it.
I also want this all to be flexible, so I can turn off and on companies using the switch in column A.
Is there any clever way to do this?
Was thinking maybe there's a funky LISTIF-CSE-function type one could construct... but can't get anywhere.
Many thanks...