Modern spreadsheet functions #114
Replies: 4 comments 2 replies
-
@EOMONTH is another modern function missing from 123 My method requires a few steps. Get @day(#) of @Date(Y,M,D) equal to first day of next month minus 1 day. @day(@Date(@year(@now),@month(@now)+1,1)-1) Since this formula chokes in December, fix December error: EOMmonth = @Date(@year(@now),@month(@now)+@if(@month(@now)>11,-1,+1),1)-1 Finally Format cell to preferred date format |
Beta Was this translation helpful? Give feedback.
-
Ah-ha, thanks! I'll add it to the wiki... Hmm, I wonder if we can generalize it to any month offset... although maybe negative is hard, let me experiment! |
Beta Was this translation helpful? Give feedback.
-
It's very ugly, but this does seem to work:
B3 Contains:
|
Beta Was this translation helpful? Give feedback.
-
Looks good from my house. |
Beta Was this translation helpful? Give feedback.
-
I've started maintaining a wiki page on how to emulate modern functions in 1-2-3.
For example, there is no
@WEEKDAY
function in 1-2-3, but that doesn't mean you can't calculate it!https://github.com/taviso/123elf/wiki/Functions#weekday
Any suggestions welcome!
Beta Was this translation helpful? Give feedback.
All reactions