Hardest problem ever!

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
lmao
Code:
Sub Lifeis()
Dim Life(1 To 6)
Dim i As Integer, n As Integer, c As Integer
Life(1) = "Wake up"
Life(2) = "GoTo work"
Life(3) = "Code"
Life(4) = "GoTo home"
Life(5) = "Get yelled at"
Life(6) = "GoTo bed"
For c = 1 To 20
    For n = 0 To 10
        For i = 1 To 6
            Cells(n * 6 + i, c) = Life(i)
        Next i
    Next n
Next c
End Sub
For a laugh, run it in a blank workbook
 
Last edited:
according to some...

Code:
=SQRT(((23^2-4)/10)^2-63^2/4)

or via VBA

Code:
Sub UltimateMeaningofLife()
    '...the Universe, and Everything
    
    Debug.Print (((23 ^ 2 - 4) / 10) ^ 2 - 63 ^ 2 / 4) ^ (1 / 2)
    
End Sub
 
Last edited:

Forum statistics

Threads
1,223,723
Messages
6,174,107
Members
452,544
Latest member
aush

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