+ Reply to Thread
Results 1 to 2 of 2

Select a variable amount of Data with duplicate info

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Dallas
    MS-Off Ver
    Windows 8
    Posts
    1

    Select a variable amount of Data with duplicate info

    Hello Guys,

    I have a question about writing a code that will save me a lot of time at work.

    Basically we own some restaurants and our credit card processor changed the way they send us our credit card sales reports. Now they send us a report with every single transaction per day.

    We need to sort this information by store number and by card type.

    Here's what I am trying to do, I want to for example select all the Visa transactions for location 6693. I cant do a Vlookup because there are multiple transactions that have the same information I would look up (Location/Date/Card type)

    Is there a way I can do this? Basically i just want this information to sort automatically, the problem is there isnt always the same amount of transactions per day per location per card type, so I just want it to be able to select all the transactions for that day for whatever card type and location, copy it, and paste into another sheet so I can easily get daily totals.

    Right now we are having to filter each location and card type, separate them and add up the totals daily, we have over 25 locations so this is a VERY VERY time consuming procedure to do daily, I would appreciate any input or help even if its not in code, just a way I can sort all this information.

    I am attaching a screen shot below of what the report looks like.

    Column A - Store Number
    Column B - Date
    Column D - Card Type


    \1
    Untitled.jpg

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Select a variable amount of Data with duplicate info

    You should have pasted a copy of the spreadsheet.

    Ok this is simple stuff.

    The process to follow is:

    Sort all your columns by column A and then by column D

    insert a formula in an empty row to flag when the number in column A changes.

    This will be where your differrent stores are.

    So use a loop to find each break, and copy the store data to a seperate sheet.

    Save the workbook using the date as part of the user name.



    Try the macro in this spreadsheet:


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 08-29-2014 at 08:19 PM.

+ 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. Copy variable amount of data to new tab
    By melnemac32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2013, 01:05 PM
  2. [Solved]Remove duplicate based on row with least amount of data.
    By Don_A in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2013, 06:34 PM
  3. [SOLVED] VBA Randomly Select m amount from n amount of data, where m<n
    By doglover in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-23-2013, 03:44 AM
  4. Find duplicate info in two columns and copy info from duplicate rows
    By USGS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-12-2011, 07:31 PM
  5. Graphs with variable amount of data
    By kenwatch in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 04-06-2010, 07:10 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