Jun 22 2021 03:05 PM - edited Jun 22 2021 03:16 PM
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.
I figured it might be possible to do an IF statement somewhere? IF the value returned, has a correlating value in another cell, do the formula again?
Any and all help would be GREATLY appreciated.
Jun 22 2021 06:09 PM
Solution
Another approach would be to use FILTER to create a second list of the movies, specifically all those where the date column is blank. Then run your random numbers against that derived list.
The function would look something like this: =FILTER("ListOfMoves","Dates"="") Just substitute the appropriate references for the "ListOfMovies" and "Dates"...
Jun 23 2021 12:52 PM
Jun 23 2021 01:47 PM
I've attached a sample file in Excel. I think the same can be done in Google Sheets. (I"ve verified that the FILTER function works there, so syntax is probably very much the same if not identical)
In this sample, I just kept the filtered list adjacent to the longer original list. It could be a separate sheet in the same workbook, but needn't be. And you can run your random -- I didn't do that -- in column E. Then just enter the date (or just enter anything: "watched" "we loved this" "let's watch again") under "Viewed"
The sheet is attached; here's an image with the formula off to the right.
Jun 23 2021 03:08 PM
Jun 23 2021 03:16 PM
Jun 24 2021 05:51 AM - edited Jun 24 2021 05:55 AM
This forum is only for Excel questions; to the extent your question has to do with pre-marital relationship counseling.....
Well, OK, here's an idea: You could take turns being the randomizer and work on trusting that the other has, you know, really gone with the computer rather than picking the one he/she really wants to watch. ;)
Jun 24 2021 07:54 AM
Jun 24 2021 11:40 AM
Jun 22 2021 06:09 PM
Solution
Another approach would be to use FILTER to create a second list of the movies, specifically all those where the date column is blank. Then run your random numbers against that derived list.
The function would look something like this: =FILTER("ListOfMoves","Dates"="") Just substitute the appropriate references for the "ListOfMovies" and "Dates"...