Jan 13, 2022 06:47 PM
Hi there,
I’m looking for some help!
I have a formula in a cell that basically creates an automatic Project ID.
For this Project ID I use two fields:
I’m now using the following formula:
LEFT({Requesting Team:},2 ) & "-" & Autonumber
This formula is great, except for the fact that I am sometimes left with spaces:
The first Brand project becomes B -1
I would like for that to be B-1 (minus the space)
Any tips on how to achieve this?
Can I use LEN 2 unless the second character is a space, and then use LEN 1?
Thanks in advance!
Jan 15, 2022 03:53 AM
Instead of setting 2
on LEFT
, find the -
position with FIND()
.
Jan 20, 2022 10:51 AM
@Elias_Gomez_Sainz Thank you!
I got it in a better shape, but I’m still trying to figure out how to remove the space:
LEFT({Requesting Team:},FIND("–",{Column:})) & Autonumber
I could rename my Column entries from “B – Brand” to “B–Brand”, but I would love to keep the spaces in and just filter them out of the formula.
Jan 20, 2022 11:04 AM
Oh yes, I didn’t realize that. Just find " -" (space + hyphen).