The point of this is to assign a code such as 17 to a cell on sheet 3 if at sheet 1 in C5 there is an asterisk in that cell. Makes for making the rules easier with IF the value is 17 do this elseif 18 do this etc. Will make another part of this project easier by looking for numeric values vs string matching. So its like casting a string into an integer I guess, but the escape character ~ tilde is not working so it cant find * when using ~* as "~*"
Was thinking that LOOKUP function was going to be easy in that it would avoid having to use a lengthy IF statement chain to assign a value to a cell based on the targeted string info.
Was hunting around in google search and found this and thought of how much easier it is to assign a different value to a matched value so if you had A, B, C, D and 1, 2, 3, 4 and the cell on sheet 1 at C5 was populated with B the cell with this formula on sheet 3 would show a value of 2
=LOOKUP(Schedule!C5,{"2200","2200+2OT","2200+4OT","0200+4OT","0400+2OT","0600","0600+2OT","0600+4OT","1000+4OT","1200+2OT","0200","0200+2OT","0200+4OT","1800+4OT","2000+2OT","AL","~*","ML","LV","nomatch"},{"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"})