Skip to main content
Best answer by Werner_E

If you really prefer to rather modify the vector, replacing zeros by NaNs, you may do it like this:

Werner_E_0-1727803859782.png

 

Personally I would prefer using a more generic, versatile utility function

Werner_E_0-1727807256532.png

 

 

4 replies

23-Emerald V
October 1, 2024

Could you kindly post your "CPT Input gef.xlsx" workbook, please?  I tried substituting CPT Input, but that is throwing up errors trying to define each element of qcza and fs.

 

Stuart

14-Alexandrite
October 1, 2024

yes sure

Thank you 

23-Emerald V
October 1, 2024

Thank you.

25-Diamond I
October 1, 2024

Why don't you just use "try... on error...." in the calculation of R ?

BTW, writing 100% has no effect, its just a multiplication by the number 1.

If you wan the result to be displayed as % value, you have to format the result accordingly.

23-Emerald V
October 1, 2024

The gef Excel workbook cleared up the initial errors..  There are quite a few further down the Mathcad worksheet, though.  More importantly, there are only 26 pages, so page 28 has gone walkabout.  I couldn't find an area in the Mathcad worksheet that looked like the above, either - although I might have missed it.   Can you check please check that the Mathcad worksheet you posted is the same one that has the problem? (I've sometimes been guilty of not saving a worksheet before posting it, so these things can happen)

 

Stuart

25-Diamond I
October 1, 2024

Maybe this helps.

No need for a 28 page worksheet which takes long to load, takes long to finish calculating and does not contain the problematic region at all!

 

Better for future questions: Create a small(!!!) worksheet with dummy data which shows the very same error!

 

Werner_E_0-1727803361543.png

 

Werner_E25-Diamond IAnswer
25-Diamond I
October 1, 2024

If you really prefer to rather modify the vector, replacing zeros by NaNs, you may do it like this:

Werner_E_0-1727803859782.png

 

Personally I would prefer using a more generic, versatile utility function

Werner_E_0-1727807256532.png

 

 

14-Alexandrite
October 6, 2024

 

 

Thank u