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


getting data based on user input

getting data based on user input

getting data based on user input

Hello,  I have a spreadsheet with about 30 rows and 30 columns. Column 1 has values say from 1 to 30 and row 1 has similiar values. I would like to create a macro or vb program where the user could put in two values say 1 and 5 and then the value in column 1 row 5 would be displayed. This is probably simple to you folks but I have never wrote a macro and haven't done any vb programming in years.

RE: getting data based on user input

When you say


where the user could put in two values
Where would they put them? A specific cell? A text box? A different sheet? A VB App?

RE: getting data based on user input

Well that would be part of my problem.  But I would use whatever method is eaisest for user input.

RE: getting data based on user input

So, have the user put the values in separate cells.  Excel help has explanations on how to do indirect addressing.


RE: getting data based on user input

Basically put =INDIRECT($A31) in cell B31 and then enter the value C5 in cell A31. Excel will put the value that is in cell C5 in cell B31. Does that make sense?

RE: getting data based on user input

I am not explaining this correctly.  In the spreadsheet I have 4/5 in column 1 row 5 cell. I have 4 in column 5 row 5.  I want to input 4/5 and 4 and get/display the data in cell 5,5.
Thanks for your patience.  I am just trying to learn this stuff.

RE: getting data based on user input

So if you input 4/5 and 4, is that suppose to search the columns for the value 4/5 and then get the value in the 4 column? I guess I am not following your algorithm.

RE: getting data based on user input

I currently have printed out a spreadsheet with data. The inner cells have data relating to the data in column 1 and row 1.  If value 1 = 4/5 and value 2 = 4, I go down column 1 until I see 4/5 (this data is at row 6) I then go over row 1 and find 4 this data is at column P.  So the inner data is in cell p6.  This is the data I am trying to pull up with out scanning the spreadsheet.  In other words I would like to enter 4/5 and 4 and have the data in cell p6 displayed.  Just trying to speed up a manual activity.

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


eBook - Manufacturing the Cars of Tomorrow
In this ebook, we'll explore how additive manufacturing is going to transform the way cars are made. This includes commentary from thought leaders such as Ford's CTO, Ken Washington, Customer case studies of ways 3D printing is being used today, and a variety of part examples where 3D printing is already impacting how automobiles are made. Download Now
White Paper - Smart Manufacturing for Semiconductor
New technologies and approaches present great opportunities for semiconductor manufacturers to achieve high levels of innovation, yield and improvement. This white paper explores some of these cutting-edge technologies and how they can be applied effectively in the semiconductor industry. Read about how Smart Manufacturing is transforming the semiconductor industry. Download Now
White Paper - Analysis and Simulation in Aircraft Structure Certification
Organizations using simulation and analysis tools effectively see the benefits in their ability to achieve certification faster and with drastically less total cost than those who do not maximize these tools. Read this White Paper to learn about how digital tools such as analysis and simulation help in aircraft structure certification. 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