×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Sending/Receiving Data From Excel

Sending/Receiving Data From Excel

Sending/Receiving Data From Excel

(OP)
OK.  Here is the situation.  I have a very complex Excel spreadsheet.  I want to vary two of my inputs, and check what happens to a single output.  I want to do this thousands of times so that I can analyze some trends.

I thought what I would do is create an Excel component within Mathcad, enter a range as the input, and get a range as an output.  I cannot make this work.  Is this possible?

For example, take an Excel spreadsheet as follows:

Cell A1:  [input 1]
Cell A2:  [input 2]
Cell A3:  =A1*A2  [output]

Now in Mathcad, I want to create the component with the inputs and outputs as lissted above and then feed inputs like:

[input 1]    A:=1,2..10
[input 2]    B:=4

I would like the output to be in such a form that I can graph the input on the x axis and the output on the y axis of a line graph.

Any ideas?

RE: Sending/Receiving Data From Excel

The linkage between components is rather slow; you're probably better off writing a macro in VBA to iterate through your worksheet and then either plot in Excel or copy the results to Mathcad.



You could try posting this on the Mathcad forum:

http://collab.mathsoft.com/~Mathcad2000

TTFN

RE: Sending/Receiving Data From Excel

I just had the same situation and determined that you can't do this in Mathcad.  If you try to input a range of variables in the excel sheet, mathcad inputs them into excel as an array furthermore, you can't insert a component in a Mathcad program loop.  I ended up using the scenario function of excel.  It does just what I think you want to do and it is all within excel so it is pretty fast.  The only drawback is that is does not automatically update, so if you change something in your sheet, you have to rerun the scenario to get a new summary.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close