Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Joining text "if" a criteria is met in multiple rows / columns

Hi,

I'm trying to do something a bit complicated and hoping for some assistance. I am trying to join text from specific columns IF another column has specific verbiage in it (Campaign 1). Below is an image of the rows and the column with that verbiage. Do you know what would be the appropriate formula for this?

I want to join "Tactic" and "Launch Date" together for each row with the Campaign 1. I am also hoping the Launch Date is listed directly after the Tactic name. So I would like it come out like this or as close to this as a I can in the cell with the formula:

Direct Mail - 1/10/25, Consumer Email - 1/16/25, B2B Single Supplier Email - 1/31/25

I tried the join and collect function but I am not getting it right as it keeps separating the date or I get an error.

Thank you

Answers

  • Community Champion
    edited 01/22/25

    Hi @KDev,

    Add a new helper column with the following formula.

    =IF([Campaign Sample]@row = "Campaign 1", Tactic@row + " - " + [Launch Date]@row)

    Then, in some other spot, use this for the final output.

    =JOIN([Helper Column]:[Helper Column], ",")

    Hope this helps,

    Dave

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I have a pretty basic sheet that I am using to develop a formula, and am encountering an issue I haven't seen before. The formula isn't including my second row for some reason. It isn't a huge issue f…
    User: "jjg279"
    Answered ✓
    9
    2
  • I'm sure that this is an easy fix but I've tried a bunch of different ways and can't get this to work. I need to get the max date from a sheet to feed it into my meta data sheet (dates are stored in d…
    User: "susanmgfin"
    Answered ✓
    8
    2
  • I need help to come up with the risk formula. I tried many different formulas and tried to modify it but just can't seem to have desired results. So these are the conditions I MUST meet: Program is a …
    User: "Ronak"
    Answered ✓
    29
    6