Dec 11, 2017 03:05 PM
what formula can I run against a text field that will display all text characters up to a “,”.
Example: TEXT1, TEXT2
Result: TEXT1
Solved! Go to Solution.
Feb 01, 2018 06:19 AM
I have been trying variations on this formula for days now and keep getting 0 or #ERROR!. Will this not work when {array field} is a Lookup type field?
Feb 02, 2018 01:04 PM
If you wrap a lookup-type {Array Field}
with ARRAYJOIN()
, FIND()
will work as expected. You probably should create a scratch formula field with the formula ARRAYJOIN({Array Field})
just to see what the resulting string looks like, as ARRAYJOIN()
will alter the Lookup field somewhat. Alternatively, you can use a Rollup field instead of the Lookup.
May 01, 2019 07:21 AM
Looking to do something similar, however I’m just trying to extract 2 people’s first names from a field.
For example:
I need to turn “Doe, John & Jane” into “John & Jane”
Better yet, I need a formula column that will pull (If applicable) First name, Middle Initials/Titles (A. -or- Jr.), Spouse Name, and their Middle Initial/Title as well.
Example 1: “Doe, John A. & Jane B.” to become " John A. & Jane B."
Example 2: “Doe, John A. Jr. & Jane B.” to become “John A. Jr & Jane B.”
Is this even possible?
I already have a separate column that pulls the last name properly.
Any help would be greatly appreciated!
Aug 19, 2019 11:57 AM
Looking to do something a little different. I have a unique contractor name that includes the contractor name, the SOW 3 digit number (001, 002, etc.) and then SOW name. I am looking to just grab the contractors’ first and last name. Here is an example below.
FirstName LastName 015 SNHU DATA SCI 2
In Excel I would use the following formula: =LEFT(A3,(SEARCH(0,A3,1)-2))
In Airtable A3 = {Contractor Unique}
Although the formula is accepted in Airtable, I get a #ERROR in the field. So this doesn’t quite work in Airtable.
=LEFT({Contractor Unique},(SEARCH(0,{Contractor Unique},1)-2))
Any suggestions for adjusting?
Aug 19, 2019 01:04 PM
A few things:
What you’re left with (pun partially intended) is this:
LEFT({Contractor Unique}, SEARCH("0",{Contractor Unique})-2)
Aug 19, 2019 01:18 PM
Thank you for all the tips! This worked perfectly!!! :grinning_face_with_big_eyes:
Feb 10, 2020 12:16 AM
Hi Airtable-Gurus,
I have a similar problem I’ve been struggling with. I have records with a bunch on info in a single array string, separated by commas. I’d like a formula to
search a field based on contents (not position, as each record has a different amount of comma separated values in this field)
display the result in a unique field without ‘title’ part of the found data.
For example array contains:
*VFX NO. 101-002-010_E01 ,*FROM CLIP NAME: V001_C044_1234_001.R3D ,*ASC_SOP (1.0000 1.0000 1.0000)(0.0000 0.0000 0.0000)(1.0000 1.0000 1.0000) ,*ASC_SAT 1.0000 ,*SOURCE FILE: V001_C044_1234
And results end up in a formula field called ‘ASC_SAT’ with a value of 1.0000
Any help very much appreciated! Thank you.
May 18, 2020 05:00 PM
@EastEndTom Sorry that this has gone unanswered for so long. Am I reading your comments correctly that you need to extract the value that comes immediately after “ASC_SAT” (in this case “1.0000”), and put that into a similarly-named formula field?
Oct 20, 2020 07:35 PM
Hey all. I have a similar challenge I’d love some help with. I’m dumping in this data below from Zapier into a field called {Selected Items}:
description:
discount: 0
heading: Shop Supplies & Tool Usage
item_code:
item_total: 49.16
quantity: 1
sales_category: Materials & Supplies
subscription:
tax_description: No tax
tax_rate: 0
unit_price: 49.16
description:
discount: 0
heading: CNC Programming
item_code: CAM/CAD
item_total: 210
quantity: 1.5 :point_left:
sales_category: CAM/CAD Design
subscription:
tax_description: No tax
tax_rate: 0
unit_price: 140
description:
discount: 0
heading: CNC Machining
item_code: CNC Machining - note
item_total: 1750
quantity: 12.5
sales_category: CNC Routing
subscription:
tax_description: No tax
tax_rate: 0
unit_price: 140
I’d like to pull out the quantity amounts into their own field. So for example I have created a new field with the name, “CAM” and I’d like that to result in just 1.5 from under the heading CNC Programming
I’m struggling to come up with the right LEFT/RIGHT/SEARCH combination that gets me just the quantity for that lookup.
Oct 21, 2020 10:06 AM
Where is this data coming from before Zapier gets it? I’m inclined to find a way to separate it earlier in the process, as a formula to isolate the quantities for different fields would be cumbersome at best. It looks like you’ve effectively got an array of dictionaries/objects. Do you want the other items (description, discount, item total, etc.) to also end up in their own fields, or do you only care about the quantity?