?
Solved

Excel extract data

Posted on 2014-07-21
4
Medium Priority
?
234 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

801 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