×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

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!


Resources