Excel 2007 :: New File From Unique Listings

Feb 22, 2012

I'm having some trouble with a spreadsheet copy.

I have a spreadsheet listed out with 2-3 pieces of data per row like:

Mark - abc
John - def
John - ghi
Abby - xyz

etc.

What I need to do is create a new file for each unique string in column A. So for my brief example above, the "Mark" file would have 1 row, the "John" file would have 2 rows, etc. I also need to save the new file by the name in the first column (so "mark.xls"). (Conveniently, the table is sorted by the first column already.)

What I did was create a new worksheet for each row and then save that as my file. However I'm having problems getting my file to contain more than one row (I can get either the first or last row, but not all of them). I have about 30 spreadsheets to do this for, and each will create 80+ files... I'd really rather not do them by hand.

I'm on Excel 2007 if that matters.

I cobbled together some code I found in various places and this is what I have so far:

Code:

Sub CreateWorkbooks()
Dim newSheet As Worksheet, regionSheet As Worksheet, CurSheet As Worksheet
Dim cell As Object
Dim regionRange As String
Dim lngRows As Long
Dim CurRow As Long

[Code]...

(note that the comments are what it is supposed to be doing, not necessarily what it is doing)

View 5 Replies


ADVERTISEMENT

Excel 2007 :: Counting Unique Values

Dec 9, 2013

I am using Excel 2007

I have 50 000+ rows that covers fiscal years from 2006 to 2014 and I want to calculate how many unique clients are there per asset type per fiscal year. In addition, the results table needs to adjust to filters i would use on the raw data..

As:

2007
2008
2008

Commodity
45
FX

Other
other

Here is a sample file: SampleData.xls

View 8 Replies View Related

Excel 2007 :: Count Of Unique Values

Nov 18, 2011

I would like to get the count of unique values in my 2nd column using my values in 1st column as the criteria. Below is my example of my data set.

EFGH5DeptHC

6A304794A17B86122B38B86179C39B90050D1310C82705

11C94955

12C308165

[Code] .........

Excel 2007

I would like to see the count on column H (highlighted in yellow).

View 1 Replies View Related

Excel 2007 :: Extracting Unique Into Another Column

Feb 1, 2013

Column A has following names: A5 Peter A6 Sally A7 Andre A8 John A9 Wayne Column B has following names: A5 Andre A6 Wayne

I need Column C to show names that are in Column A but not in column B ...

Column C should show following: C5 Peter C6 Sally C7 John

I am struggling with this in excel 2007

View 1 Replies View Related

Excel 2007 :: VBA To Find Unique Rows

Jul 29, 2013

I am wanting to find rows that with unique values in the first column, and then take those rows and display them in a more readable format. The section titled input is an example of information that would be pulled from a query into Excel. The Desired Output section is how I would like the info to be displayed. If this is possible without VBA then that is even better.

Excel 2007
A
B
C
D

[Code].....

View 2 Replies View Related

Excel 2007 :: VBA Get Unique Values Set In Filter

Nov 29, 2013

[Excel 2007]. I'm trying to get the list of unique values from a Filter on a column in VBA.

I've given the column a Range Name

Code:
Dim rClient As Range
Set rClient = ws.Range("CLIENT_NAME")

Dim aClients() As Variant
aClients = rClient.???

There's nothing in the range method dropdown that obviously relates to the Filter on the range.

Is it something to do with the Table method?

View 2 Replies View Related

Excel 2007 :: Force File To Be XLSM File Type

Oct 22, 2013

I have a macro-enabled template file in Excel 2007. I would like the user to be unable to save in any format other than macro-enabled. They should be free to choose a path and filename, but not the file type.

I presume this means some VBA code in the before save event, but I don't know what.

View 2 Replies View Related

Excel 2007 :: Extracting All Unique Items From Pivot Table

Feb 20, 2012

I am looking for a way to extract all of the unique items in a Pivot Table. For example, I have a Pivot Table that has category A items and category B items. There may be several B items to one A. For example:

A0
B1
B2
B3A1
B3
B4
B5

Now, what I need is a list that looks like this:

A0 - B1
A0 - B2
A0 - B3
A1 - B3
A1 - B4
A1 - B5

Formatted so that those are two columns. However, in Excel 2007, I cannot set the option to have it repeat the A series items in the Pivot table. Is there some easier way to do this?

View 2 Replies View Related

Excel 2007 :: How To Make Unique List From Repeated Items

May 22, 2012

Using excel 2007. I have a column with multiple items, a lot repeated.....how do I make a to show just one of each item? I want a unique list of my column of repeated items.

View 3 Replies View Related

Excel 2007 :: Copy / Paste All Rows For Each Unique Name And Save In Separate Workbook

Dec 11, 2011

I am using Excel 2007

I have a spreadsheet with 1,000 rows in multiple columns

In column "B" i have 8 unique names.

What I am trying to work out is to copy and paste all the rows for each unique name and save in a separate workbook named as the unique name.

View 2 Replies View Related

Excel 2007 :: Create Dynamic And Unique Sublist Based On Multiple Criteria

Aug 26, 2012

Excel 2007, Windows 7.

Most details are shown in the spreadsheet below. I would like it to be dynamic because the quarterly and annual data dumps I'm working with are are hundreds to thousands of lines.

Have the list be sorted, which is a part of the first attempt, would be nice but is not necessary. At this point, just being able to generate the dynamic list would be fantastic.

Excel 2007ABCDE1product lines:consist of these product subtypes2Widget series:Widget.type1Widget.type23Fidget series:Fidget.type4Gidget series:Gidget.type1Gidget.type2Gidget.type356data dump of parts sold or used in repairs7product subtype repairedpart number

[code]......

View 5 Replies View Related

Excel 2007 :: How To Get Dropdown Box Results To Show Unique Values And Non-Blank Entries

Sep 27, 2012

I am using a ComboBox in Excel 2007 in a UserForm. It is drawing on a row source which populates empty cells duplicates. How do I get the drop down box results to only show unique values and nonblank entries?

View 4 Replies View Related

Excel 2007 :: Picture Created With Unique Names - Adding Comments To Cell

Oct 23, 2012

Excel 2007

I have a few dozen pictures created when a macro runs. They all have unique names. I'd like to add comments to cells, where the cell.value decides which picture to pull. All the examples I've found online show how to do this if you have pictures saved on your hard drive by referencing the file path "c://mydocs/...blahblah/"

Is there a way to reference the pictures I've created/named with my macro?

Here's the snippet of code that creates the pictures and names them:

Code:
For i = 2 To Application.CountA(Sheets("Allocation").Rows(1))
Sheets("Allocation").Activate
Set rInput = Sheets("Allocation").Range(Cells(1, i), Cells(10, i))
sPicName = "_" & Sheets("Allocation").Cells(1, i) & "_"
sSheet = Sheets("Allocation").Cells(3, i)
dDate = Sheets("Allocation").Cells(5, i)

[Code] ......

Here are some examples that are close to what I'm looking for.

VBA Popup Pictures - 1108 - Learn Excel from MrExcel Podcast - YouTube
VBA Express : Excel - Add pictures that float like comments.

View 4 Replies View Related

Excel 2007 :: Search For A File In Sharepoint Using VBA

Apr 18, 2014

I want to search for a file in Sharepoint using Excel 2007 VBA.

Path to the Sharepoint location where the files are at is [URL] ....

File name is customer_list_xxxxxx.xlsx The x's are a date which changes every day or week. So a new file will be uploaded to the sharepoint path.

Example customer_list_041414.xls

I've tried so many different code options for this, but no luck.

View 1 Replies View Related

Excel 2007 :: Extract Data From File

Feb 12, 2014

Extracting data from an excel file, the data needed in lies in one column.

in this line

<GPSPosition pntRef="GPS_Auto_0080" wgsLatitude="33.334329659885" wgsLongitude="44.405736558207" wgsHeight="27.615921">

i need to get a table with three columns shows

wgsLatitude, wgs Longitude , wgsHeight
33.334329659885 ,44.405736558207 , 27.615921
etc

and get rid of all other information

this is an example of the how the file look like

---------Column N -------------------
</Feature>
</GPSPosition>
</GPSSetup>
<GPSSetup id="GPSSetupID_18" GPSReceiverDetailsID="GPS_1" antennaHeight="1.660000" stationName="GPS_Auto_0080">
<GPSPosition pntRef="GPS_Auto_0080" wgsLatitude="33.334329659885" wgsLongitude="44.405736558207" wgsHeight="27.615921">

[code].....

seems from above that there are too many data not needed the only thing need to be exracting is one lies of GPSPosition Line.

View 2 Replies View Related

Excel 2007 :: How To Find Bloat In A File

Apr 16, 2013

I have several sheets I use for MI and most have similar amounts of data in, ie, a tab for each month with out 15-20 columns and upto 10,000 rows, then a couple of summary sheets with filtering and calculations in.

One of my sheets is currently 16Mb, when the others are about a third of that, with similar amounts of data.

Is there a way to find what is causing the extra space to be taken in this sheet?

Or does this seem about right for the amount of data?

I'm using 2007.

View 3 Replies View Related

Excel 2007 :: Open Or Import A PDF File?

May 27, 2013

Is there a way to Open or Import a PDF file in Excel 07 ?

View 2 Replies View Related

Excel 2007 :: Can't Add New Sheet In Existing File

Jul 15, 2013

I am not able to add a new Excel sheet in a existing file when I right click next to the existing page it gives this option only and I am using Arabic Charcters + I am not having too many sheets

View 1 Replies View Related

Excel 2007 :: Hyperlinks - Cannot Open The Specified File

Oct 17, 2013

I received a USB drive from a client with an Excel spreadsheet with hyperlinks to PDF's (not sure of the version it was originally created in but my version is 2007). The PDF's are in another folder on the USB drive.

The cells with the hyperlinks have a formula to hidden cells [i.e. =HYPERLINK(C17,B17)] - in column B is the name of the hyperlink and in column C looks to be the file trial to the PDF (please see attached picture).

When I select the link, I get an Alert Box stating, "Cannot open the specified file." How I can get these links to work?

Excel Hyperlinks.png

View 1 Replies View Related

Excel 2007 :: Copy Rows To New File

Jan 24, 2012

I have files that have thousands of rows in them with company names. The rows contain the company name plus lots of other info. I'd like to be able to create files or sheets with the company name as the file or sheet name with the respective rows contained within it. Make sense?

For example:

Original file or sheet
Date Company Info1 Info2
Jul Sams Expense Desk
Jan Freds Expense Doughnuts
Jun Sams Deposit Return
Feb Sams Expense Food
Dec Freds Expense TV

Would become:

Sheet or File Sams
Date Company Info1 Info2
Jul Sams Expense Desk
Jun Sams Deposit Return
Feb Sams Expense Food

Sheet or File Freds
Date Company Info1 Info2
Jan Freds Expense Doughnuts
Dec Freds Expense TV

View 6 Replies View Related

Excel 2007 :: Unable To Save As PDF File

Apr 26, 2013

I have an Excel worksheet (2007 version) which I am trying to save as a PDF file. However, the PDF option is not listed in my "Save as type" drop down window.

View 3 Replies View Related

Excel 2007 :: Add-in Not Loading When Opening File

Jun 10, 2013

I have an excel add-in which is a ribbon which houses a great deal of financial tools that I use on a regular basis so I don't have to hunt around excel for things I use regularly. The add-in has always loaded automatically whenever I opened excel - whether I opened excel by creating a new blank document or by double clicking a previously existing file.

Starting a few days ago though, the add-in only opens when opening excel by creating a new blank file. I can't think of anything that changed recently. Using Excel 2007.

Even when opening a file by double clicking, Excel still says the add-in is active (in excel options).

View 5 Replies View Related

Excel 2007 :: Create PDF File Using Range Name

Jul 15, 2014

I would like to create a PDF file from a RANGE Name, excel 2007, attach it to MS Outlook 2007, Once in Outlook I will select the recipient, add some remarks and hit send. I can do this now with a workbook but not a range.

View 1 Replies View Related

Excel 2007 :: How To Repair And Recover Corrupted File

Dec 6, 2010

One of my excel files has refused to open and i think it is corrupted. The error message is; Excel cannot open because the file format or extension is not valid .Verify that the file has not been corrupted and that the file extension matches the format of the file.

How do i repair and recover all the data in the excel file.

View 5 Replies View Related

Excel 2007 :: How To Apply Filters And Export A New XML File

Apr 5, 2012

I have an XLS file that gets data from an imported XML file. I need to apply some filters and then export it in a new XML file. I'm trying both "Development->Export" and "Save as->XML Data" procedures, but it always saves all data in the XLS document, not only the filtered. How can I obtain a new XML file with only filtered data???

View 9 Replies View Related

Excel 2007 :: Non-existent File Tries To Open Upon Startup?

May 4, 2013

I have Excel 2007

Every time I start up excel whether it's opening a new spreadsheet or an existing one it tries to open one that I had deleted a while ago. I have nothing in my xlstartup files and I have thoroughly searched all files around it, before it, after it, and all in between. I went to Excel Options>Advanced>General and there is nothing in the field where it says "At startup open all files in:"

It seems to be trying to open the file from my desktop.

View 8 Replies View Related

Excel 2007 :: SharePoint / Checking File Status

Jun 11, 2014

I'm working with a file from SharePoint (FileA), "FileA" goes out to Sharepoint and opens "FileB" (if not already open) then copies information from "FileA" to "FileB". However if "FileA" is left open, or someone else has it open I am unable to open "FileA". How in VBA can I check to ensure I don't have it open locally (if so swich and continue), checkout and open in SharePoint (if not already open) or Prompt with options to force checkin, checkout to copy info?

Simple VBA copy I used:

Workbooks.Open FileName:= _
"http://sharepoint.baaa.com/sites/SCDT_DSD/Weekly_Releases/11.%20Combined%20Weekly%20Task%20List/1/Automated_Status_Update.xlsm"
Sheets("1").Select
Range("A1").PasteSpecial Paste:=xlPasteValues

View 2 Replies View Related

Excel 2007 :: Import Data From TXT File And Analyze?

Dec 23, 2011

I'm using excel 2007 and I'm trying to import data from a .txt file into excel and analyze the data. One of the columns in the .txt file contains descriptions for each row and its in multiple rows. Is there a way to import the .txt file so that it will show a description for each row in one cell?

I imported the data into excel but the issue is the description.

View 3 Replies View Related

Excel 2007 :: Copying Contents Of 1 Text File Into Another Using VBA

Jan 7, 2012

I am using Excel 2007, here's my question:

I just wrote two macros that each produce separate text files (call them 'A' and 'B'). I want to open 'B' with Excel VBA, copy all of its contents, and paste that content into 'A' right after a specific location in 'A' (where I have 10 consecutive asterisks, i.e., **********).

Most topics relating to Excel VBA and .txt files have to do with either importing / exporting into Excel (not what I want), or with associating .txt files to Excel (also not what I want).

View 7 Replies View Related

Excel 2007 :: Found Unreadable Content In File Name

Sep 10, 2012

I have a problem with the Excel 2007 file which I use on Windows 7.

The file suddenly appear message:

Excel Found Unreadable Content in 'File Name'. Do you want to recove the contents of this workbook? if trust the source of this workbook, click Yes.

if I click "YES" than this message will appear:
Excel was able to open the file by repairing or removing the unreadable content........ and so on

And all the file is missing inside the sheet.

Any way out to recover this file?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved