+ Reply to Thread
Results 1 to 11 of 11

Recalling info into another row

Hybrid View

  1. #1
    Registered User
    Join Date
    12-19-2007
    Posts
    12

    Recalling info into another row

    I am trying to recall info from the rows in another part of a worksheet when I type the first column. For example, I have over 300 rows of:

    Apples 155 12oz red
    Orange 120 10oz orange
    Banana 50 11oz yellow
    etc.

    I want to select or type only the word:

    Apples

    And have the rest of the columns fill in with the rest of the info, like so:

    Apples 155 12oz red

    A filter would work well to select, except I need about 7 in the worksheet as it is a form and excel only allows one. I can’t seem to make the advanced filter work. An IF function would work, except I'd have to put all the words to match in " " marks, which would be very time consuming.

    Anyone have any ideas of how I can recall the info from my list to the 7 lines I need to copy them into??

    Any ideas would be greatly appreciated.

    Thank you!
    Last edited by VBA Noob; 12-19-2007 at 01:43 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    use a vlook up or index/match.
    http://www.exceltip.com/show_tip/Loo...ions./775.html

  3. #3
    Registered User
    Join Date
    12-19-2007
    Posts
    12
    Those didn't work quite right - at least with me doing them - I've attached a txt of what I'm working on. It's a food service production report. What I need is, if I were to type "Fruit Juices" in A3....B3 would automatically fill in with the product code "A1-L" from B32, C3 would automatically fill in with "75 cs" from C32, G3 & H3 would fill in with "4.00 oz", respectivally, and so on. I need to have that option for each rows 3-27. It would be great if the list could be altered/updated and pull up the updated info when "Fruit Juices" or whatever is entered - like if the oz changed to 3.00 or something.

    Would an advanced filter even work? I've been fooling with it all day to no avail.

    Plz HELP!!!
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i imported that to excel but not sure if its laid out correctly. zip and attach the excel file please.
    vlook up would not work as data is not sorted . so index match is the way to go.
    Last edited by martindwilson; 12-19-2007 at 04:05 PM.

  5. #5
    Registered User
    Join Date
    12-19-2007
    Posts
    10
    Try creating a validation list.

  6. #6
    Registered User
    Join Date
    12-19-2007
    Posts
    12
    zip file attached

    Thank you!!
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    It can be done with Vlookup. You could use something like this. I typed Fruit Juices in cell A13 and used the following formula in B13

    =VLOOKUP($A13,$A$42:$I$340,2,0)

    and pulled up the appropriate information. Copy the formula over to C13 and change the row number (shown bold in formula above) from 2 to 3 and you will have the correct info in that cell. However, your Lookup area is frought with peril. You are using spaces to indent some of your information and your lookups will not work correctly. It would be better to type your info into the cells and format them using indent, center or right to display it as you want it to show. If you have any questions, come back.

    Hope that helps,

    Dean

  8. #8
    Registered User
    Join Date
    12-19-2007
    Posts
    12
    Also, can I hide the #N/A's until they get filled in? Thank you so much!

  9. #9
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    You need to change the column number in lookup range to the last column that contains information you need to pull.

    =VLOOKUP($A13,$A$42:$I$340,2,0))

    Change the bold area to $M$340 or $Z$340 or whatever. However, it's best not to make the range much larger than what you will actually use.

    As an additional aid use the formula below if you don't wish to see #N/A when the Lookup cell is blank.

    =IF($A13="","",VLOOKUP($A13,$A$42:$I$340,2,0))

    See ya,

    Dean

  10. #10
    Registered User
    Join Date
    12-19-2007
    Posts
    12

    Talking

    Thank you a lot! That really saves the day!!

  11. #11
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280
    Glad it helped. Thanks for the feedback.

    See ya,

    Dean

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1