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
 

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-11
7
8
92-22
10
113-33
12
13
14
15Round6
16M1-M2Points
171-11
183-33
192-22
20
21
22
235-44
244-55
25
26
27
28
29
306-66
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)))
 

Forum statistics

Threads
1,081,753
Messages
5,361,097
Members
400,613
Latest member
Markdc123

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top