IF FIND- help with formula

Hello. I have a lookup field which lists the age groups that are related to all the linked records. I have a formula field which I’d like to show ‘Senior’ if the lookup field contains Senior, ‘Intermediate’ if it contains Intermediate (but not Senior) and ‘Junior’ if it only contains Junior. The formula I’m using is this:

IF( FIND( ‘Senior’, {Lookup Correct Section} ), ‘Senior’, IF( FIND( ‘Intermediate’, {Lookup Correct Section} ), ‘Intermediate’, IF( FIND( ‘Junior’, {Lookup Correct Section} ), ‘Junior’ ) ) )

If it is listed “Intermediate, Senior” then the formula works perfectly however if it is “Senior, Intermediate” then it returns Intermediate (even though Senior is in there).

I’m sure it’s something really simple that I’m missing, I’d really appreciate any help!


Hi Katy, I think you have to explain again what exactly you’re trying to achieve. Why are you using that formula if the lookup field already shows you the age groups? :v:

@Katy_Richards Your formula might not be working because the field {Lookup Correct Section} is an array, not a string of text.

Everywhere in your formula where you’ve used {Lookup Correct Section}, try changing that to:

 {Lookup Correct Section} & ""

Hi guys, I was about to post a similar question where i saw @Katy_Richards question.
I believe the answer for Katy’s question will also answer mine.

	FIND(‘Ueki',  {Order Tags} & ‘’), 
      		FIND(‘Ogawa',  {Order Tags} & ‘’), 
	      		FIND(‘Suzuki',  {Order Tags} & ‘’), 
      				FIND(‘Morita',  {Order Tags} & ‘’), 
      					FIND(‘Kondo',  {Order Tags} & ‘’), 
 	     					FIND('Inoue',  {Order Tags} & ‘’), 
						'No Support'

Our {Order Tags} will include results such as “direct, SYSTEM, Suzuki, ShippingOK.”
Essentially, I have Shopify’s order tags being sent over to Airtable, and would like to Make a formula column that is designated to the person’s name providing support for the order.

If there’s anything I can be of assistance with in this thread, please let me know :slight_smile:
Thanks guys!

This kind of searching can be simplified using a regular expression:

    REGEX_MATCH({Order Tags} & "", "Ueki|Ogawa|Suzuki|Kondo|Inoue"),
    REGEX_EXTRACT({Order Tags} & "", "Ueki|Ogawa|Suzuki|Kondo|Inoue"),
    "No Support"

Screen Shot 2021-10-22 at 6.44.10 AM

1 Like

To address @Katy_Richards’ situation, the formula would look like this:

    REGEX_MATCH({Lookup Correct Section} & "", "Senior|Intermediate|Junior"),
    REGEX_EXTRACT({Lookup Correct Section} & "", "Senior|Intermediate|Junior")
1 Like

I don’t think that this will address the situation. If the field contains “Senior, Intermediate” or “Intermediate, Senior”, she wants the formula to return only “Senior”.

I believe that Scott’s answer is correct in this case (if the lookup field remains a lookup field):

    FIND( 'Senior', {Lookup Correct Section} & ""), 
    FIND( 'Intermediate', {Lookup Correct Section}  & ""), 
    FIND( 'Junior', {Lookup Correct Section}  & ""), 
) ) )

On the other hand, I find that lookup fields are the most difficult fields to use in formulas, as the resulting type is not consistent. Instead, I recommend converting the lookup to a rollup, in which the original formula should work.

1 Like

Sorry, I skimmed the original a bit too quickly.

Thank you all for your help, @ScottWorld’s answer worked perfectly. Thank you so much!


Thank you Justin, it worked like a charm!
It was something ive been struggling for a while, so thank you!

1 Like

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.