In <
[email protected]>, Roger Govier
Not really sure what you are after here.
Perhaps LD is 12 hours, ND (Normal Day) is 8 hours SD (Short Day)
is 5 hours
Maybe, if LD etc is in column B
=COUNTIF(B:B,"LD")*12 + COUNTIF(B:B,"ND")*8 + COUNTIF(B
,"SD)*5
Another approach is with LOOKUP and vectors. I use the following,
for example, for helping to find part of the symbol for a call
option (security derivative) based on the month the call expires:
=LOOKUP(C1,{"APR","AUG","DEC","FEB","JAN","JUL","JUN","MAR","MAY","NOV","OCT","SEP";"D","H","L","B","A","G","F","C","E","K","J","I"})
I'm posting my example partly to help me point out that the data
need to be in order, be that numerical or alphabetical (string
order), for results to work. So, continuing with Roger's
example of "ND" and "SD" for "normal" and "short" days in
addition to the original poster's "LD", we could have:
=LOOKUP(C1,{"LD","ND","SD";12,8,5})
That should do it, I think.
Dallman Ross