asign a number to a text string
Thank you this is just what I needed!! It works great and it is very easy to
configure!
I tried everybody else's suggestions but I had problems with them. For the
sake of it I'll quickly say what didn't work:
Max : somehow, when I copy the cells it doesn't display any result even
though it changes the ranges and I input information in them. Furthermore I
couldn't reproduce it in another place in the worksheet (of course I changed
the ranges...even though I didn't really understand the $J$1 position in your
example and the $I$2:$I$5,0....
muddan madhu : your version seemed nice but I somehow coudn't make it work
(even though I just quickly tried it in some other place on the sheet...)
"Joerg Mochikun" wrote:
Here is a simplified example, using the power of range names:
Put following texts into A10:A14: Select,Yes,No,Sometimes,Maybe
Now put next to it into B10:B14 the corresponding values: 0,1,0,0.25,0.5
Now select A10:B14 and go to menu InsertNameCreatecheck "Left column" OK
You've just created range names for B10 to B14.
Create a cell validation for cell B1 by using the list in A10:A14 as
criteria.
Choose "Select" from the drop-down list in B1 and copy the cell through D1.
You now should have values "Select" in B1:D1.
Now here comes the meat:
Put following formula into A1:
=INDIRECT(B1)+INDIRECT(C1)+INDIRECT(D1)
This will result in the sum of B1:D1, based on the text is these cells.
Since the formula will result in an error message if any of the cells is
blank, I added the "Select" value as a default (if you want to be nice you
can use "Please_select"). Of course you could also trap the error with an
additional IF condition, but I wanted to keep the formula simple.
Cheers,
Joerg Mochikun
"gimme_donuts" wrote in message
...
it has to be very easy but I have not found the way to do it.
What I'm tryig to do is some list of companies and for their services I
want
to use Yes for 1, No for 0, Sometimes for 0.5 and Maybe for 0.25.
just asigning these numbers to the text is what I want, so that it is
easely
readable and editable for everyone and it still can make some addition of
it
in the end.
Example:
Kwik e-mart Fruits - Vegetables - Meat - Fish - Fresh
Total
score
Yes Yes Sometimes No Maybe
2.75
To add this data, I used the validation function so that there is a
dropdown
menu for each criteria (Yes, No, Sometimes, Maybe)
|