I need to tally a row of fields into a 'Total' field. I can grab the first in the row and replicate in the 'Total' but my attempt to 'Sum', or add the all together, isn't working. What am I missing?
Announcements
I need to tally a row of fields into a 'Total' field. I can grab the first in the row and replicate in the 'Total' but my attempt to 'Sum', or add the all together, isn't working. What am I missing?
Got it, (courtesy of a previous conversation with @WarrenBelz)
With(
{
_Time_1:
Value(
First(
Split(
Label10.Text,
":"
)
).Value
) +
Value(
Last(
Split(
Label10.Text,
":"
)
).Value / 60
),
_Time_2:
Value(
First(
Split(
Label10_1.Text,
":"
)
).Value
) +
Value(
Last(
Split(
Label10_1.Text,
":"
)
).Value / 60
)
},
With(
{
_Hours:
Sum(
_Time_1 + _Time_2,
0
)
},
Text(_Hours) &
":" &
Text(
Mod(
(_Time_1 + _Time_2),
_Hours
) * 60,
"00"
)
)
)
Same result of '0', should be '8:00'.
Hi @Phineas
You need to convert these text values into numbers before summing them. You can use the Value function to convert text to numbers.
Value(Label10.Text) + Value(Label10_1.Text)
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1