Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Find nth and nth + 1 values in a column

I should have mentioned it gives the answer in days, if it shows up as
a date, simply format the cells as general or number

Dan E

"Dan E" wrote in message ...
Pete,

Add 2 more columns - Team1 Next Game and Team 2 Next Game.
Assuming your data goes from A2:C100
In D2 (Team1 Next Game) put
=INDEX(A3:A100,IF(ISERROR(MATCH(B2,B3:B100,0)),IF( ISERROR(MATCH
(B2,C3:C100,0)),"n",MATCH(B2,C3:C100,0)),MATCH(B2, B3:B100,0)))-A2

In E2 (Team2 Next Game) put
=INDEX(A3:A100,IF(ISERROR(MATCH(C2,B3:B100,0)),IF( ISERROR(MATCH
(C2,C3:C100,0)),"n",MATCH(C2,C3:C100,0)),MATCH(C2, B3:B100,0)))-A2

Fill these two columns down this will give you columns showing
when each team's next game is.

Dan E

"Pete" wrote in message om...
I am in charge of scheduling for a basketball league. In simplified
terms, I have 3 columns of data - the first contains a date, the
second has Team1 and the second has Team2. A team's name can occur in
either column (just not both at the same time). I would like to be
able to see how many days are between a team's current and previous
game. The math is fairly simple, but how do you find the 4th (or 12th
or 30th) occurence of a value in a column and then reference the
corresponding date so that you can compare that to the 3rd game's
date?

Thanks in advance,
Pete





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
how to find the sum of certain values in a column. mrmaw1 New Users to Excel 6 February 25th 09 07:54 AM
To find Multiple values in column B for a unique value in column A kishdaba Excel Worksheet Functions 2 November 14th 06 12:49 PM
How Do I find distinct values in a Column Stankov New Users to Excel 5 September 8th 05 02:52 PM
How Do I find distinct values in a Column Stankov New Users to Excel 1 September 7th 05 03:15 PM
Find values in a column John Excel Discussion (Misc queries) 3 July 28th 05 08:02 PM


All times are GMT +1. The time now is 07:52 PM.

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

About Us

"It's about Microsoft Excel"