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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Plz i need advice for excel mathcad connection

sm�ller-2
12-Amethyst

Plz i need advice for excel mathcad connection

Hey,

maybe anyone can help me.

During Readexcel of a column i encountered an error.

I have the columns in excel via a when function so that: when(A1=0;"";A1) ----> Need a NaN in mathcad when the column in Excel shows a zero.

THe problem is the vector in mathcad is not NaN it is ""

And when i want to do a  max function mathcad encounters an error.

So i would need a NaN so that i can calculate with the vector something.

Now, how can i manage the function in excel so that in Mathcad the empty cells are regognised as NaN so that i can calculate somthing with it.

I dont know how i can do the function in excel.

Best thx ,

Stefan

7 REPLIES 7

the function when(A1=0;NV();A1) is nto working either 😞

Seems to be that the cell has to be completly empty

Doesn't EXCEL recognize NaN?

Werner_E
25-Diamond I
(To:sm�ller-2)

You have to write in Excel the string "NaN"  (in double quotes):

IF(A1=0; "NaN"; A1)  (or WENN(....) in the German version)

Don't be tempted to use Excels NA() as Mathcad won't recognize it.

WE

Okay, EXCEL doesn't use NaN as not a number, it's a string.  So we need to have Mathcad check:

To Excel The string "NaN" ist just a normal string

Its Mathcad which converts that special string to its NaN automatically

So no extra checking in Mathcad is necessary.

WE

Bets Thx "NaN" is working 😃

Werner_E
25-Diamond I
(To:sm�ller-2)

Please close your thread by marking them as "answered".

Announcements

Top Tags