tropics123
Board Regular
- Joined
- May 11, 2016
- Messages
- 85
Hi everyone, I need help with this formula. What I'm trying to do is, if the result from a different spreadsheet has the word:
1) "elapsed" anywhere in the sentence, then put in words "Elapsed Time"
2) "consecutive" anywhere in the sentence, then put in the words "Elapsed Time"
3) "hours" anywhere in the sentence, then put in the words "Hours of Service"
If none of those keywords are found, then return the answer "none". My formula is below. I think I'm close, but something is missing. Thank you in advance!
=IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*elapsed*","Elapsed Time",IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*consecutive*","Elapsed Time",IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*hours*","Hours of Service","None")))
1) "elapsed" anywhere in the sentence, then put in words "Elapsed Time"
2) "consecutive" anywhere in the sentence, then put in the words "Elapsed Time"
3) "hours" anywhere in the sentence, then put in the words "Hours of Service"
If none of those keywords are found, then return the answer "none". My formula is below. I think I'm close, but something is missing. Thank you in advance!
=IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*elapsed*","Elapsed Time",IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*consecutive*","Elapsed Time",IF(INDEX('Combined FTW database report'!2:1048576,MATCH('Plan Design'!$B$2,'Combined FTW database report'!$K$2:$K$1048576,0),MATCH("FKEligibleYOS",'Combined FTW database report'!1:1,0))="*hours*","Hours of Service","None")))