help in re-writing this formula
Posted by Cliff on January 05, 2002 2:40 PM
I am currently using the following formula:{=choose(min(if((['Labor.xls]Day 1'!$h$32:'[Labor.xls]Day 1'!$h$36=8/24),{1;2;3;4;5}))+1,"","Kerwin","Cliff","Jamie","Adam","Fonda")}. This formula works excellent for my store. But I want the formula to be not limited to this store. I wish to send the file to other stores throughout my company. The problem with the above formula is that it displays the names, I need for it to display whatever names are in cells D32,d33,d34,d35,and d36. In the formula above it checks cells H32:H36 for the time 8:00 and then displays the names. But for it to be available for other stores without me changing all the names to the people who work at each store it just needs to display the contents in cells D32:D36. Like, if the formula finds 8:00 in cell H32 then it will display whatever name is in D32, if not it will then check H33, if it finds 8:00 it will display the name in D33 and so on. If it doesn't find 8:00 in any of the cells it will leave blank. I've tried replacing the names with just d32,d33,d34,d35,d36 but I get the number 0 with that, if I enclose each cell with "" then I get D32 or the others. Can I use the same formula to reference a cells contents instead of placing the names in it?