Skip to content

Track cell type better #313

Closed
Closed

Description

@wojciechczerniak

Description

Currently, after calculations that are including date and time, we have no way to figure out how we should format the final output. We will get number as a value. This hides the meaning from the end-user. Most of the spreadsheet apps are tracking the operations and can format the value correctly. We can format the value on display, but we need the information about the value type. Current CellType returned by the public API method is limited:

hyperformula/src/Cell.ts

Lines 60 to 66 in 1f11e07

export enum CellValueType {
EMPTY = 'EMPTY',
NUMBER = 'NUMBER',
STRING = 'STRING',
BOOLEAN = 'BOOLEAN',
ERROR = 'ERROR',
}

Date, Time and DateTime Logic

We can use this source [1] as a reference how to handle ops. But we should compare it with other spreadsheet apps
obraz

Functions

Some functions are more or less easy: =DATE() returns a date.

Links

[1] https://help.libreoffice.org/6.4/en-US/text/shared/01/05020301.html

Activity

  1. added
    Feature
    on Apr 21, 2020
  2. added this to the April 2020 milestone on Apr 22, 2020
  3. self-assigned this
    on Apr 22, 2020
  4. added
    To Be Discussed
    on May 22, 2020
  5. added
    Verified
    on Jun 23, 2020
  6. wojciechczerniak commented on Sep 18, 2020

    @wojciechczerniak
    ContributorAuthor

    At today's meeting with @krzysztofspilka and @bardek8 we've decided that this feature has to wait for more use case scenarios. ATM it's considered a niche and we will focus on other features.

    Moving to Backlog.

  7. self-assigned this
    on Dec 17, 2020
  8. wojciechczerniak commented on Mar 16, 2021

    @wojciechczerniak
    ContributorAuthor

    Done in #590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FeatureTo Be DiscussedVerified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions