Hi
It's probably taking me longer to write this question that it will be for you to answer it )
Here's my problem, I'm making a schedule for my employees. I want to be able to type in the name of the possition (eg. CK1) and have the rest of that possition's info pop up. I made a list of all the possitions in the department, the times they work and how many hours that is.
To do this I used the formula:
=VLOOKUP(B7,Sheet2!$A$1:$C$40,3,FALSE)
It works, gives me all the info I need but leaves me with a #NA in the cells where nothing is being displayed.
<U>The problem:</U>
I need to sum the hours...using the =SUM(B9:H9)idea, I get a total of #NA because my vlookup returns with a #NA if nothing's entered in one of the days. Any way to have this sum up nice, or to have the cells where I have a VLOOKUP formula not display that ugly #NA?
Here's an example:
<pre>
Mon Tues Total
SMITH CK1 Cafe
Bob 5:30-2:00 7:00-3:30
8.00 8.00 16.00
Mon Tues Total
SMITH #33
Bob 7:00-3:30 #NA
8.00 #NA #NA
</pre>
Any help would be greatly appreciated.
Thanks!
It's probably taking me longer to write this question that it will be for you to answer it )
Here's my problem, I'm making a schedule for my employees. I want to be able to type in the name of the possition (eg. CK1) and have the rest of that possition's info pop up. I made a list of all the possitions in the department, the times they work and how many hours that is.
To do this I used the formula:
=VLOOKUP(B7,Sheet2!$A$1:$C$40,3,FALSE)
It works, gives me all the info I need but leaves me with a #NA in the cells where nothing is being displayed.
<U>The problem:</U>
I need to sum the hours...using the =SUM(B9:H9)idea, I get a total of #NA because my vlookup returns with a #NA if nothing's entered in one of the days. Any way to have this sum up nice, or to have the cells where I have a VLOOKUP formula not display that ugly #NA?
Here's an example:
<pre>
Mon Tues Total
SMITH CK1 Cafe
Bob 5:30-2:00 7:00-3:30
8.00 8.00 16.00
Mon Tues Total
SMITH #33
Bob 7:00-3:30 #NA
8.00 #NA #NA
</pre>
Any help would be greatly appreciated.
Thanks!