Hi,
I need a formula to find a specific text within a text string.
e.g.:
"Sales Account Representative Europe" in cell A1
I want to build a formula in cell A2 that would return "Sales" in that text string above
Thanks
Hi,
I need a formula to find a specific text within a text string.
e.g.:
"Sales Account Representative Europe" in cell A1
I want to build a formula in cell A2 that would return "Sales" in that text string above
Thanks
=left(a1,5)
Gary's Student
the "sales" can be anywhere in the text string. it could be in the middle, first, or last...
O.K. then.
If A1 contains the full string and B1 contains "Sales"
then the formula:
=FIND(B1,A1) will tell you where in A1, B1 can be found. For example if A1 contains:
hfshfjssalesvcjvh
the formula will return 8
Is this what you need???
no, i dont need "8". i need "Sales"
in addition on the reaction of Jacobshavn in #4.
![]()
=if(FIND(B1,A1)>0,"sales","there is no sales in this cell")
Last edited by oeldere; 09-13-2012 at 01:41 PM. Reason: adition changed in addition
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
perhaps like this..
=IF(ISNUMBER(SEARCH("Sales",A1)),"Sales","")
Life's a spreadsheet, Excel!
Say thanks, Click *
Then use:
=IF(ISERROR(FIND(B1,A1)),"",B1) with the big string in A1 and "Sales" in B1
If "Sales" is found in A1, then "sales" is displayed.
If "Sales is not found in A1, then nothing is displayed.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks