Contact List formatting from formula only showing email address
I've got a formula that pulls contacts from another reference sheet into a Contact List column, but it also checks an adjacent column for a value to transpose a would-be contact:
=IFERROR(IF(Resource@row = "Eric R.", "erussell@email.com", INDEX(COLLECT({IT Requisition Tasks Resource}, {IT Requisition Tasks Task Name}, [Item Description]@row, {IT Requisition Tasks ID}, [IT Req]@row), 1))), "")
However, the input from the if true (adjacent column) is added to the Contact List column only showing the email address, though it looks correct if you hover over it (see below).
You can also see the rows below pulling from the latter half of the IF statement which pulls in a value from the contact list on the reference sheet. This is pulling in with the correct format. Only the formula attempting to input the contact column value shows the unintended formatting in the cell.
I've also tried the following to input the contact value from the formula, but the formula above is the closest while the following do not trigger the addition of the contact badge in the cell:
IF(Resource@row = "Eric R.", "Eric Russell <erussell@email.com>","")
IF(Resource@row = "Eric R.", JOIN("Eric Russell","<erussell@email.com>"),"")
IF(Resource@row = "Eric R.", "Eric Russell" + "<erussell@email.com>","")
Best Answer
-
Hi @bsim1130
Here's the workflow I have set up. You could change this to have multiple conditions filtering to different actions if there will be other selections in the "Resource" column.
This will automatically bring in the correct contact based on the text value in the Resource Column:
Since it's bringing in a contact value, this will have the contact name and email. Then your formula will reference this cell instead of "text":
[Helper Contact]@row
First it will check if the cell is empty, and if it is, complete the INDEX(COLLECT you have written. But if it's not empty, it will copy the exact contact over:
You can hide the Helper Contact if that helps! Or, depending on your process, you may be able to use the Assign People automation with other criteria to eliminate the need for any formula at all.
Let me know if you need any further clarification.
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @bsim1130
The way you have your initial formula is correct; formulas can't recognize the full contact in the same way that the column can. It will bring in the email address without the name, but it will still be a contact-type of value (so it can be used in automations, etc).
If it's important to have the name instead of the email, I think we may be able to create a different way of pulling in this information by using the new Assign People automation.
You could have a Helper Column set as a Contact List type of column. Then in the Workflow, set up either the trigger or a condition to be that "Eric R." is in the Text column, and assign Eric's contact to the Helper Column if this is true... or assign different other people based on this resource text column. (See: Assign People to a Task)
Then in your formula you can reference this Helper cell instead of using the email address "in quotes". You would say that if the Resource column is blank, do the INDEX(COLLECT formula. If it's not blank, pull through the contact in the helper column.
=IFERROR(IF(Resource@row = "", INDEX(COLLECT({IT Requisition Tasks Resource}, {IT Requisition Tasks Task Name}, [Item Description]@row, {IT Requisition Tasks ID}, [IT Req]@row), 1)), [Helper Contact]@row), "")
By referencing a cell with the contact in it, this will bring through the full contact format (name and email). Does that make sense?
Let me know if you'd like to see screen capture examples of my suggestion above!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thanks for the reply. I do think some screenshots would be helpful, though I believe I understand what you're proposing.
I try to construct our sheets with minimal columns and maximum efficiency. In my opinion, this is what formulas are for. However, to accomplish some seemingly basic tasks, I do end up having to create an uncomfortable amount of "helper columns".
-
Hi @bsim1130
Here's the workflow I have set up. You could change this to have multiple conditions filtering to different actions if there will be other selections in the "Resource" column.
This will automatically bring in the correct contact based on the text value in the Resource Column:
Since it's bringing in a contact value, this will have the contact name and email. Then your formula will reference this cell instead of "text":
[Helper Contact]@row
First it will check if the cell is empty, and if it is, complete the INDEX(COLLECT you have written. But if it's not empty, it will copy the exact contact over:
You can hide the Helper Contact if that helps! Or, depending on your process, you may be able to use the Assign People automation with other criteria to eliminate the need for any formula at all.
Let me know if you need any further clarification.
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
There's this phrase: "Go around the world to get across the street." Though we take the scenic route, I do believe we eventually get across the street with this LOL.
Many thanks, @Genevieve P.
-
Haha, no problem! Glad we could get there in the end. 🌏️
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives