Here’s a possible example of a search I’d like to do:
I have stir-fry 100 recipes that share one common ingredient, let’s say onions. They all have different, non-sequential IDs (since the recipes were all created at different times). Today I want to change a subset of those onion stir-fry recipes (let’s say 45) to use shallots instead of onions in the recipe. I have the IDs and would like to search for all 45 recipes at once, rather than individually, so I can then make a batch change to the ingredients (onion to shallot). Keep in mind, I have other recipes (aside from stir-fries) with onions.
I’m not well-versed in Airtable formulas, so I’m not entirely sure how that would work in this scenario.
Using your example, it sounds like you want to do a “find and replace”, which isn’t supported in Airtable and would require a custom JavaScript to replace some of your onion references with shallots.
But you might be able to do this with Airtable’s Batch Update block, if your tables are setup the right way.
Either way, the first step is getting a view that only contains your 45 records that you want to replace. Since those 45 records have nothing in common with each other, you will manually need to filter your list down to those 45 records.
I think that your best bet might be to simply add a checkbox field to your table, so you can quickly just scroll through your list and check off the records that are going to need replacing.
Once you’ve checked off your 45 records, you could either filter your current view or create a new filtered view that is based on those checkboxes.
From there, you can run your JavaScript to do a “find & replace” for the values that you’re looking for.
Or, instead of writing a JavaScript, Airtable actually has a Batch Update block, BUT that block completely overwrites entire cells with new data… it doesn’t do a “find and replace” of existing data.
So, assuming that you have a recipes table linked to an “ingredients per recipe” table, you could filter your records from the “ingredients per recipe” table (instead of the “recipes” table) and then run this Batch Update block from there. That would do the trick, without needing a JavaScript. But running this Batch Update wouldn’t work from the recipes table.