UK Bingo cards

craigey1

New Member
Joined
Apr 6, 2020
Messages
30
Office Version
  1. 2019
Platform
  1. Windows
Apologies for asking for so much help on my very first post here.

I've been searching all over for a solution to be able to produce a UK style bingo card within Excel using formulas or VBA, but so far have only found code that's capable of producing singular games rather than a set of 6. I've searched here & seen that the question has been asked before, but so far no-one seems to have been able to come up with a solution. I thought I could look at randbetween() to generate the necessary numbers for each column, but couldn't see how to then comply the required game layout rules. I really don't know where to start with this. I'd normally try & then ask for help when stuck, so here I am!

The UK bingo games use numbers 1 to 90 (including 90) with the numbers split across 6 games of 3 rows by 9 columns. The number 1 to 9 would appear in the first column, 10 to 19 in column 2, 20 to 29 column 3 & so on until the 9th column which also includes the number 90. All numbers would only appear once across all 6 of the games & each box has 5 blanks across each row & can have 0, 1 or 2 blanks per column.
In summary:
1. A bingo 'card' is a set of 6 individual 3 x 9 grids, stacked vertically, which contain the numbers 1-90
2. The numbers 1 - 9 (9 numbers) are in the first column and 80-90 (11 numbers) in the 9th, the intervening columns (2-8) contain 10 numbers each.
3. An individual box has 15 numbers, 5 per row and between 0 and 2 per column

I'd appreciate any help with this as was hoping to generate cards for friends / family during the lockdown.

thanks in advance

jumbobingoticket-jpg.10662
 

Attachments

  • JumboBingoTicket.jpg
    JumboBingoTicket.jpg
    119 KB · Views: 3,482
Think I was trying to be too clever with this subroutine. I updated and haven't ran into the problem again.

VBA Code:
Sub SortSA(SA As Variant)
Dim TMP As Integer

For i = 1 To 3
    For j = i To 3
        If SA(i) > SA(j) And SA(i) <> 0 And SA(j) <> 0 Then
            TMP = SA(i)
            SA(i) = SA(j)
            SA(j) = TMP
        End If
    Next j
Next i
End Sub
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Do you have the file for this still? been trying to figure it out, and I just can't get it...
I haven't updated mine with the latest code but if you want a head start, here's a dropbox link to the one I'm using.

Bingo in Dropbox

It's been a while since I've used Dropbox so any issues let me know.

This runs fine on 2010 and 2016 Excel version.

Thanks to @lrobbo314 for the code, I'd have never got it running otherwise :)
 
Upvote 0
Thanks @tezza.

I made a playable javascript version as well. CSS isn't my strong suit, but I'm happy with how it came out. Optimized the swap algorithm a bit too.

Here is the link if anyone is interested.

p5.js Web Editor

Also, here is a link to an Excel workbook that has the code and everything.

UK Bingo No OBJ DB.xlsm
 
Upvote 0
I made a playable javascript version as well. CSS isn't my strong suit, but I'm happy with how it came out. Optimized the swap algorithm a bit too.
That's taking it to another level lol, I've never touch on CSS.
 
Upvote 0
Don't know if anyone here saw it, but I also made an excel formula to generate US bingo cards. Can't imagine doing this for UK Bingo with formulas. Should be possible since Excel is now considered to be Turing complete with dynamic array formulas, but F me, no way!

Anyway, here's the link. US Bingo Formula
 
Upvote 0
Thanks @tezza.

I made a playable javascript version as well. CSS isn't my strong suit, but I'm happy with how it came out. Optimized the swap algorithm a bit too.

Here is the link if anyone is interested.

p5.js Web Editor

Also, here is a link to an Excel workbook that has the code and everything.

UK Bingo No OBJ DB.xlsm
Okay, excuse my ignorance, but I don't know how or what to do to randomize the cards so that the next set/card is di=fferent than the one that shows up initially.
I made my own regular/US bingo cards, and I know how to do it on mine. But I can't seem to figure out how to do that with yours? Not sure if it's because of the macros or what?
 
Upvote 0
Okay, excuse my ignorance, but I don't know how or what to do to randomize the cards so that the next set/card is di=fferent than the one that shows up initially.
I made my own regular/US bingo cards, and I know how to do it on mine. But I can't seem to figure out how to do that with yours? Not sure if it's because of the macros or what?
Enable macros and click New Books. That will run the macro to create new numbers in the tabs Book 1 to Book 10

The game tab just combines them all.

To run the code in your own workbook, go to a blank sheet and run the macro and it'll generate the numbers there for you. Each time you run the macro it will overwrite the old ones.
 
Upvote 0
Okay, excuse my ignorance, but I don't know how or what to do to randomize the cards so that the next set/card is di=fferent than the one that shows up initially.
I made my own regular/US bingo cards, and I know how to do it on mine. But I can't seem to figure out how to do that with yours? Not sure if it's because of the macros or what?
I uploaded a quick video to dropbox to give you an idea of what I do.

Bingo vid in dropbox

The first tab picks the random numbers

The Game is for auto play mode, when the first tab generates a random number, it shows on all the games in the Game tab

The first tab also tracks at the bottom all of the games and will also show you when a line or house has been achieved.

For a fresh restart hit New Books, New Game then Next Number until there's a winner.

Can it be done better? More than likely but this is my limitations.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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