I'm using this formula -- =IF(ISNUMBER(SEARCH("-E",F2)),"E") -- and would like to add a second condition if F2 contains "-W" then return "W".
Is that possible?
Let me know if you need any additional info.
Thanks in advance.
Hi bmoney,
Welcome to the forum.
Yes this is possible, use the following formula:-
Also, you did not mention what will be the output if the cell neither contains -E or -W. If you wish you can edit last two quotes ("") in the formula to have that thing into the picture.=IF(ISNUMBER(SEARCH("-E",F2)),"E",IF(ISNUMBER(SEARCH("-W",F2)),"W",""))
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
Hello bmoney,
try this.
=LOOKUP(9E300,SEARCH({"*","-E","-W"},F2),{"N/A","E","W"})
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks