Hi Alan
You're right! Two right parentheses are missing and
must be added at the end. I guess Hans did that. I
don't understand, why it won't work for you.
It puzzled me, that they were missing because I
copied the formula directly from a cell in an international
macro sheet, but I have now found out, what has
gone wrong.
I work in a Danish version of Excel, and when the formula
is OK, I insert an international macro sheet and copy
the formula to a cell in that sheet to get the formula
translated to English. Then I copy the formula from the
formula bar and paste it to the posting.
It now turns out, that when I click to the right of this
particular formula in the formula bar (to drag to the start
to select it all), the formula wordwrap at another point in
the formula (!), thereby making the last line longer, which
means that the cursor is inserted inside the formula instead of
at the end (this behaviour is not duplicated in an ordinary
sheet). So, what happened was, that I clicked at the end,
the cursor was placed to the left of the two rightmost
parentheses (which I didn't notice), I dragged to the start
of the formula and copied.
It may have occurred in other of my postings (God forbid!),
and I can only hope, that it hasn't caused too much baldness
among the users
Thanks for your posting, Alan! It made it possible for me
to find this "ugly fellow".
In the future I will *always* click at the start of the formula
and drag to the end!