Hi All,
I want to compare two cell values that will have words in them. Each word will have a number associated with it (in no particular alphabetical order) and the comparison will return a Boolean as to whether cell1 "value" > cell2 "value".
I was hoping I could set up an array-type thing and then use an index query like this:
Word-Order = ("Bob","Jim","Ed","Keith"
cell1 = "Bob"
cell2 = "Ed"
Index(Word-Order,cell2)>Index(Word-Order,cell1) = True
Is that the best way to do it? I know I could set up a table and do a find and offset but this method looks like it couple be more elegant.
Any ideas on the code required as I can;t find the relevant Index function on help.
Many thanks,
Ig
I want to compare two cell values that will have words in them. Each word will have a number associated with it (in no particular alphabetical order) and the comparison will return a Boolean as to whether cell1 "value" > cell2 "value".
I was hoping I could set up an array-type thing and then use an index query like this:
Word-Order = ("Bob","Jim","Ed","Keith"
cell1 = "Bob"
cell2 = "Ed"
Index(Word-Order,cell2)>Index(Word-Order,cell1) = True
Is that the best way to do it? I know I could set up a table and do a find and offset but this method looks like it couple be more elegant.
Any ideas on the code required as I can;t find the relevant Index function on help.
Many thanks,
Ig