cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

This value must be a scalar

TR_9781963
8-Gravel

This value must be a scalar

I have used units but when writing the function to excel I am getting error. Please help 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi

Here is the file working.

The problem is B1 is defined in your sheet as a range variable. 

Looks in PTC Prime exactly like a vector.

To change it to a vector just use the hack of putting an equal sign after it to show it.

Capture.JPG

View solution in original post

5 REPLIES 5

hi,

 

WRITEEXCEL can't do units. See excerpt from mathcad help.

I suggest to divide the matrix you'd like to export with "UnitsOf(variable)" before writing to Excel.

 

Regards

 

Raiko

 

The problem is not WRITEEXCEL as you correctly strip the units when you use it.

The problem is that B1 is a range, not a vector, and so it can't be used as the argument for function A,tR.

Find attached two ways to deal with that situation.

Werner_E_0-1685018948295.png

 

Raiko
16-Pearl
(To:Werner_E)

You're right. I didn't notice it.

Werner_E
24-Ruby V
(To:Raiko)

It doesn't matter anyway. If you look at all the questions this user already had posted it seems, that he isn't really interested in the answers - at least he seems to think that it isn't necessary to come back, close the threads and maybe comment the answers given.

Hi

Here is the file working.

The problem is B1 is defined in your sheet as a range variable. 

Looks in PTC Prime exactly like a vector.

To change it to a vector just use the hack of putting an equal sign after it to show it.

Capture.JPG

Top Tags