Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

Mathcad - Excel Component

IA_12699372
10-Marble

Mathcad - Excel Component

Hi all, 

 

Currently experiencing an issue with an Excel component on a colleagues computer. 

The Mathcad file, attached, works on my computer fine but not my colleagues. States his "excel is busy". 

Any ideas why it works on my computer but not my colleagues?  

 

Many thanks,

Iain 

 

FYI, I am using Mathcad Prime 10.0.0.0 (and is my colleague). 

ACCEPTED SOLUTION

Accepted Solutions

Hi Iain,

Here is answer to your question.  Got sidetracked?

Capture.JPG

Cheers

Terry

View solution in original post

7 REPLIES 7
LucMeekes
23-Emerald IV
(To:IA_12699372)

Thanks Luc, 

 

I am trying to do it via READEXCEL but struggling to use Vector & Matrix functions to look for corresponding section property data. 

See attached, any ideas? 

 

Kind regards,

Iain 

LucMeekes
23-Emerald IV
(To:IA_12699372)

Hi Iain,

 

The hlookup function (from help):

hlookup(z, A, r, [modifier | f])—Looks in the first row of matrix A for a given value z, subject to the conditions of the optionalmodifier, and returns the value(s) in the same column(s) in the row specified by r. When the value(s) are returned, they appear in a vector, starting from the left.

 

In your case for

LucMeekes_0-1770730581833.png

 

the parameters to hlookup are:

z=SectionName = the string "W14X38"

A= The matrix SP read via ReadExcel (you didn't provide the Excel file, so I cannot run the sheet)

r= SP<3>The full fourth column of SP, so a vector, where it requires a scalar, pointing to a specific column. Hence the error. Maybe just use '3' here?

[modifier|f] = in you provide a unit instead of a modifier string or function.

 

The string doesn't appear to be present in the first (top) row of matrrix SP, so a 'not found' error is issued once you correct the Area error...

 

Study the help to find out how to use the functions.

Success!
Luc

 

Hi Iain,

This is from 2022 three and a bit long years ago so uses a superseded Excel file.

Uses two lookup combo boxes rather than lookup functions to get at the data.

Includes imperial and metric columns.

Relevant Units are defined in first worksheet in the Excel workbook.

 

Been looking to update to v16 of the database and add automatic units.

 

Cheers

Terry

Hi Iain,

Have started updating to v16.  Got the W sections done.

Is there any call for me to finish this?

Capture.JPG

Shows how to look up a value from data based on selection of section.

Note the first column of the Excel sheet with "W" "M" etc designations is not imported so first column in data is section name.

Capture2.JPG

Cheers

Terry

Hi Iain,

Here is answer to your question.  Got sidetracked?

Capture.JPG

Cheers

Terry

Thank you Terry

Announcements


Top Tags