cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thQS
Frequent Visitor

Sharepoint - Calculated field

Hi, 

 

Situation:

1 have 3 collums in a Sharepoint list. 

 

1. First_Name
2. Last_Name
3.Email

 

Problem:

I want the email collumn to be automatically calculated as     First_Name.Last_Name@companyname.com

The problem is that the spaces in last name stay in the e-mailadress. like John.De Bruicker@companyname.com

In Powerapps I can do this with Substitute(Input_Voornaam.Text&"."&Input_Familienaam&"@police.belgium.eu"," ",""), but I want to have it done in Sharepoint. 

 

Is there a way to have the spaces deleted?

1 ACCEPTED SOLUTION

Accepted Solutions
mahoneypat
Super User
Super User

Please try this expression using SEARCH and REPLACE

 

=IF(NOT(ISERROR(SEARCH(" ",Last_Name,1))),REPLACE(Last_Name,SEARCH(" ",Last_Name,1),1,"")&"."&First_Name&"@company.com",Last_Name&"."&First_Name&"@company.com")

 

Regards,

Pat

View solution in original post

2 REPLIES 2
mahoneypat
Super User
Super User

Please try this expression using SEARCH and REPLACE

 

=IF(NOT(ISERROR(SEARCH(" ",Last_Name,1))),REPLACE(Last_Name,SEARCH(" ",Last_Name,1),1,"")&"."&First_Name&"@company.com",Last_Name&"."&First_Name&"@company.com")

 

Regards,

Pat

View solution in original post

thQS
Frequent Visitor

I don't think I fully understand but it worked! 

Thx !

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,724)