Hardest problem ever!

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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