+ Reply to Thread
Results 1 to 24 of 24

Help a rookie make a dropdown that populates a sheet.

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Help a rookie make a dropdown that populates a sheet.

    The title. I can find TONS of tutorials and such to help me do this but they all seem to assume that I already KNOW how to make a dropdown menu, or I already know how to use vlookup or such. Which I know neither of. Either I need someone to help me find a working example of what I want, or use baby steps to walk me through it. x.x

    The thing I'm trying to accomplish: Select a name from a dropdown Ex: (Blank, A, B, C, D) and have it populate say, three or four fields next to it with statistics related to either A, B, C or D.

    Anyone here think you can help?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Help a rookie make a dropdown that populates a sheet.

    Hi
    and were do those statistics come from?

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    I know them in advance. They'd not be calculated by the sheet or anything.

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Example would be say, "A" and it would have the fields cost = $5, Weight= 6lbs, etc.

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    See if this example and explanation help:DropDownHelp.sol1.xlsx

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  6. #6
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Gonna check this out tonight- I'm posting from school. I'll keep you updated, biut thanks in advance! :D

  7. #7
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    That did it! You're a genius! Thanks! :D

  8. #8
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Correction, I am an idiot, for I cannot get this to work when I try to do it on my own. It keeps telling me I don't have the right number of values. Or the ever helpful error message #N/A. Totally awesome, that. Really helps me figure out what the hell is going on.

    My Formula: =IF($E33="","",VLOOKUP(Sheet1!F32,Sheet2!I2:J60,MATCH($E33,Sheet2!I2:J60,0),FALSE)) that breaks


    Previous formula that doesn't:

    =IF($G11="","",VLOOKUP(I$10,$A$2:$E$5,MATCH($G11,$A$1:$E$1,0),FALSE))

    I understand the first one (G11) That's the value that tells it what to read from.
    I$10, I have no idea. the rest are equally confusing. Why isn't the format "Read value from this field, pick a corresponding value between one field and another?"
    Last edited by DareArkin; 02-28-2013 at 12:25 AM.

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    The I$10 SHOULD be looking at the column headers of your output table to match up with the data table, if you look at the example, the column headers where the output goes EXACTLY match the Row headers for the data table...this makes the lookups and matches work sooo much easier... when the lookups have to calculate offsets and rows and substitutes,etc..., things start getting complicated, and FAR easier to break...

    If you upload a sample of what you got, I'll take a look and see what the problem is (See signature, and no screenshots please )

    Hope this helps

  10. #10
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Well, kinda embarrassed- er. I'm making a character sheet for a tabletop game at the request of several friends. (I'm the 'competent with computers' guy in my world, so everyone assumes I can do everything.) Instructions on what I'm stuck at for the moment- there's a table called 'complications' on sheet 2, and a position for it on sheet 1. I can get the sections to have the dropdown, but I can't get them to work with the second half, which is just supposed to show the page of the document this is referenced on.

    https://www.dropbox.com/s/c40bt3q2zk...eet%201.3.xlsx

    (And sorry I had to use dropbox, the upload function with the site was locking up my browser. x.x)

  11. #11
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Is there perhaps an easier explanation of what Vlookup does in say, English? I mean like, "This needs to be placed on the cell range you're searching within' or such. "Table Array" And "Col Index num" are martian to me.

  12. #12
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    okay...I won't download from dropbox...just a thing I guess..and don't be embarrassed about table top games, I am a "D&D" man myself
    VLOOKUP goes like this:
    VLOOKUP(what you are looking for,the (min 2 column) table you are searching, which column the results come from, [OPTIONAL] {true or false (true finds exact or next lowest match;false only returns EXACT matches)})
    you HAVE to remember, VLOOKUP searches the FIRST column of the table, and returns values FROM THE COLUMN specified (which can be the first column), but... you MUST specify at least 2 columns for the table..

    Hope that helps

    EDIT-
    I forgot to specify--TRUE option requires the first column of the table to be sorted in ascending order..sorry about that
    Last edited by dredwolf; 02-28-2013 at 04:44 AM.

  13. #13
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Sorry if there's something wrong with dropbox... o.O

    When you say 'what you're looking for.' How do I know what to put there? x.x

    And testing to see if I can get the thing to stick in here. I'm going to let it lock up my browser and just sit, I guess.

    =IF($E33="","",VLOOKUP(Sheet2!J2,Sheet2!I2:J60,MATCH($E33,Sheet2!J2:J60,0),FALSE)) in cell F33 is supposed to return the page number from one of the many tables in sheet 2. I can't see anything that's wrong, but I still get that utterly useless error message: #n/a. Whatever that means.
    Attached Files Attached Files
    Last edited by DareArkin; 02-28-2013 at 05:14 AM.

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    Okay, before I look at the sheet, #N/A means the VLOOKUP could not find a matching value..check for leading/trailing spaces, unprintable characters...extra spaces..etc...using the false option means the lookup value and the value in the table have to match EXACTLY...these are things to check first (and same for the match with last argument as '0'...needs to match EXACTLY)

    Also, if you goto the formulas tab on the ribbon menu, and use the evaluate formula tool to see what a formula is doing, you can usually find where the errors are occuring, I use this for almost every question I answer on the forum

    I have no problem checking, these are just some hints on how to find the problems for your self

  15. #15
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    Also...I see NO expected results or logic to get expected results on your sample.. So I am not sure what exactly you need here

    EDIT-
    I can see you would like this as a template , but need some values to work with to create the formulas..
    Last edited by dredwolf; 02-28-2013 at 05:34 AM.

  16. #16
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Okay, pardon my stupidity here, but. What do you mean by 'no expected results or logic to get...?" I copied and edited your example...

    I guess I'm totally misunderstanding how this works. x.x What SHOULD I be doing.
    Last edited by DareArkin; 02-28-2013 at 05:36 AM.

  17. #17
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Hang on, I accidentally got results using =VLOOKUP(E33,Sheet2!I2:J60,2,FALSE). So far, so good. Now the only thing I need to figure out... when it's blank, it still has the #N/A value. Is there a way to make that not show up?

  18. #18
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    What I mean is- with a GIVEN set of data, the results SHOULD look like this..(expected results for data given), the REASON it should look like this is because ....(logic to create the expected results on given data (ie--the rules that give the result.."IF vitality is this or lower THEN hp= base -2,..etc..))

    I am not sure how much clearer I can make it...I haven't found a single formula in the first sheet that relates to the discussion so far, so I have NO idea of where the trouble is...

    As to dropbox, it's not a problem, I haven't heard of any problems, I just won't download from a site I know nothing about, especially when the forum has it's own uploading tools..

    I hope that explaned it better :?

  19. #19
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    use:
    =IFERROR(your formula,"")

  20. #20
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Thanks! Sorry I was so slow getting my head around it- I was lost in the numbers for a while. I got it working. When I finish it, I'll post it, just for the hell of it, if anyone wants to see.

  21. #21
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    well, I certainly would
    Glad you got things running

  22. #22
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Here y'go! Arg, forgot to edit one equation. Will handle later, late for class.
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Help a rookie make a dropdown that populates a sheet.

    Okay, stupid question if anyone's still around. I sent the sheet made with this program to a friend. He has 2007, instead of 2010... is there -any- way to get him to see the dropdown boxes?

  24. #24
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Help a rookie make a dropdown that populates a sheet.

    I'm using 2007, and I cant find them either, where are they located? maybe I can get them to show..

+ 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