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

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


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