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 07-24-2007, 06:13 PM   #1
AgustusM
College Prospect
 
Join Date: Dec 2003
Question for the excel guru's

I am above average on excel, but not a wiz and my wife has a work issue that she wants me to fix for her. I remember doing something of this sort years ago and I don't remember how and haven't been able to word it in a way that Google can find a straight answer. So here is to hoping some human interaction will help.

she needs a formula that will give a numerical value to a list of text options

for example:

A=4
B=3
C=2
D=1
F=0

and then add those values up. (which I am pretty sure I can work that bit out, once I know how to tell excel that a=4 and all that)

anyone know an easy way to do this?

AgustusM is offline   Reply With Quote
Old 07-24-2007, 06:59 PM   #2
Draft Dodger
Coordinator
 
Join Date: Jan 2001
Location: Keene, NH
if it's just a few text options, you can go with an IF formula. there's a limit, though.
__________________
Mile High Hockey
Draft Dodger is offline   Reply With Quote
Old 07-24-2007, 07:00 PM   #3
SteveMax58
College Starter
 
Join Date: Dec 2006
Not sure how complex the data your wife is working with happens to be or how many more letters or values she might be dealing with...but here is a fairly straightforward way to do this, based on what is trying to be done.

=SUM(COUNTIF(A1:D1,"A")*4,COUNTIF(A1:D1,"B")*3,COUNTIF(A1:D1,"C")*2,COUNTIF(A1:D1,"D"))

The A1:D1 is the range of cells to enter letters into & then have them summed. Since F=0...I did not include it, but you could certainly add it if you'd like. There may be other ways to handle this, but this was the easiest way I could think of off the bat.

Last edited by SteveMax58 : 07-24-2007 at 07:02 PM. Reason: Stupid smileys
SteveMax58 is offline   Reply With Quote
Old 07-24-2007, 07:05 PM   #4
Flasch186
Coordinator
 
Join Date: May 2002
Location: Jacksonville, FL
is she a teacher? If someone earned 75% of the points on a test and earned a C you cant have a C only be worth 50% of an A. IF you do, you also have to adjust the grading scale that you plug it back into because the new 50% earned will get an F on the traditional scale. I failed a class this way until I appealed it to the dean of the dept.
__________________
Jacksonville-florida-homes-for-sale

Putting a New Spin on Real Estate!



-----------------------------------------------------------

Commissioner of the USFL
USFL

Last edited by Flasch186 : 07-24-2007 at 07:07 PM.
Flasch186 is offline   Reply With Quote
Old 07-24-2007, 07:25 PM   #5
RPI-Fan
Pro Starter
 
Join Date: Nov 2000
Location: Troy, NY
Quote:
Originally Posted by Flasch186 View Post
is she a teacher? If someone earned 75% of the points on a test and earned a C you cant have a C only be worth 50% of an A. IF you do, you also have to adjust the grading scale that you plug it back into because the new 50% earned will get an F on the traditional scale. I failed a class this way until I appealed it to the dean of the dept.

If you're a professor you can do whatever the fuck you want grading-wise.
__________________
Quis custodiets ipsos custodes?
RPI-Fan is offline   Reply With Quote
Old 07-24-2007, 07:52 PM   #6
AgustusM
College Prospect
 
Join Date: Dec 2003
Quote:
Originally Posted by Flasch186 View Post
is she a teacher? If someone earned 75% of the points on a test and earned a C you cant have a C only be worth 50% of an A. IF you do, you also have to adjust the grading scale that you plug it back into because the new 50% earned will get an F on the traditional scale. I failed a class this way until I appealed it to the dean of the dept.

no those aren't even the categories, just something that seemed easy to explain the gist of what I am trying to do.
AgustusM is offline   Reply With Quote
Old 07-24-2007, 07:53 PM   #7
AgustusM
College Prospect
 
Join Date: Dec 2003
Quote:
Originally Posted by SteveMax58 View Post
Not sure how complex the data your wife is working with happens to be or how many more letters or values she might be dealing with...but here is a fairly straightforward way to do this, based on what is trying to be done.

=SUM(COUNTIF(A11,"A")*4,COUNTIF(A11,"B")*3,COUNTIF(A11,"C")*2,COUNTIF(A11,"D"))

The A11 is the range of cells to enter letters into & then have them summed. Since F=0...I did not include it, but you could certainly add it if you'd like. There may be other ways to handle this, but this was the easiest way I could think of off the bat.

thanks, I think this might work, trying it now
AgustusM is offline   Reply With Quote
Old 07-24-2007, 07:56 PM   #8
AgustusM
College Prospect
 
Join Date: Dec 2003
Quote:
Originally Posted by Draft Dodger View Post
if it's just a few text options, you can go with an IF formula. there's a limit, though.

only 5-6 items I think.

I looked at the IF function, but couldn't figure anything out that made sense in the few seconds I looked at it.
AgustusM is offline   Reply With Quote
Old 07-24-2007, 07:57 PM   #9
Pumpy Tudors
Bounty Hunter
 
Join Date: Oct 2000
Location: Pittsburgh, PA
Quote:
Originally Posted by RPI-Fan View Post
If you're a professor you can do whatever the fuck you want grading-wise.
So that's why my wife makes me wear that fucking tunic and then gives me a D+.
__________________
No, I am not Batman, and I will not repair your food processor.
Pumpy Tudors is offline   Reply With Quote
Old 07-24-2007, 08:04 PM   #10
AgustusM
College Prospect
 
Join Date: Dec 2003
Quote:
Originally Posted by SteveMax58 View Post
Not sure how complex the data your wife is working with happens to be or how many more letters or values she might be dealing with...but here is a fairly straightforward way to do this, based on what is trying to be done.

=SUM(COUNTIF(A11,"A")*4,COUNTIF(A11,"B")*3,COUNTIF(A11,"C")*2,COUNTIF(A11,"D"))

The A11 is the range of cells to enter letters into & then have them summed. Since F=0...I did not include it, but you could certainly add it if you'd like. There may be other ways to handle this, but this was the easiest way I could think of off the bat.

thanks!!! that seemed to work (at least with the small data test)

I am going to try now replacing the A11 with a named range so I can change the range without having to do the formula (I hope)

I really appreciate the response.


PS - still open to other ideas if anyone has anything easier
AgustusM is offline   Reply With Quote
Old 07-24-2007, 08:32 PM   #11
red95vette
n00b
 
Join Date: Apr 2007
You can look at using a vlookup as another option....

For example, here's an actual table I use in one of my spreadsheet.

RatingScore
Average0
Excellent3
Fair-1
Good1
Poor-2
Very Good2


You use a named range on it and use the Vlookup function (Excel has help on its syntax) and wherever is sees "Fair" for example, it will evaluate to -1 and so on. There is only one caveat, the items in the first column must be in ascending order (for some reason) or Excel sometimes screws up.
red95vette is offline   Reply With Quote
Old 07-24-2007, 08:45 PM   #12
SteveMax58
College Starter
 
Join Date: Dec 2006
Quote:
Originally Posted by red95vette View Post
You can look at using a vlookup as another option....

For example, here's an actual table I use in one of my spreadsheet.

RatingScore
Average0
Excellent3
Fair-1
Good1
Poor-2
Very Good2


You use a named range on it and use the Vlookup function (Excel has help on its syntax) and wherever is sees "Fair" for example, it will evaluate to -1 and so on. There is only one caveat, the items in the first column must be in ascending order (for some reason) or Excel sometimes screws up.

Next time add FALSE into your VLOOKUP...then it can be in any order...or more precisely, it will find the first matching value in column 1, starting from the top.

=VLOOKUP("Fair",Rating_Scores,2,FALSE)
SteveMax58 is offline   Reply With Quote
Old 07-24-2007, 09:49 PM   #13
Flasch186
Coordinator
 
Join Date: May 2002
Location: Jacksonville, FL
Quote:
Originally Posted by RPI-Fan View Post
If you're a professor you can do whatever the fuck you want grading-wise.

Well then, like in my case, if you can prove that the teacher's system, as convoluted as it was, failed most students that earned C's, like me (because a C = 50% of an A and thus he plugs it back into the standard 90-100 = A, 80-89 = B, 70-79 = C, 60-69 = D, 50-59 = F earning all of those students F's), you simply go to the dean with a chart showing it all and get the grade you earned instead of some egotistical simplistic way of trying to grade that morphs your grade 25% less than what it should be, and he gives it to you. I hope that teacher was fired.
__________________
Jacksonville-florida-homes-for-sale

Putting a New Spin on Real Estate!



-----------------------------------------------------------

Commissioner of the USFL
USFL
Flasch186 is offline   Reply With Quote
Old 07-24-2007, 10:07 PM   #14
DanGarion
Coordinator
 
Join Date: Nov 2003
Location: PNW
I know of a Macroguru on the board, but know of no Excelguru on here...
__________________
Los Angeles Dodgers
Check out the FOFC Groups on Facebook! and Reddit!
DON'T REPORT ME BRO!
DanGarion is offline   Reply With Quote
Old 07-24-2007, 10:14 PM   #15
SteveMax58
College Starter
 
Join Date: Dec 2006
Quote:
Originally Posted by AgustusM View Post
thanks!!! that seemed to work (at least with the small data test)

I am going to try now replacing the A1:D1 with a named range so I can change the range without having to do the formula (I hope)

I really appreciate the response.


PS - still open to other ideas if anyone has anything easier

Also...one more thing to note if you dont already know. If your data is totalling on a row or column basis(same data set, multiple entries), you just drag the bottom right corner of the cell in the direction you want, and the formula will adjust accordingly for each cell.

If you, for some reason, do not want the range of cells to change as you drag...then insert a "$" before either the column "$A" or the row"$1", or both"$A$1". This makes the reference range, or portion of the range, an absolute reference, and will not increment as you drag, copy, etc.

So making this whole thing absolute, would look like this:

=SUM(COUNTIF($A$1:$D$1,"A")*4,COUNTIF($A$1:$D$1,"B")*3,COUNTIF($A$1:$D$1,"C")*2,COUNTIF($A$1:$D$1,"D"))
SteveMax58 is offline   Reply With Quote
Old 07-25-2007, 03:09 PM   #16
AgustusM
College Prospect
 
Join Date: Dec 2003
Quote:
Originally Posted by SteveMax58 View Post
Also...one more thing to note if you dont already know. If your data is totalling on a row or column basis(same data set, multiple entries), you just drag the bottom right corner of the cell in the direction you want, and the formula will adjust accordingly for each cell.

If you, for some reason, do not want the range of cells to change as you drag...then insert a "$" before either the column "$A" or the row"$1", or both"$A$1". This makes the reference range, or portion of the range, an absolute reference, and will not increment as you drag, copy, etc.

So making this whole thing absolute, would look like this:

=SUM(COUNTIF($A$1:$D$1,"A")*4,COUNTIF($A$1:$D$1,"B")*3,COUNTIF($A$1:$D$1,"C")*2,COUNTIF($A$1:$D$1,"D"))


thanks, this trick I do know - I like the vlookup and I am going to mess with it, but the COUNTIF worked perfectly for her needs

thanks again to all for the suggestions.
AgustusM 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 07:51 AM.



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