+ Reply to Thread
Results 1 to 18 of 18

Drop down menu-import layout

  1. #1
    Registered User
    Join Date
    06-08-2008
    Posts
    10

    Drop down menu-import layout

    Hello-

    I have an excel template we use to import product data into one of our systems. I need to find the correct "formula" that would allow us to select from a drop in one sheet, the correct category and then automatically update the cell next to it with the categories correct "ID". All of our categories and category ID's are in the same workbook but in a different sheet. We can use the drop down now, which shows all the categories in the sheet, but it will not include the category ID. I tried to attach our import book but no luck.


    The "import layout" sheet includes the "category ID" and "category" headers. The category column has a drop down which is derived from sheet "categories". In sheet "categories" you see the actual category listing and in the adjoining cell, it's corresponding "ID".

    When the correct category is selected on the importlayout sheet, the corresponding (and correct) category ID needs to populate the "category ID" cell.

    How do I do this?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Mikeyy,

    Welcome to the Forum!

    Sometimes it is difficult to upload files workbook files to the forum due to various reasons. When this happens, you can try to upload the workbook again, or you can zip it and then upload it. I have had more consistent results posting zipped files. Give it try.

    Sincerely,
    Leith Rross

  3. #3
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Lets try a zip then-
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Mikeyy,

    Have a look at the link below. After looking at your workbook, I think this approach will work for you.

    Excel -- Data Validation -- Create Dependent Lists

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Thanks. I read through it a couple of times and see where it may work. I got sidetracked on the dependant area as my data is in a different sheet. The example seems to refer to the source data being in the same sheet.

  6. #6
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Okay...I took a look at this and don't see where it will accomplish what I need. I have data in two separate sheets. This example does not address that. I did do some other exploring and I don't think this formula will work. It appears this is designed to pull a drop down list based on an entry....I need it to pull one cell based on an entry.

  7. #7
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day and welcome to the forum,

    Try the vlookup formula.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  8. #8
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Quote Originally Posted by ratcat
    G'day and welcome to the forum,

    Try the vlookup formula.
    Vlookup by itself will not do it. I am not fluent with writing formulas, where can one find a quick tutorial so I can get this knocked out?

  9. #9
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Quote Originally Posted by Mikeyy
    .....where can one find a quick tutorial so I can get this knocked out?

    Contextures tips page http://www.contextures.com/tiptech.html

    vlookup formula page http://www.contextures.com/xlFunctions02.html

    Some information you want to go from Importlayout into categories ?

  10. #10
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Quote Originally Posted by ratcat
    Contextures tips page

    Some information you want to go from Importlayout into categories ?
    on the importlayout sheet, when I select a specific category from the category column (pick list), I need a formula to automatically lookup that categories specific category ID (from the "categories" sheet--same workbook--the category id will always be in the left adjoining column same row) and return it to the "categoryid" cell next to the category I just selected. in essence, any category I select on the importlayout page, the formula would always return the correct corresponding category id as listed in the categories sheet.
    Last edited by Mikeyy; 06-09-2008 at 03:00 AM.

  11. #11
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Sorry for the delay, kids wanted a Wiggles time.

    I'm still not clear on the goal.

    Posted an attachment. Just a category on the importlayout and the ID and age info will come across from the Categories sheet.

    Its a mix of the vlookup and the data validation formulas

    Hope that helps
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    It looks like that is the right formula...just need to move the cells around to fit the columns in our sheet. I will give this a try tonight. Thanks a bunch!

  13. #13
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    RAT-

    I need a little more assistance...it appears your example has the data in different places and I went back and edited your formula a few times to fit our sheet but couldn't get it right. I uploaded our document with the columns in the correct place...can you advise what the difference might be in the formula to fit our layout?
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day

    Just on my lunch break and downloaded the file and going back to work.
    I have an answer in a couple hours (minium). Yes I am posteing it at work !

    Anyone currently in the forum is welcome to help.

    Until then

    Cheers

  15. #15
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Result,

    For the vlookup to work, all the information you wish to be part of that selection (result(s)), the information must be to right of the selected information.

    Eg Return the values of looking up CategoryID
    (The layout of the database)
    Please Login or Register  to view this content.
    But you want to return the values of the Category. The layout must look like what's below

    Eg Return the values of looking up Categories
    (The layout of the database)
    Please Login or Register  to view this content.

    See examples attached

    Hope that helps

    btw you send the same file as before. Was that ment ??
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Thanks RAT.

    I changed the order of the Category and Category ID fields on the categories sheet in my workbook per your previous post. I copied your formula and pasted it into the correct field in the importlayout sheet in my workbook. The Category ID and Category fields in my importlayout sheet are in the "U" and "V" columns. I edited your formula to reference this. However, I keep getting an NA returned in the formula. What am I doing wrong?

    The workbook in question is attached.
    Attached Files Attached Files

  17. #17
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day Mikeyy,

    Simple, you have to change the table array in the formula. The Category ID value that you are trying to return against the Category name was at row A467. The current formula was only looking down as far as row 9. Since the data goes to row 3340, enter the formula in U3, then copy drag down.

    Please Login or Register  to view this content.
    Please post again if more help is needed or just PM.

    Cheers

  18. #18
    Registered User
    Join Date
    06-08-2008
    Posts
    10
    Quote Originally Posted by ratcat
    G'day Mikeyy,

    Simple, you have to change the table array in the formula. The Category ID value that you are trying to return against the Category name was at row A467. The current formula was only looking down as far as row 9. Since the data goes to row 3340, enter the formula in U3, then copy drag down.

    Please Login or Register  to view this content.
    Please post again if more help is needed or just PM.

    Cheers
    Hey RAT---we figured it out last night. Acutally the wife did. Just want to say thanks for your help. I really apprecaite it.

+ 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