Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Looking up a table

First off, I know I am a complete idiot at using Excel. That being said,
here is what I want to do.

I have been working on a dice-based roleplaying game for over four years and
I just revamped the entire system of how things work for creating new
characters. What I want to do is help speed up the process of creating a new
character by having excel do most of the work.

Here is what I do right now:
I have excel randbetween the minimum and maximum values for each of the ten
stats and then manually type them into the appropriate places.
After that I manually ad in the modifier for another part of the sheet based
on class.

What I want to do:
I want to have a table with all the stats in them that transfers over the
stats to the sheet when someone enters the race of the character and hits
calculate.
I want to have a table with all the modifiers (basically the formula is
"=(Stamina*2)+Strength+(Modifier*(Level-1))" and the modifier is between 0
and 14.) in it that puts the modifier where it needs to go depending on the
class of the character.

What I think I have to do:
If then statements that are 15 "if, then"s long that confuse the heck out of
me (one for each possible race). Then I will need to copy and past that for
each of the ten stats and adjust the row that the statement is targeting for
each cell.

All in all, I'm really confused.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Looking up a table

Gary,

You rarely need to nest 15 if then's. Are your 'races' numbers? If so, you could use a CHOOSE
statement, or a MATCH with arrays if the race is less structured, but you would need to better
explain what input (races) you have, and what output you would want.

HTH,
Bernie
MS Excel MVP


"Gary" wrote in message
...
First off, I know I am a complete idiot at using Excel. That being said,
here is what I want to do.

I have been working on a dice-based roleplaying game for over four years and
I just revamped the entire system of how things work for creating new
characters. What I want to do is help speed up the process of creating a new
character by having excel do most of the work.

Here is what I do right now:
I have excel randbetween the minimum and maximum values for each of the ten
stats and then manually type them into the appropriate places.
After that I manually ad in the modifier for another part of the sheet based
on class.

What I want to do:
I want to have a table with all the stats in them that transfers over the
stats to the sheet when someone enters the race of the character and hits
calculate.
I want to have a table with all the modifiers (basically the formula is
"=(Stamina*2)+Strength+(Modifier*(Level-1))" and the modifier is between 0
and 14.) in it that puts the modifier where it needs to go depending on the
class of the character.

What I think I have to do:
If then statements that are 15 "if, then"s long that confuse the heck out of
me (one for each possible race). Then I will need to copy and past that for
each of the ten stats and adjust the row that the statement is targeting for
each cell.

All in all, I'm really confused.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Looking up a table

The Races are not numbers. The objective is to have the following happen:

If someone types "Human" in box D1 then the following numbers are entered in
the corresponding boxes:
(all numbers are held in a table on a different worksheet. The numbers are
all randomly generated using the =Randbetween function)
B4- 10
B5- 8
B6- 13
B7- 11
B8- 8
D4- 16
D5- 14
D6- 16
D7- 9
D8- 7

The possible options for box D1 determine which list of numbers is
referenced and entered in the table. For instance, if I entered the word
"elf" into D1 it looks up a list of numbers on the table below the list for
human and displays a different set of numbers.

The second part looks up a table like this:
Vigor Nambian
Martial Artist 10 4
Weaponmaster 10 4
Archer 8 6
Rogue 8 6
Mage 4 10
Brawler 14 0
Ambient 14 0

Right now, in cell D14 and D15, the following is written:
=B5*2+B4+(F1-1)*x
=D7*2+D6+(F1-1)*y
Obviously it doesnt work and I have to look up the table for myself to ente
in the value I look up from the table. Ideally, what I want it to do is put
in 14 for x and 0 for y when someone types in "Ambient" into D2.

I hope I made this more clear. Thanks in advance for your assistance.

"Bernie Deitrick" wrote:

Gary,

You rarely need to nest 15 if then's. Are your 'races' numbers? If so, you could use a CHOOSE
statement, or a MATCH with arrays if the race is less structured, but you would need to better
explain what input (races) you have, and what output you would want.

HTH,
Bernie
MS Excel MVP


"Gary" wrote in message
...
First off, I know I am a complete idiot at using Excel. That being said,
here is what I want to do.

I have been working on a dice-based roleplaying game for over four years and
I just revamped the entire system of how things work for creating new
characters. What I want to do is help speed up the process of creating a new
character by having excel do most of the work.

Here is what I do right now:
I have excel randbetween the minimum and maximum values for each of the ten
stats and then manually type them into the appropriate places.
After that I manually ad in the modifier for another part of the sheet based
on class.

What I want to do:
I want to have a table with all the stats in them that transfers over the
stats to the sheet when someone enters the race of the character and hits
calculate.
I want to have a table with all the modifiers (basically the formula is
"=(Stamina*2)+Strength+(Modifier*(Level-1))" and the modifier is between 0
and 14.) in it that puts the modifier where it needs to go depending on the
class of the character.

What I think I have to do:
If then statements that are 15 "if, then"s long that confuse the heck out of
me (one for each possible race). Then I will need to copy and past that for
each of the ten stats and adjust the row that the statement is targeting for
each cell.

All in all, I'm really confused.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Looking up a table

Can I get some sort of help please?

"Gary" wrote:

The Races are not numbers. The objective is to have the following happen:

If someone types "Human" in box D1 then the following numbers are entered in
the corresponding boxes:
(all numbers are held in a table on a different worksheet. The numbers are
all randomly generated using the =Randbetween function)
B4- 10
B5- 8
B6- 13
B7- 11
B8- 8
D4- 16
D5- 14
D6- 16
D7- 9
D8- 7

The possible options for box D1 determine which list of numbers is
referenced and entered in the table. For instance, if I entered the word
"elf" into D1 it looks up a list of numbers on the table below the list for
human and displays a different set of numbers.

The second part looks up a table like this:
Vigor Nambian
Martial Artist 10 4
Weaponmaster 10 4
Archer 8 6
Rogue 8 6
Mage 4 10
Brawler 14 0
Ambient 14 0

Right now, in cell D14 and D15, the following is written:
=B5*2+B4+(F1-1)*x
=D7*2+D6+(F1-1)*y
Obviously it doesnt work and I have to look up the table for myself to ente
in the value I look up from the table. Ideally, what I want it to do is put
in 14 for x and 0 for y when someone types in "Ambient" into D2.

I hope I made this more clear. Thanks in advance for your assistance.

"Bernie Deitrick" wrote:

Gary,

You rarely need to nest 15 if then's. Are your 'races' numbers? If so, you could use a CHOOSE
statement, or a MATCH with arrays if the race is less structured, but you would need to better
explain what input (races) you have, and what output you would want.

HTH,
Bernie
MS Excel MVP


"Gary" wrote in message
...
First off, I know I am a complete idiot at using Excel. That being said,
here is what I want to do.

I have been working on a dice-based roleplaying game for over four years and
I just revamped the entire system of how things work for creating new
characters. What I want to do is help speed up the process of creating a new
character by having excel do most of the work.

Here is what I do right now:
I have excel randbetween the minimum and maximum values for each of the ten
stats and then manually type them into the appropriate places.
After that I manually ad in the modifier for another part of the sheet based
on class.

What I want to do:
I want to have a table with all the stats in them that transfers over the
stats to the sheet when someone enters the race of the character and hits
calculate.
I want to have a table with all the modifiers (basically the formula is
"=(Stamina*2)+Strength+(Modifier*(Level-1))" and the modifier is between 0
and 14.) in it that puts the modifier where it needs to go depending on the
class of the character.

What I think I have to do:
If then statements that are 15 "if, then"s long that confuse the heck out of
me (one for each possible race). Then I will need to copy and past that for
each of the ten stats and adjust the row that the statement is targeting for
each cell.

All in all, I'm really confused.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Linking table in Excel to word travis Links and Linking in Excel 1 November 19th 05 02:30 PM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM


All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"