Front Office Football Central  

Go Back   Front Office Football Central > Archives > FOFC Archive
Register FAQ Members List Calendar Mark Forums Read Statistics

Reply
 
Thread Tools
Old 06-25-2004, 04:59 PM   #1
gstelmack
Pro Starter
 
Join Date: Oct 2000
Location: Cary, NC
Excel Question

Say I have a spreadsheet where some of the cell values are words. Say those words are ratings that could be mapped to integers like "Average", "Fair", "Excellent", etc. Say you wanted to write a formula that produced a rating based on these cell values.

Is there anyway to easily map a string value in a cell to a number that can be used in calculations? Short of doing a search-and-replace? I'd like to still see the word values, but get a numeric rating that I can sort on.

It would eliminate one step (the search-and-replace) in me rating my scouts / coaches without having to write the "FOFStaffAnalyzer" utility (which would really be overkill for this).
__________________
-- Greg
-- Author of various FOF utilities

gstelmack is offline   Reply With Quote
Old 06-25-2004, 05:21 PM   #2
wade moore
lolzcat
 
Join Date: May 2001
Location: williamsburg, va
Very easy.... do you use AIM? If so, add me (wademoore) and I'll explain it (a pain to do in a post)
__________________
Text Sports Network - Bringing you statistical information for several FOF MP leagues in one convenient site

Quote:
Originally Posted by Subby
Maybe I am just getting old though, but I am learning to not let perfect be the enemy of the very good...
wade moore is offline   Reply With Quote
Old 06-25-2004, 08:21 PM   #3
gstelmack
Pro Starter
 
Join Date: Oct 2000
Location: Cary, NC
Nope, I don't have any instant messaging accounts. Sorry.
__________________
-- Greg
-- Author of various FOF utilities
gstelmack is offline   Reply With Quote
Old 06-25-2004, 08:26 PM   #4
wade moore
lolzcat
 
Join Date: May 2001
Location: williamsburg, va
Alright.. let me try to make an example.. it's not going to be clean, but it will work..
__________________
Text Sports Network - Bringing you statistical information for several FOF MP leagues in one convenient site

Quote:
Originally Posted by Subby
Maybe I am just getting old though, but I am learning to not let perfect be the enemy of the very good...
wade moore is offline   Reply With Quote
Old 06-25-2004, 09:19 PM   #5
gstelmack
Pro Starter
 
Join Date: Oct 2000
Location: Cary, NC
Cool, thanks. If I get pointed in the right direction I can probably figure the rest out.
__________________
-- Greg
-- Author of various FOF utilities
gstelmack is offline   Reply With Quote
Old 06-25-2004, 11:42 PM   #6
JimboJ
High School Varsity
 
Join Date: Aug 2003
You need to use the LOOKUP function. You basically need to set up a mini table in your spreadsheet with the integer values and their corresponding words. You then use the LOOKUP function to look up the word that corresponds with the integer.

Do a search on LOOKUP in Excel help. They give a couple of examples there.

Last edited by JimboJ : 06-25-2004 at 11:45 PM.
JimboJ is offline   Reply With Quote
Old 06-25-2004, 11:50 PM   #7
FrogMan
Hattrick Moderator
 
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
what JimboJ said, either lookup or vlookup would work...

From the excel help:
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

lookup_value is what you are looking to replace
table_array is the table in which your numerical values are. vlookup will be looking in the first column of that table, so the text you want to replace should be in that first column
col_index_num is the column you want to return. In your simple case, that would be 2, but you could have more than one column and ask the function to return you a specific column
range_lookup is a true/false where if set to true, it will return the closest value, if set to false, it will return the exact value, or a #N/A message if not found...

Hope this helps...

FM
__________________
A Black Belt is a White Belt who refused to give up...
follow my story: The real life story of a running frog...
FrogMan is offline   Reply With Quote
Old 06-25-2004, 11:51 PM   #8
wade moore
lolzcat
 
Join Date: May 2001
Location: williamsburg, va
What he said...
__________________
Text Sports Network - Bringing you statistical information for several FOF MP leagues in one convenient site

Quote:
Originally Posted by Subby
Maybe I am just getting old though, but I am learning to not let perfect be the enemy of the very good...
wade moore is offline   Reply With Quote
Old 06-26-2004, 07:20 AM   #9
SonyLuang
n00b
 
Join Date: Jun 2004
damn u guys are smart
SonyLuang is offline   Reply With Quote
Old 06-26-2004, 07:27 AM   #10
FrogMan
Hattrick Moderator
 
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
err, no Sony, that's what I do for a living, play with excel for long parts of the workday

FM
__________________
A Black Belt is a White Belt who refused to give up...
follow my story: The real life story of a running frog...
FrogMan is offline   Reply With Quote
Old 06-26-2004, 09:48 AM   #11
fantastic flying froggies
Pro Rookie
 
Join Date: Nov 2002
Location: Sunny South of France
Quote:
Originally Posted by FrogMan
err, no Sony, that's what I do for a living, play with excel for long parts of the workday

FM
You're one lucky man FM !
__________________
Detroit Vampires (CFL) : Ve 're coming for your blood!
Camargue Flamingos (WOOF): pretty in Pink

Last edited by fantastic flying froggies : 06-26-2004 at 09:49 AM.
fantastic flying froggies is offline   Reply With Quote
Old 06-26-2004, 11:03 AM   #12
gottimd
Dearly Missed
(9/25/77-12/23/08)
 
Join Date: Nov 2003
Location: DC Suburbs
Quote:
Originally Posted by gstelmack
Cool, thanks. If I get pointed in the right direction I can probably figure the rest out.


Gstelmack-

If you are stuck I can help, I do what sounds like the same thing Frogman does all day long. I build Financial Models using Excel with VBA for my company. Also, here is a little site I find useful for excel questions if you get stuck and no one has answered you, or your stuck and you know it can be done, you just don't know how.......

Mr Excel Message Board

A board much like this one related to all Access and Excel etc problems and solutions. Its free to and people usually respond pretty fast.

Hope that helps.
__________________
NAFL New Orleans Saints GM/Co-Commish
MP Career Record: 114-85
NAFL Super Bowl XI Champs
In memory of Gavin Anthony: 7/22/08-7/26/08
gottimd is offline   Reply With Quote
Old 06-27-2004, 12:43 PM   #13
FrogMan
Hattrick Moderator
 
Join Date: Jan 2003
Location: Pintendre, Qc, Canada
Quote:
Originally Posted by fantastic flying froggies
You're one lucky man FM !

hehe, I know At least for me, that's a perfect job

I didn't have an example online at the time I posted my answer, but I have one now. It's simply translates the text value for the match report ratings in Hattrick into numerical values. You don't have to care about Hattrick to learn from it

There you go:
http://webhome.idirect.com/~stevegou...atingscalc.xls

FM
__________________
A Black Belt is a White Belt who refused to give up...
follow my story: The real life story of a running frog...
FrogMan is offline   Reply With Quote
Old 06-27-2004, 06:16 PM   #14
sterlingice
Hall Of Famer
 
Join Date: Apr 2002
Location: Back in Houston!
I've gotten a lot of good help from the Excel newsgroups online. The people who post there are quite friendly and patient as they realize not everyone is as advanced as they are. But, I would recommend searching old messages first.

SI
__________________
Houston Hippopotami, III.3: 20th Anniversary Thread - All former HT players are encouraged to check it out!

Janos: "Only America could produce an imbecile of your caliber!"
Freakazoid: "That's because we make lots of things better than other people!"


sterlingice is offline   Reply With Quote
Old 06-27-2004, 09:25 PM   #15
gstelmack
Pro Starter
 
Join Date: Oct 2000
Location: Cary, NC
Thanks a bunch guys. This should definitely get me rolling.
__________________
-- Greg
-- Author of various FOF utilities
gstelmack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -5. The time now is 08:44 AM.



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.