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 - Integrating the Engineering Ecosystem
Aras Innovator provides multiple options for integrating data between systems, depending on the scenario. Utilizing the right approach to meet specific business requirements is vital. These needs range from authoring tools, federating data from various and dissimilar databases, and triggering processes and workflows. Download Now
Research Report - Simulation-Driven Design for SOLIDWORKS Users
In this engineering.com research report, we discuss the rising role of simulation and the paradigm shift commonly called the democratization of simulation. In particular, we focus on how SOLIDWORKS users can take advantage of simulation-driven design through two analysis tools: SOLIDWORKS Simulation and 3DEXPERIENCE WORKS. Download Now
White Paper - Industry 4.0 and the Future of Engineering Education
With industries becoming more automated, more tech-driven and more complex, engineers need to keep their skills and knowledge up to date in order to stay on top of this wave—and to be prepared for the Industry 4.0 future. The University of Cincinnati offers two online Master of Engineering degree programs designed specifically for practicing engineers. Download Now
eBook - The Design Gridlock Manifesto
In this eBook, you’ll learn 6 ways old CAD technology slows your company down and hear how design teams have put those problems to rest. “The Design Gridlock Manifesto” shares first-hand modern CAD experiences from 15 companies around the world. 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