A loop question, I think.

Tmcvicar

New Member
Joined
Mar 30, 2013
Messages
2
Stuck at home after a devastating injury. Put together a excel spreadsheet of youth track races in my county, just to pass the time. Decided I wanted to pull out various bits of data from the spreadsheet but got tired of scrolling through it and writing down what I was looking for. Decided I would learn VBA and write quick programs to find what I was looking for. Discovered (I bought the standard books - for dummies, power programming etc) that I had no idea what I was doing, since I am not a programmer at all. (The last programming I did was between 7th and 8th grade in 1981, at summer camp, 4 and 5 line basic programs).

My question is:
How do I proceed through a list of dates and races to find, for instance, the races where a runner was the only freshman in a race?

I managed to figure out how to proceed through the list and find the freshmen but I cant seem to differentiate each day and each race and if the runner was the only freshman in the race? I don't know how to make the program treat each race on each day as a separate event without running the macro/vba code for each individual race/date.

I'm not even sure my question makes sense.

Pasted below is a condensed example of my spreadsheet with made up names etc.

DATERACERUNNERYEAR
1/1/1355MCVICARFR
1/1/1355ONTOSSO
1/1/1355JEBELSO
1/1/1355LUREYJR
1/1/1355SAMMSSR
1/1/13100MCVICARFR
1/1/13100TELLFR
1/1/13100ZIMPFR
1/1/13100TOAFSO
1/1/13100ZILLYSR
1/1/13220ARSNAULTFR
1/1/13220ILLYSO
1/1/13220CONUTERSO
1/1/13220DELBYSO
1/1/13220ELMOREJR
1/1/13440FULLERFR
1/1/13440GONDFR
1/1/13440HELLERSO
1/1/13440INDIANJR
1/1/13440KUGELSR
1/1/13880NARUTAJR
1/1/13880PENGUINJR
1/1/13880QUINTANILLAJR
1/1/13880ROMEROSR
1/1/13880SLOWFR
1/1/131600TEMPERFR
1/1/131600UNIFOREFR
1/1/131600VENDATJR
1/1/131600WILBURSO
1/1/131600XANTHAMSO
1/1/133200YOLISR
1/1/133200ZEROIFR
1/1/133200AMPLASO
1/1/133200BTUDEJR
1/1/133200CRUSHSR
1/8/1355MCVICARFR
1/8/1355ONTOSSO
1/8/1355JEBELSO
1/8/1355LUREYJR
1/8/1355SAMMSSR
1/8/13100MCVICARFR
1/8/13100TELLFR
1/8/13100ZIMPFR
1/8/13100TOAFSO
1/8/13100ZILLYSR
1/8/13220ARSNAULTFR
1/8/13220ILLYSO
1/8/13220CONUTERSO
1/8/13220DELBYSO
1/8/13220ELMOREJR
1/8/13440FULLERFR
1/8/13440GONDFR
1/8/13440HELLERSO
1/8/13440INDIANJR
1/8/13440KUGELSR
1/8/13880NARUTAJR
1/8/13880PENGUINJR
1/8/13880QUINTANILLAJR
1/8/13880ROMEROSR
1/8/13880SLOWFR
1/8/131600TEMPERFR
1/8/131600UNIFOREFR
1/8/131600VENDATJR
1/8/131600WILBURSO
1/8/131600XANTHAMSO
1/8/133200YOLISR
1/8/133200ZEROIFR
1/8/133200AMPLASO
1/8/133200BTUDEJR


Thanks in advance.

TMCVICAR



<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Why VBA? I think you could use Filter for what you are trying to do.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top