Randomly Select from a list, excluding options that have dates in adjacent cell.

Dnykato

New Member
Joined
May 29, 2021
Messages
3
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Ok, so this is going to be oddly specific, but please bear with me. I am using Google Sheets so that my gf can use this doc with me. Here's what we are trying to do.

I am currently deployed overseas in the Middle East, and I want to watch movies with her as much as possible while I've over here. We made a list on google sheets with a list of movies that we WANT to watch. We made it into a fun experience between us by randomly selecting a movie on the list we want to watch. After watching the movie, we will place the date we watched it into a column labeled "Date Watched". Essentially we want to create a random generator but exclude movies that have a date in that column.

Right now, all I have is a random generator that I pulled off these sites that help for the most part. It doesn't exclude the dates, but since our list is short (for now) it's easy to just "reroll" a new title if a movie that we already watched appears.

=INDEX('Movie List'!B3:B21,RANDBETWEEN(1,COUNTA('Movie List'!B3:B21)),1)

To give a bit more detail, the movie titles are in Column B, and the Date Watched is in Column F. Both starting in Row 3.

Any and all help would be GREATLY appreciated. :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Ok, so this is going to be oddly specific, but please bear with me. I am using Google Sheets so that my gf can use this doc with me. Here's what we are trying to do.

I am currently deployed overseas in the Middle East, and I want to watch movies with her as much as possible while I've over here. We made a list on google sheets with a list of movies that we WANT to watch. We made it into a fun experience between us by randomly selecting a movie on the list we want to watch. After watching the movie, we will place the date we watched it into a column labeled "Date Watched". Essentially we want to create a random generator but exclude movies that have a date in that column.

Right now, all I have is a random generator that I pulled off these sites that help for the most part. It doesn't exclude the dates, but since our list is short (for now) it's easy to just "reroll" a new title if a movie that we already watched appears.

=INDEX('Movie List'!B3:B21,RANDBETWEEN(1,COUNTA('Movie List'!B3:B21)),1)

To give a bit more detail, the movie titles are in Column B, and the Date Watched is in Column F. Both starting in Row 3.

Any and all help would be GREATLY appreciated. :)
Also, JUST realized that the value shown, is different for the people viewing it. ie. It'll show Movie A when I randomize a selection, but if she is on the google sheet at the same time, it'll appear as Movie B. Not sure how to fix that.
 
Upvote 0

Forum statistics

Threads
1,223,997
Messages
6,175,876
Members
452,679
Latest member
darryl47nopra

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