Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamrealfarhanbd/5a2aff267c37b35cd7c05055fcdb9e2e to your computer and use it in GitHub Desktop.
Save iamrealfarhanbd/5a2aff267c37b35cd7c05055fcdb9e2e to your computer and use it in GitHub Desktop.
How To Use Excel Formulas in Ninja Tables

Documentation: Using Excel Formulas in Ninja Tables

Ninja Tables supports various Excel formulas to manipulate data directly within the table. Below is a list of supported Excel formulas along with examples of how to use them in Ninja Tables.

Supported Excel Formulas:

For a comprehensive list of supported Excel formulas, please refer to Screenshot link.

Usage Example:

Formula: IF

Description: Returns one value if a condition is true and another value if it's false.

Example:

=IF('{{row.ninja_tables_column_key}}'='',"Empty","NOT Empty")

Explanation: This formula checks if the specified column value is empty. If it's empty, it returns "Empty"; otherwise, it returns "NOT Empty".


Additional Notes:

  • Here is an example of where to find the refence shortcode: Screenshot link.
  • Wrap column values with single or double quotation '{{row.ninja_tables_column_key}}'or "{{row.ninja_tables_column_key}}" to reference them in formulas.
  • Pay attention to quotation marks single or double (' or ") when writing formulas. Sometimes they are required, and sometimes they are not, depending on the context.
  • As shown in the example above, you can wrap HTML tags in double quotation marks or single quotation marks.

By following these guidelines and examples, you can effectively utilize Excel formulas within Ninja Tables to perform various data manipulations.

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