CHOOSE Question

snowsurfer

New Member
Joined
Feb 15, 2002
Messages
18
I was helped in other posts create a formula that evaluates your finish in a race and assigns points based on finish. Well I have run into a road block

We award points down to 20th place. I calculate it using the following code

Code:
=IF(N43="","",CHOOSE(N43,25,22,20,18,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1))

That works great. We also assign BUMP points that tells us when a racer needs to be moved to the next level of competition. You get 3 points for 1st, 2 for 2nd, and 3 for third. When I evaulate the finish and they got 4th or higher than the #VALUE is returned. This is the code I am using. How can I hide the #VALUE error if they get 4th or higher?

Code:
=IF(N43="","",CHOOSE(N43,3,2,1))

Should I just extend the code out like this

Code:
=IF(N43="","",CHOOSE(N43,3,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0))

We a
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Nimrod

MrExcel MVP
Joined
Apr 29, 2002
Messages
6,259
Code:
=IF(AND(N43>0,N43<4),CHOOSE(N43,3,2,1),"")

OR...

Code:
=IF(N43="","",IF(AND(N43>0,N43<4),CHOOSE(N43,3,2,1),0))
 

snowsurfer

New Member
Joined
Feb 15, 2002
Messages
18
Thanks that worked. Is it possible to take it a step further. I mentioned in my first post that you get 3 for st, 2 for 2nd, 1 for 3rd. This is not true when less than 5 enter an event. If less than 5 enter the event you get half points. 1.5 for 1st, 1 for 2nd, .5 for third.

Can I take your formula and and a IF statement that adds up the finish to determine if there are more than 4 kids.

Something like
Code:
=IF(SUM(W6:W13)<=10,TRUE,FALSE)
Of course True would then take the finish of the rider and figure out hal points, false would see that there were enough riders for full points and would then calculate full points
test2.xls
VWXY
4Round6Round6TrophyPoints
5M1-M2OverallPoints
61-11253
7  
8  
92-22222
10  
113-33201
12  
13  
14 
15Round6 
16M1-M2Points 
171-11253
183-33201
192-22222
20  
21  
22  
235-44180
244-55160
25  
26 
27  
28  
29 
306-66150
31  
32  
33  
E-Street Fall 2005 Series
 

snowsurfer

New Member
Joined
Feb 15, 2002
Messages
18
I got it

=IF(SUM(H42:H58)<=10,IF(N68="","",IF(AND(N68>0,N68<4),CHOOSE(N68,1.5,1,0.5),0)),IF(N68="","",IF(AND(N68>0,N68<4),CHOOSE(N68,3,2,1),0)))
 

Watch MrExcel Video

Forum statistics

Threads
1,118,050
Messages
5,569,887
Members
412,298
Latest member
dietitiann
Top