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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Plz i need advice for excel mathcad connection

sm�ller-2
11-Garnet

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?

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 😃

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

Top Tags