Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Track entries and events spreadsheet,

I am working on a spreadsheet for our track team. I am trying to get it so
the events that students are in are automatically shown when their name is
entered in an event. For example:
Cell B6 has an event. Cells B7 to B10 have names of participants. I want
those names to be compared to the names in Column J. If the name is found
the event in B6 is put into Column K, If there is already an event then it is
put into column L and so on. In the end it there should be a all of our
athletes names and the events they are in in the columns to the right of
their name.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Track entries and events spreadsheet,

Try this.

Sub TrackEvents()

Dim rngNames as range
Dim res as variant
Dim i as integer,col as integer

Set rngNames = Range("j:j")
For i = 7 To 10
res = Application.Match(Cells(i, "B"), rngNames, 0)
If Not IsError(res) Then
col = Cells(res, Columns.Count).End(xlToLeft).Column + 1
Cells(res, col) = Cells(6, "B")
End If
Next i
End Sub


HTH

"ccoverne" wrote:

I am working on a spreadsheet for our track team. I am trying to get it so
the events that students are in are automatically shown when their name is
entered in an event. For example:
Cell B6 has an event. Cells B7 to B10 have names of participants. I want
those names to be compared to the names in Column J. If the name is found
the event in B6 is put into Column K, If there is already an event then it is
put into column L and so on. In the end it there should be a all of our
athletes names and the events they are in in the columns to the right of
their name.



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 report changes in a spreadsheet (not track changes) Epoch Excel Discussion (Misc queries) 0 June 27th 08 11:36 AM
A form to keep track of monetary goals for dated events and offeri J&W Excel Discussion (Misc queries) 0 October 8th 07 07:25 PM
Making a chart to track entries across timeframes jjohnston Excel Worksheet Functions 0 August 13th 07 09:55 PM
How do I track recurring entries in Excel? Felicia Excel Worksheet Functions 1 September 22nd 06 05:29 PM
How can I track the chart mouse events? george_scortaru Excel Programming 5 December 8th 05 02:58 PM


All times are GMT +1. The time now is 10:35 AM.

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"