Solved

Excel extract data

Posted on 2014-07-21
4
212 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now