Add numbers from a form only when one field is empty

Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch Forums Using Tap Forms 5 Add numbers from a form only when one field is empty

Viewing 3 reply threads
  • Author
    Posts
  • January 9, 2026 at 3:46 PM #53422

    Steve-Kai Vyska
    Participant

    Hello everyone,

    I’m a little confused about how to use the total function I have a subform, where I need to add numbers. With the total function this is no problem, but I only need the Data to be added, when one Datefield is empty. I’m looking for something like the “summewenns” function in the Numbers-APP.

    Is there something like this ready, or do I have to use a script to calculate everything on my own?

    Thanks for any hint

    Steve

    January 13, 2026 at 10:32 PM #53436

    Brendan
    Keymaster

    Hi Steve,

    I don’t know what summewenns means and translation didn’t find it either. But if you need to add a number only when a Date field is empty, then you’ll need either a Calculation field or a Script field to return that value for you. Then you can have the grand total displayed for that field.

    In a Calculation field, use the IFEMPTY() function to detect if your date field is empty or not.

    January 14, 2026 at 9:35 AM #53444

    Steve-Kai Vyska
    Participant

    summewenns is a Funktion from apple numbers Programm. that is why you can not find a translation, sorry for the confusion,

    you mention the calculation field. I’m using it in several forms but how can I tell the filed to only add the values with an empty date field? via script I have found out but I thing using existing function would be easier, that is why I ask :)

    Greetings

    Steve

    January 14, 2026 at 10:59 AM #53445

    Daniel Leu
    Participant

    You create an additional field (type: calculation) that only contains a number when the respective date field is empty. Then you can use the total feature on that.

    Cheers, Daniel

    ---
    See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricks

Viewing 3 reply threads

You must be logged in to reply to this topic.