Min Max on string

J

John

Hi there,

Can anyone tell me if the Min Max shapesheet functions can take a cell
reference? I've got the following User defined cells:

User.List ="10,12,14,20"
User.Min ="MIN(User.List)"
User.Max ="MAX(User.List)"

In this situation, User.Min and User.Max evalute to 0 (rather than 10 and 20
respectively). I assume this is because they are seeing User.List as a
string?

Is there a way round this?

Thanks in advance.

Best regards

John
 
D

David Parker

Yes and Yes, eg:

User.Min=MIN(INDEX(0,User.List,","),INDEX(1,User.List,","),INDEX(2,User.List,","),INDEX(3,User.List,","))
 
J

John

Hi David,

Thanks for this. Makes for a long formula if you have a long array!

Best regards

John
 
D

David Parker

Fortunately they can be as long as you like.... and it would be shorter if
you used ";" as a list seperator because this is the default in Visio,
therefore you can omit the third argument to INDEX()
 
J

John

Will convert to ";" immediately!

Thanks David

David Parker said:
Fortunately they can be as long as you like.... and it would be shorter if
you used ";" as a list seperator because this is the default in Visio,
therefore you can omit the third argument to INDEX()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top