# How-to questions

Hi! Don’t forget to take a look in the Knowledge Base for answers to common questions :)

• Hot ideas
• Top ideas
• New ideas
• My feedback
1. ## Calculating Duration of Time

Is there a way to calculate Time, (not Base-10 numbers)?

I have a user who tracks Total Run Time (TRT) for TV Programming, and we need to sum/add the durations of multiple TRT's in the format of HH:MM:SS (Base 60).

Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
2. ## Day of the Year

Is there a formula to calculate the day of the year?
Example: Today, 3/18/2015 is the 77th day of 2015.

Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
3. ## How to add a space between two text fields in calculated text i.e {First Name}&{Last Name}. There is no space between them?

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
4. ## Use Regular Expression in Contains() or Snip()

It would be really great to be able to match a pattern of text with regular expression in contains() and snip()

If you use IF(contains("gmail",{url}),"Gmail","other")

It will return gmail for both because both contain gmail even though I am only looking for /account/gmail.

If I wanted to just find the account number (in this example) I could use something like /(\d+\w+)/g

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
5. ## IS IT POSSIBLE TO COMBINE A NUMERIC FIELD AND A TEXT FIELD INTO A SINGLE CALCULATED FIELD

HAVE AN AUTOMATED NUMBER FIELD WITH A UNIQUE NUMBER FOR EACH RECORD, AND ANOTHER TEXT FIELD FOR LAST NAME. COMBINE THE TWO INTO ONE RECORD ID FIELD THAT CONTAINS THE NUMBER AND THE LAST NAME FOR EASIER IDENTIFICATION. I AM NEW TO THIS AND DID NOT SEE ANYTHING EXPLAINING WHETHER THIS COULD BE DONE IN THE KNOWLEDGEBASE

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
6. ## Avoid a blank return when using concatenate on fields that may be blank

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
7. ## I need to copy an auto-generated numeric ID to a text field if a condition is met

I have a checkbox in a table to deliniate a category: checked or not checked. If not checked, the record is an asset without a serial number. When not checked, I need TrackVia to copy the auto-generated numeric field (unique ID) for that record to a text field as a substitute for the serial number.

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
8. ## Returning Value based on date being between two dates

I am trying to produce a formula to calculating carbon emissions factors.

When inputting a new meter record I need the date to return a value if it is between two dates.

I then need that value to be multiplied by the new meter value.
For this to work I presume I am going to need to set up another table with all of the dates and values I want to be returned. But how do I lay the table out?
Do I do a start date and end date? Month on Month?

Really need some help on the formula…

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
9. ## Max Function and Dates

I have a max function that returns the "highest", or most recent, date. However, what gets returned is the max date minus 1 day.

For example, the highest date is 4/20/2014. But 4/19/2014 is returned.

Is this a bug? Or how can I fix it?

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
10. ## Set starting number for auto counter?

I have an existing auto incremented ID in my data, how do I set the starting point for an auto incremented field?

1 vote
Vote
(thinking…)
Signed in as (Sign out)
You have left! (?) (thinking…)
11. ## How to Return a 2-Digit Value for Date Formula "Month(date)" and "Day(date)"

Using the month() and day() formula result in a single digit number returning. eg: January = 1.

Is there a way to have a 2 digit value return for all?
eg: January=01

I'm trying to get a result of: 2014-01-15

concatenate(year({Month Ending}),"-",month({Month Ending}),"-",day({Month Ending}))

Vote