Excel Formulae Befuddlement
-
Hi everyone,
I am a new user of Ninja tables so please forgive me if I am asking a question with an obvious solution. I have been able to figure out how to configure/design most of what I need, but I am stumped by the use of Excel Formulae.
I am working on a project where front-end users need the ability to update some cell values on a row-by-row basis (primarily Y/N responses to a series of questions,) so Ninja tables is the obvious solution to provide this functionality. I have been able to implement this on our pages – YAY!!
Next, using these values provided by our front-end users, we then use an Excel-style IF equation to assign a numeric value based on each of these Y/N responses. The values that are assigned to these Y/N responses vary with each row and are then ultimately summed to yield an overall “score.”
I have been trying to figure out how to use Transform Value to assign these values for the Y/N responses and am stumped. In Excel this is simple and my equation for one row would be:
=IF(B2="Y",20,0)
Based on the Ninja table documentation as well as the list of supported Excel functions listed on the Transform Value page, I started my testing with the following equation:
=IF(({{row.yn}}="Y”),20,0)
This did nothing, LITERALLY. The contents of the cell on the front end is null. I then started trying numerous equation variations but cannot get anything to work or display. I have even tried entering these equation variations into the Data Transformer field (which would apply the same criteria/equation to the entire column). The best I can sometimes get on the front end is the literal text of the actual “equation” being displayed in the cell.
I suspect I am missing something very simple and obvious, but I am at a loss. Can someone help?
Also, is it possible to replace the row Reference Shortcode with a specific Row ID value to point to a specific cell in a table? For example, {{104.yn}} to point to that specific cell in the table?
Thanks in advance!
Nancy
- The topic ‘Excel Formulae Befuddlement’ is closed to new replies.