distinguish winning numbers from a given sentence

aaaaa34

Board Regular
Joined
Feb 25, 2014
Messages
62
Hey my friends,
In results page of loto results in one websites, winning numbers are placed in a sentenced with commas.
While i am copying them to excel, I want to have each number in cells along the row.
Sometimes while copying start of sentence, i don't copy every time from same point so formula should pay attention to it.
Can we distinguish these numbers and place them into seperate cells as it's shown in the worksheet?
Please have a look to the file. https://jmp.sh/sX6akuN
Thank you.


P.s: if i had to place this post under Formulas section, please sorry me. It can be moved.
 
Sorry, I see no need for that. It is just 3 lines of code to copy from the forum and I have given step-by-step instructions of what to do.
insmodule1.png


insmodule2.png


What I do here wrong while inserting the colde? Because after i save as *.xlsm and press ALT+F8, macro is not appearing in the popup window
 
Last edited:
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
What I do here wrong while inserting the colde? Because after i save as *.xlsm and press ALT+F8, macro is not appearing in the popup window
My step-by-step instructions did not mention pressing ALT+F8. Instead ..
5. Enter the formula as shown in the screen shot below and copy across and down.
Have a look back at post 6 and in particular the function for entry into cell C1 shown under the second screen shot.
 
Last edited:
Upvote 0
My step-by-step instructions did not mention pressing ALT+F8. Instead ..
Have a look back at post 6 and in particular the function for entry into cell C1 shown under the second screen shot.
yes, you're right. code runs perfectly with formula written on C1 cell. Thank you, Peter.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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