Copy range from string until reach another string

lmcquade91

New Member
Joined
Sep 29, 2024
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi guys!

I am fairly new to coding and have been playing around, so am self taught.

I am having some trouble with the below.

I have a CSV file containing 14 days of roster data. I want to copy each day's data onto a new sheet.

I was thinking of using cells.find to look for the string "loc" as that separates each days data, but am not sure how to copy FROM that string UNTIL reaching next one.

if anyone can give me some code or help me out it would be greatly appreciated!! Thank you guys! :)
 
How quick?

I organise a running race through a local forest in September each year. 10k or 6k.

It raises some money for charity.

I would like to reinstate our local marathon.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How quick?

I organise a running race through a local forest in September each year. 10k or 6k.

It raises some money for charity.

I would like to reinstate our local marathon.
Wow!! Which forest?

I have a knee injury so I was very slow today, 2h30, but normally do 2h10 :)

Did Perth marathon last year in 4h45!

Yay for running and coding!

Lara
 
Upvote 0
Wow!! Which forest?

I have a knee injury so I was very slow today, 2h30, but normally do 2h10 :)

Did Perth marathon last year in 4h45!

Yay for running and coding!

Lara
A small forest in Dorset call Moreton forest.

It was very wet (see image) as climate change has been playing havoc over here and forest tracks don't drain well.

Don't overdo it with the knee, they can take ages to heal.
 

Attachments

  • Moreton.jpg
    Moreton.jpg
    161.5 KB · Views: 2
Upvote 0
A small forest in Dorset call Moreton forest.

It was very wet (see image) as climate change has been playing havoc over here and forest tracks don't drain well.

Don't overdo it with the knee, they can take ages to heal.
Wow that looks so beautiful!! I'll have to add it to my list.

Well we know all about climate change here, we have bush fires, floods and hurricanes! Mother nature is all powerful!

Have a wonderful day and thanks for all the help :)

I'm starting my Data Science and AI course on Monday and feel very prepared now! I'll be in touch if I need your wonderful brain again :)

Lara xx
 
Upvote 0
Wow that looks so beautiful!! I'll have to add it to my list.

Well we know all about climate change here, we have bush fires, floods and hurricanes! Mother nature is all powerful!

Have a wonderful day and thanks for all the help :)

I'm starting my Data Science and AI course on Monday and feel very prepared now! I'll be in touch if I need your wonderful brain again :)

Lara xx
As someone who has worked in IT for many years, one must always assume that the data is not what it should be and work towards disproving ones assumption.

Good luck with the course.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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