Find word within certain lookup reference
Solved/Closed
Related:
- Find word within certain lookup reference
- Ms word pdf extension - Download - Other
- Https //accounts.google.com/sign in/v1/lookup - Guide
- Ms word mod apk for pc - Download - Word processors
- Word full screen - Guide
- Free word processor - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
17 Oct 2011 à 08:58
17 Oct 2011 à 08:58
Hi gadir_arfan,
I have no clue what you want to put in C1, C2, C3.
Combine contents of E1 and F1 in C1?
What do you you want to lookup?
Best regards,
Trowa
I have no clue what you want to put in C1, C2, C3.
Combine contents of E1 and F1 in C1?
What do you you want to lookup?
Best regards,
Trowa
19 Oct 2011 à 10:22
Thanks for your attention to my problem.
I want to put in "General Cost or Travel Expenses" in C1, C2, C3.
I hope you can help me.
20 Oct 2011 à 10:36
What determines what to put in C1, C2, C3?
Is it dependent of the value in column E like (formula in C1)?:
=IF(OR(E1="Electricity",E1="Telephone"),"General Cost",IF(E1="Travel","Travel Expenses",""))
Please clarify why C1 should be General Cost or Travel Expenses.
Best regards,
Trowa
21 Oct 2011 à 06:01
the logical for C1 :
{ IF in A1 contain word electricity or telephone or travel (etc), vlookup(logical test result,E1:F3,2,false), blank }
24 Oct 2011 à 09:36
Now that I fully understand your query, I'm wondering how many different words are (could be) in column A?
If there are not too many you could use column G (or any other column) to indentify the word that is in column A and then do the logical test in column C based on the values in column G.
Put this formula in column G:
=IF(ISERROR(SEARCH("electricity",A1)),IF(ISERROR(SEARCH("telephone",A1)),IF(ISERROR(SEARCH("travel",A1)),"No results",3),2),1)
Put this formula in column C:
=IF(G1="No results","No results",VLOOKUP(IF(G1=1,"electricity",IF(G1=2,"telephone",IF(G1=3,"travel",""))),$E$1:$F$3,2,FALSE))
Keep in mind that you can hide column G or make its text color white to keep your sheet clean.
Best regards,
Trowa
25 Oct 2011 à 08:28
Your formula works well and in line with my expectations. Actually about ten to fifteen different words, maybe I can split the two in which each section will distinguish five or seven different words.
Thank you very much for your help and success for you Trowa.