![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Jefferson City, Missouri
Posts: 383
|
Suggestions are very welcome with this. I have a workbook I'm making, in column A there will be a number 1-85 then in column D will be a figure that will match that number, I will be using a userform to input the data from an invoice. What I need to know is, instead of using 85 IF statements how else would I get the information from the text boxes to the correct cells? I have one text box that the user will enter a number from 1-85 and another text box where they will enter a figure.
Better explination: In cells A10:A95 there is a number from 1-85, if the user enters say 45 in the first textbox, what other way can I use so that when the okay button is clicked the 45 will end up in cell A55 and the figure in the second textbox will end up in D55? I'm thinking maybe a Index/Match or VLookup but I'm not very familiar with either of those. Thanks, Sorry, I only need the figure to be posted into cell D55 if the first textbox contains the number 45. _________________ Soon I hope to be answering alot of these questions instead of asking them. viper [ This Message was edited by: viper on 2002-05-11 23:00 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Not tested Viper...
This would actually make your placement range A11:A95 not A10:A95... Tom [ This Message was edited by: TsTom on 2002-05-11 23:13 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: Kansas City, MO
Posts: 14
|
One way you could do it, the number from the first textbox could be inserted into a selection, and then write in column D in the corresponding row selection. So you basically select row of whatever number is entered in the first text box.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Jefferson City, Missouri
Posts: 383
|
Tom,
Formula worked great, Thank you.
__________________
I appreciate the help from everyone at Mr. Excel. viper |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|