Learning Excell the Shadowrun way, Learning to make if then statements using drop down menus |
Learning Excell the Shadowrun way, Learning to make if then statements using drop down menus |
Sep 6 2009, 04:39 PM
Post
#1
|
|
Moving Target Group: Members Posts: 490 Joined: 29-August 06 From: Texas Member No.: 9,245 |
I am making a spell design work book and am wanting to be able to have all the drain compnents as drop down menu items. (I am using excell 2003) So how do I do this. I have my drop down menus all ready to go. For example I have 2 sets of lists one for all the names of things and another with all there values on it
how do I have the names call the values? |
|
|
Sep 10 2009, 05:17 AM
Post
#2
|
|
Moving Target Group: Members Posts: 100 Joined: 13-March 08 From: Texas! Giddy Up! Member No.: 15,770 |
If you go to a search engine and type "excel 2003 drop down lists" you should find a lot of links explaining how to create them. (IMG:style_emoticons/default/biggrin.gif)
Better yet here are two sites for you: Create a drop-down list Microsoft's Website on How to Create a Drop Down List I hope these help you out. |
|
|
Sep 10 2009, 05:46 AM
Post
#3
|
|
Moving Target Group: Members Posts: 943 Joined: 24-January 04 From: MO Member No.: 6,014 |
Not sure how much of this you already have, so I will explain as much as I can.
Create a workbook with two sheets. One is the presentation sheet, and one is called something like 'Data' On the data page, create a list of names in column a, then their corresponding values in columns b, c, d (for however many bits of data the name points to). For example: If my table is spell data, column a would have spell names, column b would have type, c would have range, and d would have drain. My list would look something like this: Manabolt Mana LOS F/2 +1 Fireball Pysical LOS/Area f/2 +5 etc. Now select just column a, goto Insert->Names, and name the area you selected "Spell_List" Then select the entire table, goto Insert->Names and name the entire table "Complete_Spell_Table" Now go to your presentation sheet. On cell b2 goto Data->Validation and select 'List' In the list name put '=Spell_List' Now cell b2 on the presentation page should show a dropdown with spell names in it. Now go to cell C2, and enter this formula: '=If(B2="","",vlookup(B2,Complete_Spell_Table,2,FALSE))' Now go to cell D2, and enter this formula: '=If(B2="","",vlookup(B2,Complete_Spell_Table,3,FALSE))' Now go to cell E2, and enter this formula: '=If(B2="","",vlookup(B2,Complete_Spell_Table,4,FALSE))' Now whenever you select a spell in the Dropdown in cell B2, the data for the selected spell appears in the following cells. To explain the formula: If(B2="","" This part says, if cell B2 is blank, then this cell should be blank ,vlookup(B2,Complete_Spell_Table,2 this part says, if B2 is NOT blank, then perform a vertical lookup function. Look a the Complete_Spell_Table's first column for the value that is in B2. If the value is found, then display the value from the second column. ,FALSE This part says,if you dont find the exact value from B2 in the Complete_Spell_Table, then dont guess, just error out. )) These parenthesis close out the vlookup function, and the if statement. There you go! Good luck with your spreadsheet. If you need examples, try looking at the armor section of the Gear page in the SR4CG_DK_1 (DL link in my sig). The armor area works much like this example. Also the spell area in the Magic tab, although it only shows drains, no other details. You may need to goto (Tools->Protection->Unprotect on the gear page in order to study it. The list go off of a hidden data page. To unhide it and see the lists, goto Format Sheet Unhide and select 'Gear_Data' |
|
|
Lo-Fi Version | Time is now: 26th November 2024 - 08:30 AM |
Topps, Inc has sole ownership of the names, logo, artwork, marks, photographs, sounds, audio, video and/or any proprietary material used in connection with the game Shadowrun. Topps, Inc has granted permission to the Dumpshock Forums to use such names, logos, artwork, marks and/or any proprietary materials for promotional and informational purposes on its website but does not endorse, and is not affiliated with the Dumpshock Forums in any official capacity whatsoever.