Jan 28, 2017 02:26 AM
Hey,
I’m having a task table with a worker ID and a calculated task run time (with datetime dif) on one table and want to sum all entries from a worker summed up.
I know how to use Lookup but how do I calculate a sum from a field from all rows?
Thanks,
Frank
Feb 01, 2017 04:51 PM
Hi Helmi, this is a great question! It sounds like you have a few options:
A) Use a rollup field to calculate the sum of a field for all linked records
B) Group records by worker, and use the group’s summary bar to calculate the sum of a field
C) Create a filtered view of only those records associated with a given worker and use the summary bar
Hope this helps! If I’m misunderstanding your setup and what you’re looking to accomplish just let me know :slightly_smiling_face:
Feb 02, 2017 01:26 AM
Hey @Victoria_Hay,
thanks for replying.
I’m unsure about all your solutions. I try to be a bit more precise with another example. Here’s my situation with two tables:
What I now want is to sum up the time that each tool was used in jobs and display it right within the record on the Tools table.
As I understand the rollup field doesn’t have that filter where I can only select the entries where the tool is used but can rollup everything from the Job log table. Is that right? Also the Rollup doesn’t seem to able to add up values that were created by DATETIME_DIFF.
Grouping is nice but isn’t exactly what I want as well as a filtered view.
Feb 02, 2017 03:46 AM
It can be done with a rollup (and a sum) as it will only grab the linked records. Not sure about the date format though, but you can always convert the time to minutes or something using: DATETIME_DIFF([date1], [date2], ‘units’) - where units is ‘m’ in this case.
Sep 12, 2018 06:46 PM
can u explain how to sumif numbers from another table instead of pasting a link to the help section of airtable? that would be great. thx.
Sep 13, 2018 10:14 AM
@Pete_Bragansa - You may find this thread helpful in explaining some options for you:
Use the search feature on this forum (top right) - it has some very powerful filtering options, and can making finding threads that already might exist about a topic pretty easy to locate. Try searching for different keywords that might encapsulate what you’re trying to do, like “summary”, “sum”, “sumif”, etc.
There are a lot of posts on the forums where people explain in detail how to do many different things, so you may find that the explanation you are looking for already exists.