Forum

Notifications
Clear all

How to remove spaces on this excel

4 Posts
3 Users
0 Reactions
43 Views
(@daish)
Posts: 2
New Member
Topic starter
 

I was trying several formulas but I wasn't able to find the right formula that will remove the extra spaces due to removal of duplication on the previous cell.  I'll be uploading the file here for reference.

 
Posted : 08/04/2020 7:37 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi,

I'm not sure where these spaces are that you refer to, you haven't been clear.  But if you are trying to remove spaces from the start and end of strings you can use TRIM().

Regards

Phil

 
Posted : 08/04/2020 8:53 am
(@daish)
Posts: 2
New Member
Topic starter
 

Hi Philip,

In between cells this is due the removal of duplicates using this formula : =IF(COUNTIF(G$2:G2,G2)=1,G2,"*") 

COLUMN G                                                 

@carige.it
@ceresioinvestors.ch
@bancaditalia.it
@bancaditalia.it
@bancagenerali.it
@mediolanum.it
@mediolanum.it
@popso.it
@bancobpm.it
@yahoo.it
@bancaditalia.it
@yahoo.com

COLUMN I

=IF(COUNTIF(G$2:G2,G2)=1,G2,"*")     

@carige.it
@ceresioinvestors.ch
@bancaditalia.it

@bancagenerali.it
@mediolanum.it

@popso.it
@bancobpm.it
@yahoo.it

@yahoo.com

 

ON COLUMN J ( the results that I want it to look like is like this) what formula should I use?

@carige.it
@ceresioinvestors.ch
@bancaditalia.it
@bancagenerali.it
@mediolanum.it
@popso.it
@bancobpm.it
@yahoo.it
@yahoo.com

 

Thank you so much!Cry

 
Posted : 08/04/2020 12:07 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

Depending on what version of Excel you use, if you use Excel 365 then chances are that you can use the new functions. Here are some good articles about them.

https://www.myonlinetraininghub.com/excel-sorted-dynamic-unique-list
https://www.myonlinetraininghub.com/excel-dynamic-arrays
https://www.myonlinetraininghub.com/excel-functions/excel-filter-function
https://www.myonlinetraininghub.com/excel-functions/excel-unique-function
https://www.myonlinetraininghub.com/excel-functions/excel-sort-function

Also depending on what you are to do with the result, but if you only want a unique list you can use a Pivot Table.

Based on what I see in your sample file I would use Power Query to get needed data.

Br,
Anders

 
Posted : 08/04/2020 5:10 pm
Share: