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,563
Messages
5,359,617
Members
400,540
Latest member
JimUSMC

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top