Mar 14, 2020 12:01 PM
I have a tab with a list of hospitals. Some of them have the tag “COE”.
On an other tab, I’m listing the feedback gathered from hospitals.
Some feedback came from many different hospitals.
So I add the name of the hospitals on the column “requesters”
Now, I want to sort my list of feedback, and put on the top the feedback coming from “COE” hospitals.
How can I do that?
I thought to use a formula to have “COE” on the name of my hospital, and do something like “IF on the requester list there is an hospital with “COE” on it, then check the box” (for example).
But I have NO IDEA how do do this… and there is maybe an even easier way to do it…
Thank you very much for your help!
Mar 14, 2020 02:27 PM
What about something like this?
IF(SEARCH("COE", {requesters}), "COE")
Mar 17, 2020 04:44 PM
It works! Thank you very much!!!
And just 2 more questions (because I really have a lot of trouble with the formula:
Thank you VERY much!
Mar 17, 2020 05:26 PM
Well, those formulas would be much more complicated.
This formula will tell you the number of "COE"s in a field.
(
LEN({requesters})
-
LEN(
SUBSTITUTE(
{requesters},
"COE",
""
)
)
)
/ 3
If you have multiple fields, you can have an even more complicated formula. Here I have collapsed the above formula to save space. You would need to edit the name of requesters2
to match your actual field value.
((LEN({requesters}) - LEN(SUBSTITUTE({requesters},"COE","")))/3)
+
((LEN({requesters2}) - LEN(SUBSTITUTE({requesters2},"COE","")))/3)
Mar 17, 2020 06:13 PM
It works!! You’re the best, thank you very much!! :tada: