Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Excel, 84 bytes

Excel, 84 bytes

=IFERROR(MID("65496331125442343343233",FIND(A1,"""123456789,()=MINORFADEOMEN"),1),0)

Find() will look for the value in cell A1 within the string "123456789,()=MINORFADEOMEN (the """ at the beginning is to escape the character and will evaluate to just ").

Based on the result of Find(), the Mid() function will return the corresponding character from the string of numbers. This string was created through iteration until it stopped changing.

If the character in A1 is not found, Find() returns an error so the IfError() function escapes that to return 0 instead.

The OMEN at the end of the string being searched in the Find() function are duplicate letters so their position will never be returned but they were needed to adjust the character counts. Without them, there was an endless loop of changing counts. The letter arrangement is stylistic choice.

#Excel, 84 bytes

=IFERROR(MID("65496331125442343343233",FIND(A1,"""123456789,()=MINORFADEOMEN"),1),0)

Find() will look for the value in cell A1 within the string "123456789,()=MINORFADEOMEN (the """ at the beginning is to escape the character and will evaluate to just ").

Based on the result of Find(), the Mid() function will return the corresponding character from the string of numbers. This string was created through iteration until it stopped changing.

If the character in A1 is not found, Find() returns an error so the IfError() function escapes that to return 0 instead.

The OMEN at the end of the string being searched in the Find() function are duplicate letters so their position will never be returned but they were needed to adjust the character counts. Without them, there was an endless loop of changing counts. The letter arrangement is stylistic choice.

Excel, 84 bytes

=IFERROR(MID("65496331125442343343233",FIND(A1,"""123456789,()=MINORFADEOMEN"),1),0)

Find() will look for the value in cell A1 within the string "123456789,()=MINORFADEOMEN (the """ at the beginning is to escape the character and will evaluate to just ").

Based on the result of Find(), the Mid() function will return the corresponding character from the string of numbers. This string was created through iteration until it stopped changing.

If the character in A1 is not found, Find() returns an error so the IfError() function escapes that to return 0 instead.

The OMEN at the end of the string being searched in the Find() function are duplicate letters so their position will never be returned but they were needed to adjust the character counts. Without them, there was an endless loop of changing counts. The letter arrangement is stylistic choice.

Source Link
Engineer Toast
  • 9.6k
  • 1
  • 25
  • 54

#Excel, 84 bytes

=IFERROR(MID("65496331125442343343233",FIND(A1,"""123456789,()=MINORFADEOMEN"),1),0)

Find() will look for the value in cell A1 within the string "123456789,()=MINORFADEOMEN (the """ at the beginning is to escape the character and will evaluate to just ").

Based on the result of Find(), the Mid() function will return the corresponding character from the string of numbers. This string was created through iteration until it stopped changing.

If the character in A1 is not found, Find() returns an error so the IfError() function escapes that to return 0 instead.

The OMEN at the end of the string being searched in the Find() function are duplicate letters so their position will never be returned but they were needed to adjust the character counts. Without them, there was an endless loop of changing counts. The letter arrangement is stylistic choice.

AltStyle によって変換されたページ (->オリジナル) /