Forum Discussion
LauraJackson
Jun 15, 2023Copper Contributor
Help with Excel formula
Hi everyone, I have a formula in P2 that looks to see what is in F2. If F2 says "Full CPL", then put "Full" in P2. If it does not, then take the column header names from columns H through N and sepa...
- Jun 15, 2023
Try this one:
=LET( swap, SWITCH(size, "2XL", "3XL", size), filtered, UNIQUE(FILTER(swap, E2:J2 = "true"), 1), TEXTJOIN(", ", 1, filtered) )
LauraJackson
Jun 20, 2023Copper Contributor
Patrick2788 Hi Patrick, thanks a lot for your help so far. I am finding that when column F does not equal Full CPL I am receiving a #CALC! error. Any suggestions? Thank you.
Patrick2788
Jun 20, 2023Silver Contributor
It could be an issue with the way "true" is listed in your sheet. Is it text "true" or a logical TRUE.
- LauraJacksonJun 20, 2023Copper ContributorHi Patrick, they are all text "true".
- Patrick2788Jun 20, 2023Silver ContributorThe #CALC! error suggests FILTER is failing. Is H2:N2 the range in your sheet where "true" may be found?
- LauraJacksonJun 20, 2023Copper ContributorI see what you mean. I had used "true" in my fake spreadsheet but in my real spreadsheet it is a different value. Once I changed what is in the quotes the formula worked beautifully. Thank you so much Patrick!