Solved

Excel extract data

Posted on 2014-07-21
4
227 Views
Last Modified: 2014-07-21
I have data in Column A excel in the format:
aaa\bbb\ccc\ddd\123.xls

I want two things to be done from this data:
1. I want to extract everything from column A before last \ , that means the formula should give result: aaa\bbb\ccc\ddd
2. After this result is in new column, let's say the formula is pasted in Column E, I should be able to compare the whole column E & take out unique values out of it.

Thanks,
A
0
Comment
Question by:Ackles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 11

Author Comment

by:Ackles
ID: 40209405
Can someone answer, I need it bit urgent....
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 40209643
Try this formula:

=LEFT(A1,FIND("#",SUBSTITUTE(A1,"\","#",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))-1)

where A1 contains original.

Then copy the new column, paste special >> Values over itself.

Then while that column is selected go to Data tab, and select Remove Duplicates.
0
 
LVL 11

Author Comment

by:Ackles
ID: 40210849
Great!!!


Thanks a lot.

A
0
 
LVL 11

Author Closing Comment

by:Ackles
ID: 40210851
Perfect!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question