r/excel • • Nov 23 '25

Challenge Excel Password Challenge for those that say Excel passwords are easy to crack.

108 Upvotes

I password protect a few Excel files (xlsx workbooks) that contain sensitive/personal information. Nothing super sensitive, but sensitive enough where I wouldn't want it to fall in the hands of some random person since my files/workbooks are synced to the cloud (Google Drive/Dropbox/OneDrive, etc.). I've always wondered how secured Excel passwords are and how hard/easy they are to be cracked. Reading this sub, there are hundreds of threads that say they are incredibly easy to crack.

If you're up for a challenge, below is link (Google Drive) to an Excel file (workbook) that is password protected. Feel free to download the xlsx file/workbook. The workbook is empty except there are two cells that have data/number/words. If you are able to hack/crack the password and get into the file (workbook), tell us what is written and which Cell(s) the data it is in. Or if you want, you can share the password as well.

I'll even give you a hint: The password is exactly 10 characters long. Contains uppercase, lowercase, number and special character.

Here's the link to the Excel file:

https://docs.google.com/spreadsheets/d/1coglNBa9jqr4sAjGMyNgPBen2aMMw7hc/edit?usp=drive_link&ouid=116457929189389033503&rtpof=true&sd=true

Good luck if you want to give it a shot!

r/excel • • Jul 09 '26

Challenge FlipFlop Codes 2026 Day 4

9 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/4

r/excel • • 1d ago

Challenge Everybody Codes 2026 (Lord of the Wings) Quest 1

12 Upvotes

r/excel • • Aug 26 '26

Challenge Formula to auto-align messy Power Query Table.TransformColumnTypes/.RenameColumns

5 Upvotes

TL;DR:
Turn this

    {"Id", Int64.Type}, {"Order Date", type date}, {"Customer Reference Number", type text},
{"Ship To Country Code", type text}, {"Total Weight Oz", type number}, {"Is Expedited", type logical},
        {"Carrier", type text}, {"Tracking Number", type text}, {"Estimated Delivery Date", type date}, {"Delivery Status Description", type text}

Into this

{"Id",                          Int64.Type   },
{"Order Date",                  type date    },
{"Customer Reference Number",   type text    },
{"Ship To Country Code",        type text    },
{"Total Weight Oz",             type number  },
{"Is Expedited",                type logical },
{"Carrier",                     type text    },
{"Tracking Number",             type text    },
{"Estimated Delivery Date",     type date    },
{"Delivery Status Description", type text    }

With one formula

=LET(
Source,              A1,
IndentLen,           FIND("{",Source)-1,
IndentPad,           REPT(" ",IndentLen),
ToCol,               SUBSTITUTE(TEXTSPLIT(Source,,"},")&"}","}}","}"),
RowCount,            ROWS(ToCol),
Idx,                 SEQUENCE(RowCount),
IsLastRow,           Idx = RowCount,
Part1,               TEXTAFTER(TEXTBEFORE(ToCol,""","),"{""")&""",",
LenPart1,            LEN(Part1),
MaxLenPart1,         MAX(LenPart1),
NumSpacesAfterPart1, MaxLenPart1-LenPart1+1,
PaddingAfterPart1,   REPT(" ",NumSpacesAfterPart1),
Part1WithPadding,    Part1 & PaddingAfterPart1,
Part2,               TEXTBEFORE(TEXTAFTER(ToCol,""", "),"}"),
LenPart2,            LEN(Part2),
MaxLenPart2,         MAX(LenPart2),
NumSpacesAfterPart2, MaxLenPart2-LenPart2+1,
PaddingAfterPart2,   REPT(" ",NumSpacesAfterPart2),
Part2WithPadding,    Part2 & PaddingAfterPart2,
RebuildString,       IndentPad & "{""" & Part1WithPadding & Part2WithPadding & "}" & IF(IsLastRow,"",","),
Output,              RebuildString,
Output
)

Situation:
I inherited some Power Query code in a Power BI project (this post applies to Power Query whether within Excel or PBI, and is not PBI exclusive). The query was built with using the GUI, and it produced code that, when viewed in the Advanced Editor, was unformatted. Nothing lined up, indentation wasn't readable. To make it easier to read and audit the code, I went through and cleaned it up. Wasn't able to use an online prettifier or third party program, due to company requirements.

Need:
There was a LOT of Type transformations and Renames. It was taking forever to use Enter and Tab to line things up. And for my purposes, I like to line up the column names on the left, then the transforms on the right, and close off the right curly braces in a vertical line. Looks nicer for me. May not be your thing.

Solution:
I created a formula to take the code and format it for me. Inside Power Query, the line would look something like:
ChangedColumnType = Table.TransformColumnTypes(PreviousStep,{... long line of column/type pairs each enclosed within their own {} pair and comma separated ...}).
I wanted to grab the stuff inside the main { ... } and format it. So, I created the formula above.

How it works:
Source: Let A1 hold the long string of {}, {}, {}, pairs.

Capturing the indent:
IndentLen finds the position of the very first curly-brace { in the pasted block and counts everything before it. IndentPad turns that into an actual string of spaces. This means the output matches the indentation of whatever you pasted, depending on how deep the step is nested in your query.

Splitting into Rows:
ToCol is the part doing the actual row splitting. TEXTSPLIT(Source,,"},") breaks the single pasted string apart everywhere it sees close-curly-brace-comma }, which is the boundary between one column entry and the next. That delimiter gets eaten by the formula in the split, so ampersand-quote-close-curly-brace-quote &"}" tacks a closing brace back onto every row. The last row already had its own closing brace (since nothing follows it), so tacking on another one leaves you with a double }}, which the outer SUBSTITUTE cleans up to a single }. Final result: An array, with one array element per {"ColumnName", Type} pair, each one a properly closed row again.

Figuring out the last row:
RowCount, Idx, and IsLastRow exist for one reason: every row needs a trailing comma except the last one. Idx numbers each row 1 through however many there are, and IsLastRow flags whichever row matches RowCount so the final comma can be removed later.

Extracting and padding the Column Name:
Part1 pulls out the column name portion. It looks for everything before the first quote-comma ", (the end of the quoted name) and after the first curly-brace-quote {" (the start of the element), then tacks the closing quote-comma ", back on. LenPart1 measures the size of each Part1, and MaxLenPart1 finds the longest name in the full batch, then NumSpacesAfterPart1 works out how many spaces each row needs to catch up to that longest one, plus one extra so there's always at least a single space of separation. Part1WithPadding is the name with that padding appended.

Extracting and padding the Type:
Part2 does the same job for the second half of each row, the type (or the new name, if this is a rename block instead of a change-type block). It grabs everything between quote-comma ", and the closing curly-brace }. The same length-and-pad routine runs again with LenPart2, MaxLenPart2, and NumSpacesAfterPart2, so every Type value ends up padded out to match the longest one, plus an extra space, keeping the closing braces lined up in a column too. I like having a space before the closing brace because otherwise you end up with some types butting right up against a brace and others having padding; I wanted consistency, so the visual separation is deliberately placed there.

Putting it back together:
RebuildString is where it all gets stitched into one line: the indent, the opening brace-quote {", the padded name, the padded type, the closing brace-comma }, and then omitting the comma if it's the last row. That's the finished, aligned row. The formula applies this to every Name/Type pair, so they all stack up neatly.

Now, you just copy and paste back into the M query. In PBI, this is easy since the PQ window is separate from Excel. If you're solely within the Excel environment, you may want to use Notepad as an intermediate staging ground.

Works the same way for Table.RenameColumns blocks too, since those are just {"OldName", "NewName"} pairs, same shape, the formula doesn't care that the second value is quoted text instead of a type keyword.

AI Disclosure:
I used Claude.ai to assist with the Idx/IsLastRow structure. The rest of the formula was written by hand. I used Claude.ai to generate this post, then went back and hand-edited about half the text. I used Claude.ai to generate the example from "Turn this" in the TL;DR section to avoid using company-specific data fields.

Conclusion:
This met my need. If you like it, feel free to steal the formula! Tweak it how you need. Even if you don't use this for this specific use case, hopefully it at least shows what's possible with a massive LET() formula. I'm also a bit proud and disgusted that the string ,,"},")&"}","}}","}"), exists and somehow makes sense in context.

r/excel • • Jul 08 '26

Challenge FlipFlop Codes 2026 Day 3

1 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/3

r/excel • • Jul 13 '26

Challenge FlipFlop Codes 2026 Day 8

13 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/8

r/excel • • Jul 12 '26

Challenge FlipFlop Codes 2026 Day 7

6 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/7

r/excel • • Jul 11 '26

Challenge FlipFlop Codes 2026 Day 6

8 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/6

r/excel • • Jul 14 '26

Challenge FlipFlop Codes 2026 Day 9

8 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/9

r/excel • • Jul 15 '26

Challenge FlipFlop Codes 2026 Day 10

6 Upvotes

Similar (but I think mostly easier... edit: getting less so this year!) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes! (Edit: this is going less well than last year).

https://flipflop.slome.org/2026/10

r/excel • • Jul 10 '26

Challenge FlipFlop Codes 2026 Day 5

7 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/5

r/excel • • Jul 06 '26

Challenge FlipFlop Codes 2026 Day 1

12 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/1

r/excel • • Aug 28 '26

Challenge Everybody Codes Story 4 Day 3

5 Upvotes

Decided not to post all these challenges as I've been too busy to really attack them. Got 2/3 on Day 1 with VBA, 2/3 on day 2 with Excel formulas.

Anyways, I think I'm stopping after Part 1 today because Part 2 (I think) requires fighting my archnemesis, pathfinding algorithms. But I thought my formula solution was pretty gritty if not nifty and since I gave up I went whole hog on making a decent visualization of the solution.

https://everybody.codes/story/4/quests/3

Feel free to post your Everybody Codes solutions for today or previous days if you want as well.

Part 1 formula below (swap "out" variable for "ft" as final LET output to generate the conditionally formatted table in the visualization as "out" gives you the numeric answer to challenge).

=LET(w,--TEXTAFTER(Answers!A1,"="),
h,--TEXTAFTER(Answers!A2,"="),
ho,TEXTAFTER(Answers!A3,"="),
hoa,--TAKE(MID(REPT(ho,h/LEN(ho)+1),SEQUENCE(LEN(REPT(ho,h/LEN(ho)+1))),1),h/LEN(ho)*LEN(ho)+1),
vo,TEXTAFTER(Answers!A4,"="),
voa,--TAKE(TRANSPOSE(MID(REPT(vo,w/LEN(vo)+1),SEQUENCE(LEN(REPT(vo,w/LEN(vo)+1))),1)),,w/LEN(vo)*LEN(vo)+1),
g,MAKEARRAY(h,w,LAMBDA(r,c,CONCAT(
IF((MOD(c,2)=1)*(INDEX(hoa,r)=0),"U",""),
IF((MOD(c,2)=0)*(INDEX(hoa,r)=1),"U",""),
IF((MOD(c,2)=1)*(INDEX(hoa,r+1)=0),"D",""),
IF((MOD(c,2)=0)*(INDEX(hoa,r+1)=1),"D",""),
IF((MOD(r,2)=1)*(INDEX(voa,,c)=0),"L",""),
IF((MOD(r,2)=0)*(INDEX(voa,,c)=1),"L",""),
IF((MOD(r,2)=1)*(INDEX(voa,,c+1)=0),"R",""),
IF((MOD(r,2)=0)*(INDEX(voa,,c+1)=1),"R","")
)
)),
ft,IFERROR(VSTACK(HSTACK("X",voa),HSTACK(hoa,g)),""),
out,SUM(--(LEN(g)=4)),
out)

r/excel • • Jul 07 '26

Challenge FlipFlop Codes 2026 Day 2

9 Upvotes

Similar (but I think mostly easier) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes!

https://flipflop.slome.org/2026/2

r/excel • • Jul 17 '26

Challenge FlipFlop Codes 2026 Day 12 (Final Challenge)

11 Upvotes

Similar (but I think mostly easier... edit: getting less so this year!) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes! (Edit: this is going less well than last year).

https://flipflop.slome.org/2026/12

r/excel • • Jul 16 '26

Challenge FlipFlop Codes 2026 Day 11

11 Upvotes

Similar (but I think mostly easier... edit: getting less so this year!) to the Advent of Code Challenges I've posted in the past. All non-AI Excel solutions welcome. Obscure you solutions with spoiler alert where possible/reasonable (earlier days require less complex/inscrutable solutions, if your solution gets highly complex/unreadable --- don't worry about it).

I'm going to try to do with only excel formulas and no VBA, but we'll see how that goes! (Edit: this is going less well than last year).

https://flipflop.slome.org/2026/11

r/excel • • Mar 06 '25

Challenge Formula challenge: Sum all multiples of 3 or 5 below 1000.

49 Upvotes

Looking to mix things up with a formula challenge. From Project Euler, via an earlier recommendation as training material from /u/Downtown-Economics26:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

Given these tend to instigate a codegolfing race toward baffling brevity, I’m going to ask that, for the benefit of learning and confidence building, those that propose approaches outline:

  1. The approach they’d have taken with the skills amassed in their first year of using Excel.

  2. The most novel approach they have with their skills to date.

r/excel • • Feb 01 '26

Challenge Timesheet vs. Contract calculations in Excel

3 Upvotes

I've got a Timesheet table in one sheet and a Contracts table on another sheet.

What we want is a report that tells us the balance left for each client. For instance you can see that Shirley has given a contract of 6 hours but has 6 entries in the timesheet. How much is left for her and the other clients?

We'd want to also know:

How much have we worked for each client by week.

For each client, how many hours of contracts do they have and how much work have we done for them.

Keep in mind that these tables would grow over time and we'd always like to know the answers to these quesitons.

Timesheet:

Client Start Stop Category
Shirley 2024-09-08 09:44 2024-09-08 09:51 Billable
Shirley 2024-08-30 09:00 2024-08-30 10:00 Good times
Shirley 2024-09-27 15:00 2024-09-27 17:00 Clowning around
Fe 2024-10-27 10:00 2024-10-27 10:20 Initial Session
Shirley 2024-10-29 14:30 2024-10-29 14:35 Square dancing
Fe 2024-11-03 09:59 2024-11-03 11:10 Salsa
Fe 2024-11-09 10:00 2024-11-09 11:33 Salsa
Amy 2024-11-10 06:19 2024-11-10 10:19 Square dancing
Shirley 2024-11-23 10:24 2024-11-23 11:25 lalalal

Contracts:

Client Hours Description
Fe 8 Internet
Shirley 6 Global
Amy 16 Internet
Fe 2 Fun

I've got a pretty good solution to this that works well in both Excel and Power BI. I'll post that soon but I'd like to see if anybody has an even better solution.

I have pub debates about these sort of problems and it's always really fun to see what people come up with.

edit

Wow, some impressive ideas.

Here's my little dashboard. Also the whole solution. I did it in video form since it's more of a process than formulas. Pardon the sound... gawd I hate that, my computer works fine for conference calls but as soon as I record the screen, the freakin' volume goes low.

My approach involves processing the data into a "star schema". Then creating the formulas becomes very simple. Here are the three formulas.

Contract :=sum(Contracts[Hours])

Actuals :=sumx(Timesheet, (Timesheet[Stop]-Timesheet[Start])*24)

Balance :=[Contract]-[Actuals]

r/excel • • Oct 03 '16

Challenge To stimulate this community, I am hosting a Coolest Macro competition for a 10$ Amazon gift-card!

172 Upvotes

Competition starts today and ends Friday at midnight (EST), 10/7/2016.

To keep this easiest, just post your answers in this thread or PM me!

If you don't know how to make a macro, a simple guide is here: http://www.everything-excel.com/hello-world-macro

Thanks, I will compile all of these and we should have some fun content.

Edit [4:30 PM EST Friday]: I do not know if I can set a poll. I would love to have people vote.

Options are we vote, we go with most up-votes (but that is too dependent on time imho), or I can pick- MUahHAhahAH. We have a winner either way and I will send the gift-card by Sunday through e-mail! Thanks for all your awesomeness!

Edit 2 : Winner announcement! Looks like /u/icantcontrolmyself will be taking home the prize! I loved so many, thank you all so much for participating. This was super fun for me, have never had so many inbox notifications before. Thanks for making it so special.

r/excel • • Dec 02 '24

Challenge Advent of Code 2024 Day 2

14 Upvotes

Please see my original post linked below for an explanation of Advent of Code.

https://www.reddit.com/r/excel/comments/1h41y94/advent_of_code_2024_day_1/

Today's puzzle "Red-Nosed Reports" link below.

https://adventofcode.com/2024/day/2

Two requests on posting answers:

  • Please try blacking out / marking as spoiler with at least your formula solutions so people don't get hints at how to solve the problems unless they want to see them.
  • The creator of Advent of Code requests you DO NOT share your puzzle input publicly to prevent others from cloning the site where a lot of work goes into producing these challenges. 

Edit: I am trying to solve these in one excel formula, where possible. There is no requirement on how you figure out your solution besides the bullet points above and please don't share any ChatGPT/AI generated answers this is a challenge for humans.

r/excel • • Jul 17 '25

Challenge Can you convert a recursive formula from using a cell range array to an in-formula 2D array?

3 Upvotes

(Disclaimer: This is an Excel-Fu challenge; I know it's "dumb"/unnecessary in practical use cases. It's just meant as a learning exercise!)

Say I have a string of text in cell A1:

Make me a leet haxor senpai! I want this String of text converted into super-cool "leetspeak" so Aaron thinks I'm EXTRA-leet! 0123456789)!@#$%^&*(

I want to use character-level replacement to do common "leetspeak" substitutions, such as "@" for "a" and "!" for "i", etc. So I make a range of cells in A3:B6 to act as my substitution cipher, like so:

a @
e 3
i !
o 0

I then use this formula:

=REDUCE(A1,$A$3:$A$6,LAMBDA(a,b,SUBSTITUTE(a,b,OFFSET(b,0,1))))

And get this:

M@k3 m3 @ l33t h@x0r s3np@!! I w@nt th!s Str!ng 0f t3xt c0nv3rt3d !nt0 sup3r-c00l "l33tsp3@k" s0 A@r0n th!nks I'm EXTRA-l33t! 0123456789)!@#$%^&*(

Ok, not bad, but not perfect either. It's case-sensitive which isn't great, and SUBSTITUTE() doesn't have an option to make it case-insensitive. I want to keep the existing case of any non-replaced characters, so just using UPPER() or LOWER() isn't really an option. Let's try REGEXREPLACE() since it does have an option to be case-insensitive:

=REDUCE(A1,A3:A6,LAMBDA(a,b,REGEXREPLACE(a,b,OFFSET(b,0,1),,1)))

Output:

M@k3 m3 @ l33t h@x0r s3np@!! ! w@nt th!s str!ng 0f t3xt c0nv3rt3d !nt0 sup3r-c00l "l33tsp3@k" s0 @@r0n th!nks !'m 3XTR@-l33t! 0123456789)!@#$%^&*(

Ok, that's great! I got a bunch of "s" characters in there though, and I'd like to swap them for "$" for more leet points, so let's add another row to my cipher with "s" in column A and "$" in column B, and adjust the range in REDUCE() accordingly:

=REDUCE(A1,A3:A7,LAMBDA(a,b,REGEXREPLACE(a,b,OFFSET(b,0,1),,1)))

Output:

#VALUE!

Uh oh. REGEXREPLACE() didn't like that. The SUBSTITUTE() version fared better:

M@k3 m3 @ l33t h@x0r $3np@!! I w@nt th!$ Str!ng 0f t3xt c0nv3rt3d !nt0 $up3r-c00l "l33t$p3@k" $0 A@r0n th!nk$ I'm EXTRA-l33t! 0123456789)!@#$%^&*(

REGEXREPLACE() seems to be parsing the "$" as...something...so we'll cross that bridge later. What I really don't like that I have to have an array of cells to act as the substitution cipher - I'd rather do this in the formula itself. You can make 2D arrays in a formula, so let's use this:

{"a","@";"e","3";"i","!";"o","0"}

OFFSET() on an array string doesn't work, but you can use CHOOSECOLS(). So, let's put all that together as =REDUCE(A1,{"a","@";"e","3";"i","!";"o","0"},LAMBDA(a,b,SUBSTITUTE(a,b,CHOOSECOLS(b,2)))) and see what happens:

#VALUE!

...welp. Maybe REGEXREPLACE fares better? Let's go with =REDUCE(A1,{"a","@";"e","3";"i","!";"o","0"},LAMBDA(a,b,REGEXREPLACE(a,b,CHOOSECOLS(b,2),,1))) and see what's up:

#VALUE!

...damn. I mean, I don't really know what I'm doing so this isn't unexpected I guess. However, I don't know why it's failing, which is annoying. Oddly, changing the CHOOSECOLS() to pull the first column of the 2D array (redundant for my purposes, but I'm just jankily kludging my way through this anyway) does seem to work. Here's the output from the REGEXREPLACE() version:

Make me a leet haxor senpai! i want this String of text converted into super-cool "leetspeak" so aaron thinks i'm eXTRa-leet! 0123456789)!@#$%^&*(

Notice how it changed the upper-case character matches to lowercase? It's doing something, at least.

So that's where I'm at. I'm sure this is all something to do with my sheer ignorance at how 2D arrays, REDUCE(), and LAMBDA() work, but I can't understand the reasoning behind it. =CHOOSECOLS({"a","@";"e","3";"i","!";"o","0"},2) appears to return the exact same values in the exact same structure as my OFFSET() does when used alone, but there must be something inherent I'm missing that's preventing my formulae from working.

Also, maybe there's a method for adding case-insensitivity to my original formula that I'm just unaware of?

I imagine I could functionally get there by just using a bunch of nested SUBSTITUTE() functions, but that's not what I'm after - the point is the journey, not so much the destination.

UPDATE: So we've got a functionally complete solution and a solution using a 2D array! UPDATE #2: Two verified solutions from u/MayukhBhattacharya and u/SolverMax - thank you! And thank you to all who contributed to this exercise - I've come away much wiser, and with a lot of ideas to think about in my future formula adventures. So much talent in this sub; I'm glad I stopped by!

Bonus Challenge: how about a method to randomly select from two different substitutions for the same character? For example, "a" could be either "@" or "4" in leetspeak, so how about having the substitution for "a" randomly choose one of the two options each time? UPDATE #3: Verified solutions from u/Anonymous1378 and u/RackofLambda (an awesome username for this, lol).

r/excel • • Oct 18 '19

Challenge Shortest Formula Challenge - A Dice Game

79 Upvotes

This is inspired by a question asked before. If 5 6-sided die are thrown and are stored in B2:F2 (or, RANDBETWEEN(1,6) is used across B2:F2) what is the shortest formula to return the following results:

  • If the 5 dice are sequential (1-5 or 2-6), then return "Straight"
  • if there is a pair, then "Pair"
  • If there are two pairs, then "Two Pair"
  • Three of a kind gets "Three of a Kind"
  • Three of a kind and a Pair returns "Full House"
  • Four of a kind returns "Four of a Kind"
  • 5 of a Kind gets "Yahtzee"
  • If none of the above, then return "None"

An Example:

​

B C D E F G
1 Die 1 Die 2 Die 3 Die 4 Die 5 Result
2 1 2 3 1 2 Two Pair

Think you can make the shortest formula? Here are some rules

  1. Formula length will be determined by LEN(FORMULATEXT()). This means array formula will have +2 to their length
  2. No VBA/UDF. Use Excels formulas
  3. you may use multiple cells, however all cells used (besides the dice values) will be counted towards your formula length
  4. The results must correctly be either "Straight", "Pair", "Two Pair", "Three of a Kind", "Full House", "Four of a Kind", "yahtzee", or "None"

​

PM me your formulas and I will update as much as possible, lets see who is the excel-yahtzee champ!

Update 1: sorry, it has taken me longer than expected to get some free time, so far I have seen two that are correct for every outcome

​

Update 2: I will say its possible to get below 200 characters Using CSE

update 3: /u/Havvkeye16 has pulled into a huge lead!

update 4: I've added my score as well. see if anyone can do better

update 5: Collaboration is coming on strong! and we have a non-CSE to be below 200 which I find incredible! But which collab will take the glory????

Update 6**:** I believe we have reach the optimal CSE and non-CSE formulas for our dice game, and only a 5 character difference between the two! Awesome job to everyone who joined in and hoped we got to learn something new.

Final(?) Update: At the end of the day, when we could pack it up and call it a day, u/schuben burst out of nowhere, tearing down walls and pushing the rules to the limit with a 137 length solution

Weekend Update: Through the weekend some folks decided 137 was not good enough and now we are down to 126 characters for a CSE-MultiCell formula!

​

Lowest CSE formula MULTI-CELL (131): {=INDEX(K:K,SUM(COUNTIF(2:2,2:2)))} while K5 has =IF(VAR(2:2)<3,"Straight","None") and K7 has Pair and K9 has Two pair and K11 has Three of a kind and K13 has Full house and K17 has Four of a kind and K25 has Yahtzee

Lowest CSE formula SINGLE CELL (149): =CHOOSE(SUM(COUNTIF(B2:F2,B2:F2))/2,,IF(VAR(B2:F2)<3,"Straight","None"),B3,"Two "&B3,"Three"&C3,"Full House",,"Four"&C3,,,,"Yahtzee")

Lowest Non-CSE MULTI-CELL (131): {=INDEX(K:K,SUM(COUNTIF(2:2,2:2)))} while K5 has =IF(VAR(2:2)<3,"Straight","None") and K7 has Pair and K9 has Two pair and K11 has Three of a kind and K13 has Full house and K17 has Four of a kind and K25 has Yahtzee

Lowest Non-CSE fromula SINGLE CELL (160): =CHOOSE(SUMPRODUCT(COUNTIF(B2:F2,B2:F2))/2,,IF(VAR(B2:F2)<3,"Straight","None"),"Pair","Two Pair ","Three of a kind","Full House",,"Four of a kind",,,,"Yahtzee")

​

​

/u/ CSE NON-CSE
The Whole Group 126 131
The whole group 149 154
riovas/rneelsonee/pancak3d 154
havvkeye16/pancak3d 156
schuben 158
riovas 166
havvkeye16 178 169
cpa4life 188
starwax 274
rnelsonee 286
sqylogin 315
bluesphere 328
trash820319 366
Rehklr 400
schuben 438

r/excel • • Dec 07 '24

Challenge Advent of Code 2024 Day 7

5 Upvotes

Please see my original post linked below for an explanation of Advent of Code.

https://www.reddit.com/r/excel/comments/1h41y94/advent_of_code_2024_day_1/

Today's puzzle "Bridge Repair" link below.

https://adventofcode.com/2024/day/7

Three requests on posting answers:

  • Please try blacking out / marking as spoiler with at least your formula solutions so people don't get hints at how to solve the problems unless they want to see them.
  • The creator of Advent of Code requests you DO NOT share your puzzle input publicly to prevent others from cloning the site where a lot of work goes into producing these challenges. 
  • There is no requirement on how you figure out your solution (many will be trying to do it in one formula) besides please do not share any ChatGPT/AI generated answers as this is a challenge for humans.

P.S. At this point I should probably give up the pretense that I'm at all likely able to do these with one cell formula/LAMBDA or some of the concise sets of formulas like others have been doing. May try in some cases and I've still learned a lot from the answers but my answers are likely to be in VBA (if they exist at all).

r/excel • • Apr 08 '18

Challenge Official r/excel Data Visualization CONTEST!! L00K!! There are prizes!!1!

146 Upvotes

Hello subscribers old and new! You've been waiting for this your whole lives! In honour of our biggest new subscriber spike in r/excel's history and the fact that we're closing in on 100k, it's a Data Visualization Contest.

The Prize

We’ve got several gift cards to give away each a 1 year credit for Office 365 Home Premium. Info on O365 Home is here. Prizes are courtesy of Microsoft. Yes, the Microsoft.

The Contest

Download the data and do something awesome with it! What data you ask? Why, it’s 3+ years of ClippyPoint history (26,000 Clippys) and 5+ years of r/excel post history (75,000 posts).

Visualize with a neat-o chart. Calculate a fascinating statistic. Uncover a beautiful hidden pattern.

It's up to you!

The Data

Link to dropbox. [xlsx file | 10 MB] edit: oops! - if you downloaded the linked file in the 55 minutes after this post went up, it has about 2,000 #REF errors in it. This is a fixed version. Sorry'bout'dat!

The Rules

  1. The deadline for submitting your entry is Sunday 15 April at 23:59 UTC.

  2. All entries must be linked from within a top-level comment on this post. Entries must be via Excel file – put it to the cloud for everyone to access. No files containing macros. No zipped files. Consider if you use your personal dropbox (or similar) account, whether you might inadvertently reveal your identity; or if that kind of thing bothers you.

  3. One entry per user. Your entry may have multiple fascinating features.

  4. The /r/Excel Mod team will judge and select from all entries.

  5. Mods cannot win and are never eligible for any giveaways.

  6. Mods reserve the right to add or change any rules at any time and this post will be edited as appropriate.

  7. Mods may delete a user’s comment and entry for any reason we deem appropriate.

  8. The user account must be older than this post.

  9. No cash or other substitutions permitted in lieu of accepting the prize.

Questions? Feel free to ask them below or PM us.

Good Luck!!!

r/excel • • Jan 04 '26

Challenge FlipFlop Codes 2025 (Old Event)

8 Upvotes

Given Advent of Code was shortened this year I had an itch to further scratch and stumbled upon this site. I think it is definitely easier than Advent of Code (even I was able to get all 21 answers in about a day!)

https://flipflop.slome.org/2025

Just figured some might be interested in the challenges and/or my solutions to them.

I had to resort to VBA on two days where formula solutions out-iterated my brain, and well you can see the math adventure I went on if you look at my final day's files in the repository.

https://github.com/mc-gwiddy/FlipFlop-Codes/tree/2025