Thanks, I got the second example to work on a cell
I don't know how to put the other examples in?
(Not really good at Excel)
My values are in C12, D12, E12, etc.
I would like to have the function operate on several cells
But I guess I'll have to study some more .....
Thanks for the Help.