News for hackers. Stuff that matters.
Re:Lotus 1-2-3 arbitrary resolution by dwiel on Tuesday March 02, 2021 @12:30PM (#26317816)
A bit off topic, but what I've wanted forever and never found is a spreadsheet that deals in units natively. So if one cell is in Newtons and I divide it by a cell that is in m/s^2 I want the resulting cell to be in grams. Units should propagate through the sheet automatically. Unit prefixes can either be automatic (km, m, mm, um, etc) or fixed as you would with a format setting.

Google calculator is the closest thing I've seen to this, but it isnt in spreadsheet form.

Anyone know of a system that provides this functionality?

Re:Lotus 1-2-3 arbitrary resolution by mikepurvis on Tuesday March 02, 2021 @12:36PM (#26317881)
Interestingly, it seems there's a Sheets add-on which provides at least some of what you want— unfortunately not with cell metadata, but rather using pairs of adjacent cells for the quantity and units:

https://workspace.google.com/marketplace/app/legendsheet/210...

The dev does a demo here: https://www.youtube.com/watch?v=K6Nvw2q889Q

Re:Lotus 1-2-3 arbitrary resolution by vq on Tuesday March 02, 2021 @01:22PM (#26318507)
The only one I know of is org-mode[0]. It defers calculations to calc-mode which handles units.

[0]: https://orgmode.org

Re:Lotus 1-2-3 arbitrary resolution by captainmuon on Tuesday March 02, 2021 @01:06PM (#26318283)
Yes this would have been so useful in my lab courses at university. Bonus points if cells could have errors and it could do error propagation.

I started working on this back then but got frustrated trying to make a grid control and gave up :-)

Re:Lotus 1-2-3 arbitrary resolution by akx on Tuesday March 02, 2021 @12:54PM (#26318116)
There's always Frink. https://frinklang.org/
Re:Lotus 1-2-3 arbitrary resolution by bpicolo on Tuesday March 02, 2021 @01:00PM (#26318202)
Re:Lotus 1-2-3 arbitrary resolution by jsmith99 on Tuesday March 02, 2021 @01:16PM (#26318417)
R also has a units package. It's mostly used by geospatial libraries.
Re:Lotus 1-2-3 arbitrary resolution by sidpatil on Tuesday March 02, 2021 @07:17PM (#26323111)
Re:Lotus 1-2-3 arbitrary resolution by leblancfg on Tuesday March 02, 2021 @12:59PM (#26318188)
Never tried it, but Wolfram has a Mathematica plug-in for Excel.

https://www.wolfram.com/products/applications/excel_link/

Re:Lotus 1-2-3 arbitrary resolution by scrumper on Tuesday March 02, 2021 @02:50PM (#26319658)
I remember Mathematica being a bit weak with units actually. Natively there's no support, you have to rely on add-on packages and I didn't have much success with the popular one. But my experience is from version 8 (a while ago) so it may have improved since.
Re:Lotus 1-2-3 arbitrary resolution by friend-monoid on Tuesday March 02, 2021 @04:52PM (#26321413)
Mathematica 9 and above has had significant improvements in its unit support. I’ve found it to be really good.
Re:Lotus 1-2-3 arbitrary resolution by codesnik on Tuesday March 02, 2021 @12:43PM (#26317962)
spreadsheets barely have distinction between strings and numbers. Units would be another level! I hope that at some point something like a strongly typed jupyter notebook tailored specifically for table inputs would arise and replace some current usages of spreadsheets in office/consumer space.
Re:Lotus 1-2-3 arbitrary resolution by andylynch on Tuesday March 02, 2021 @02:56PM (#26319741)
Haven’t tried it yet since not on Office 365 but there’s a very interesting custom data types feature emerged in Excel just a few months ago https://sfmagazine.com/post-entry/december-2020-excel-add-yo...
Re:Lotus 1-2-3 arbitrary resolution by schoen on Tuesday March 02, 2021 @02:20PM (#26319227)
GNU units does this, but is definitely not a spreadsheet or anything like a spreadsheet. It might be possible for a spreadsheet to arrange to call it as a back-end, though.

  You have: 100 N / (50 m/s^2)
  You want: 
          Definition: 2 kg
Re:Lotus 1-2-3 arbitrary resolution by LanceH on Tuesday March 02, 2021 @04:05PM (#26320728)
1-2-3 would allow you to plot a function on your graphs. Something that I haven't seen since. The solution now is to build a range and values, but that just adds one extra column of data to massage versus having a reference line covering the domain and range of that particular graph.
Re:Lotus 1-2-3 arbitrary resolution by tyingq on Tuesday March 02, 2021 @01:44PM (#26318788)
There's this: http://www.dimensionengine.com/excel/DEAddIn/

Their description sounds a lot like yours.

Re:Lotus 1-2-3 arbitrary resolution by pjettter on Tuesday March 02, 2021 @01:17PM (#26318427)
Interesting! I do this on paper a lot because that's how I learned in college. Thinking of it. It's composing converters. That should be fairly easy to automate!
Re:Lotus 1-2-3 arbitrary resolution by kroltan on Tuesday March 02, 2021 @12:41PM (#26317940)
Not a spreadsheet, no, (it is more of a freeform worksheet) but SMath Studio is a breeze to work on with units.

It has complete support for units of measurement and comes with most built-in. It can also decompose derived units into simpler forms if it finds a match.

It is free but not open-source.

Re:Lotus 1-2-3 arbitrary resolution by actuallyalys on Wednesday March 03, 2021 @02:03AM (#26325558)
Not a spreadsheet, but Soulver and NoteCalc allow you to label and reference previous calculations in the same way a spreadsheet does.
Re:Lotus 1-2-3 arbitrary resolution by mceoin on Tuesday March 02, 2021 @04:36PM (#26321186)
Is this for business or personal use? (We're building a spreadsheet product @ Sourcetable.)
Re:Lotus 1-2-3 arbitrary resolution by mhh__ on Tuesday March 02, 2021 @01:58PM (#26318958)
This is one of the first uses C++ templates had way back in the early 90s IIRC.
Re:Lotus 1-2-3 arbitrary resolution by sir_nop on Tuesday March 02, 2021 @12:44PM (#26317980)
Or a programming language? Or a Python module?
Re:Lotus 1-2-3 arbitrary resolution by paulclinger on Tuesday March 02, 2021 @02:58PM (#26319765)
Somebody already referenced F# elsewhere in the thread: https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe.... It will apply unit of measure checks as part of their static type checking.
Re:Lotus 1-2-3 arbitrary resolution by JNRowe on Tuesday March 02, 2021 @04:38PM (#26321219)
Beyond simply joining in on the F# love... If you're using Python anyway, then Pint¹ makes unit handling really easy.

¹ https://pint.readthedocs.io/en/stable/tutorial.html

Re:Lotus 1-2-3 arbitrary resolution by pletnes on Tuesday March 02, 2021 @04:40PM (#26321243)
In python there’s the pint module, which works with pandas dataframes, which can read/write excel sheets. So yeah, maybe. Why do anything in excel, except for data entry?
Re:Lotus 1-2-3 arbitrary resolution by moonbug on Tuesday March 02, 2021 @05:26PM (#26321936)
you can do that in mathematica, I think.