Lookup word and value
Hi Ron
I don't think that would ignore the spaces, it would reduce the total
value by 32 for each space found wouldn't it?
I think you would need to use
SUBSTITUTE(A1," ","") for each occurrence of (A1) in your formula, or
add to the formula
+(LEN(A1)-LEN(SUBSTITUTE(A1," ","") ))*32
--
Regards
Roger Govier
"Ron Rosenfeld" wrote in message
...
On Sun, 8 Jan 2006 16:08:08 -0000, "Rob"
wrote:
Hi,
I have a school project that I'd like to produce a Excel formula for.
We
have two columns, the first has letters and the second has numbers eg.
cell
A1 = A, cell B1 = 1, cell A2 = B and cell B2 = 2 and so on to Z = 26.
I have a simple look up formula that sums the value of numbers
assigned to
each letter entered into several cells but I'd like to formula (thing
an
array) whereby I type a word into a single cell and in another cell
the
value is shown? The letters entered could contain spaces eg a first
name
and surname and I guess shouldn't be longer than 26 characters.
Any points most welcome, Rob
With your word in A1, and assuming the spaces should be ignored:
=SUMPRODUCT(CODE(UPPER(MID(A1,ROW(INDIRECT("1:"&LE N(A1))),1)))-64)
--ron
|