+ Reply to Thread
Results 1 to 5 of 5

Merge .CSV files

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Merge .CSV files

    Hello all,

    I am trying to help my wife. She runs a large retail outlet, and they are currently redesigning their stockroom. To simplify things, I suggested that she only replace, onto the sale floor, what was sold the previous day. In order to determine the total number of items she should routinely stock on the sales floor, it is necessary to determine, per day of the week, what her average sales were. Now, she has a large number of different items and, obviously, not all of them generate a daily sale. She has an inventory program that supports .csv exports. I would like to perform manual searches (generating reports) for the last 10 Mondays, Tuesdays, etc. and have those exported individually as .csv files. Then, I would like to compile each day of the week to generate a Monday (then Tuesday and Wednesday etc) report documenting each item that was sold and tabulating the total number of a particular item sold. So if on the first Monday, she sold 50 black jeans and 30 blue jeans, then on the second she sold 15 and 25, I want the report to show 65 black jeans and 55 blue jeans. When I get my totals, I can simply divide by 10 to determine the daily average sold for that day for each item.

    I'm guessing that I could get vba to do this. I have seen where multiple .csv files can be combined into a single file.....but then I want that single file to calculate totals for each item, likely on a second worksheet. I'm hoping that I make some sense here.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merge .CSV files

    Hi Tap,

    Post a sample couple of days worth of workbooks - go to advanced and click on the paper clip.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Merge .CSV files

    I would love to but I haven't created the files yet simply because it will be quite time-consuming to do so and, since I don't know if or how it can be done, I didn't want to waste my time (or yours for that matter). Suffice to say, column A:D (for example) is populated by the name and style of the item. Let's say column E is the quantity sold. So it could read: Shirt, Men's, casual, black, 6. The next item would read: Shirt, Men's, formal, black, 12. This is clearly an oversimplification of the actual files, but I can adjust it if I have the bare bones idea. There would literally be hundreds of rows of information. I would like, on Sheet 2, to look for every instance of Shirt, Men's, casual, black and add the values in column E.

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Merge .CSV files

    After a bit of research, I found the Consolidate feature, and I think I can get that to do what I want. Thank you.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Merge .CSV files

    Good Luck!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 : merge two files?
    By nanopants in forum Excel General
    Replies: 3
    Last Post: 04-19-2012, 08:34 AM
  2. How to merge files?
    By Larryq22 in forum Excel General
    Replies: 3
    Last Post: 02-07-2009, 01:07 PM
  3. Merge 2 XLS files into 1
    By vbjohn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2007, 02:59 PM
  4. Merge txt files
    By Ronny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2006, 11:10 AM
  5. MERGE 2 FILES
    By will A in forum Excel General
    Replies: 10
    Last Post: 11-18-2005, 03:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1