Dan Wilson
Well-known Member
- Joined
- Feb 5, 2006
- Messages
- 536
- Office Version
- 365
- Platform
- Windows
Good day. The following is going to take a long explanation. I produce a weekly podcast featuring music from 1950 through 1969. The music is in a Folder on my computer and contains over 3000 songs. Over the last few years I have created and edited a Workbook that tracks the songs in that Folder. The Workbook now contains five Worksheets that access and store seven File Properties from the Music Folder.
The File Properties are -
Title – the Title of the song
Artist – the Artist(s) who recorded the song
Mult – how many versions of the songs exist
Year – the year the song was recorded
# - if the song Charted, the highest rating
Length – the length of the song in minutes and seconds
Genre – the Genre of the song (Oldies, Rock, Folk, etc.)
Intro – the non-verbal introduction time in minutes and seconds.
The workbook titled “50-69 music.xlsm” contains 5 worksheets.
50-69 – this worksheet houses all of the file properties listed above in Columns A through H. There are additional Columns controlled by Macros for sorting.
Macros- this worksheet contains ten Buttons. Each button has an Assigned Macro to sort the 50-69 worksheet as desired.
Counts - this worksheet displays various totals of file properties. Totals – this worksheet shows totals of desired file properties.
Alpha - for lack of another name. This worksheet contains my experimentation with the Random Function.
This is where the question arises. There are 26 Alphabetic characters, 9 digits, and the “Open parenthesis” character. Row 1 contains each of the mentioned characters in Columns A through AJ. Row 2 contains the Formula =SUM(Countif(’50-69’!A:A,{“A*”})).
That formula is then extrapolated from A2 to AI2 to tell me how many songs start with each of the listed characters.
Row 4 contains numbers from 1 to 40 in Columns A through AJ.
Row 5 contains the formula =RANDBETWEEN(1,40) in Columns A5 through A40. Executing the F9 character on my keyboard causes all of the numbers in Row 5 to change. The problem occurs in the fact that each random function executes without the knowledge of any of the other Columns. That means that multiple occurrences of the same random number can occur.
Another Row was then used to generate random numbers between 1 and 3000. The chances of duplicates at this point are much slimmer but can still occur.
Is there any function to examine all 40 of the randomly generated numbers to identify identical numbers or any other way to fix this?
As always, I appreciate any help with this issue.
The File Properties are -
Title – the Title of the song
Artist – the Artist(s) who recorded the song
Mult – how many versions of the songs exist
Year – the year the song was recorded
# - if the song Charted, the highest rating
Length – the length of the song in minutes and seconds
Genre – the Genre of the song (Oldies, Rock, Folk, etc.)
Intro – the non-verbal introduction time in minutes and seconds.
The workbook titled “50-69 music.xlsm” contains 5 worksheets.
50-69 – this worksheet houses all of the file properties listed above in Columns A through H. There are additional Columns controlled by Macros for sorting.
Macros- this worksheet contains ten Buttons. Each button has an Assigned Macro to sort the 50-69 worksheet as desired.
Counts - this worksheet displays various totals of file properties. Totals – this worksheet shows totals of desired file properties.
Alpha - for lack of another name. This worksheet contains my experimentation with the Random Function.
This is where the question arises. There are 26 Alphabetic characters, 9 digits, and the “Open parenthesis” character. Row 1 contains each of the mentioned characters in Columns A through AJ. Row 2 contains the Formula =SUM(Countif(’50-69’!A:A,{“A*”})).
That formula is then extrapolated from A2 to AI2 to tell me how many songs start with each of the listed characters.
Row 4 contains numbers from 1 to 40 in Columns A through AJ.
Row 5 contains the formula =RANDBETWEEN(1,40) in Columns A5 through A40. Executing the F9 character on my keyboard causes all of the numbers in Row 5 to change. The problem occurs in the fact that each random function executes without the knowledge of any of the other Columns. That means that multiple occurrences of the same random number can occur.
Another Row was then used to generate random numbers between 1 and 3000. The chances of duplicates at this point are much slimmer but can still occur.
Is there any function to examine all 40 of the randomly generated numbers to identify identical numbers or any other way to fix this?
As always, I appreciate any help with this issue.