Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jp jp is offline
external usenet poster
 
Posts: 15
Default Nested loop with ranking

Dear all

In my golf spreadsheet I have a test for the 12 players as follows

If you are first then you lose 2 shots
If you are second you lose 1 shot
If you are last you get 2 shots back
and
If you are second last you get one shot back (even if there are a slack
handfull of you!!)

My problem is not 1st 2nd or last but second last!!

How do I code the following to cope with joint 9th!!?

Cheers

John
North Yorkshire UK


=IF($F$180=12,"",IF(F156=$F$175,"-2",IF(F156=$F$175+1,"-1",IF(F156=$F$176,"+
2",IF(AND(F156=$F$176-1,$F$177=1),"+1","")))))


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Nested loop with ranking

Could it be because of your typo?
=...IF(F156=$F$175+1,"-1",...

Try removing +1 after $F$175

Isbjornen




-----Original Message-----
Dear all

In my golf spreadsheet I have a test for the 12 players

as follows

If you are first then you lose 2 shots
If you are second you lose 1 shot
If you are last you get 2 shots back
and
If you are second last you get one shot back (even if

there are a slack
handfull of you!!)

My problem is not 1st 2nd or last but second last!!

How do I code the following to cope with joint 9th!!?

Cheers

John
North Yorkshire UK


=IF($F$180=12,"",IF(F156=$F$175,"-2",IF(F156=$F$175+1,"-

1",IF(F156=$F$176,"+
2",IF(AND(F156=$F$176-1,$F$177=1),"+1","")))))


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
jp jp is offline
external usenet poster
 
Posts: 15
Default Nested loop with ranking

Isbjornen

No, the +1 is to take the 2nd place which works fine.

I am looking for a piece of logic that will cater for second to last place
which could be 11th or any other joint number like joint 10th would be
second last possibly!!

Thanks for looking.


Cheers


John


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
Nested If Loop Limitation for Excel 2003 raj74 Excel Discussion (Misc queries) 9 March 1st 09 06:14 PM
Nested loop [email protected] Excel Worksheet Functions 1 April 5th 07 12:50 AM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Nested Loop Link ashcrusher Excel Worksheet Functions 0 January 13th 06 03:46 AM


All times are GMT +1. The time now is 06:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"