+ Reply to Thread
Results 1 to 12 of 12

Regroup data from several Worksheets into one without keeping duplicates.

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    Dudelange, Luxembourg
    MS-Off Ver
    Excel for mac 2011
    Posts
    3

    Regroup data from several Worksheets into one without keeping duplicates.

    Hello,
    I've put together a Excel file containing Magic cards I've collected wherein I organized my collection. I'm having several problems with the spreadsheets below. Now I'd want the data collected and regrouped into one single spreadsheet to import it in a magic collection program and if possible all duplicate cards removed.

    Details:
    First I need to have the data consolidated into one single new Spreadsheet. Only the columns "Card Name", "Card Set", "# Owned" and "# Foil Owned" should be used in the new Spreadsheet as well as an additional column named "Date Merge" in which is marked when the data was consolidated. Now this should be as dynamic as possible since I'm going to be adding data every 3 months.

    After having all of the data regrouped I'd want to delete the duplicates in column Card Name and just keeping one original cell but suming the columns "# Owned" and "# Foil Owned" into two respective cells.

    Here's the thing explained via screenshot:
    Screen Shot 2013-04-22 at 14.53.39.jpg
    And here's the xls:
    magic tcg archive.xlsx
    Last edited by freezelolles; 04-22-2013 at 04:11 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    It can easily be done by a code, but there are two major issues. First, the code will not support the functions in Mac, so the code will not work, unless of course, you wanted it to run in Window. Second, Are you comfortable with a macro code?

  3. #3
    Registered User
    Join Date
    04-22-2013
    Location
    Dudelange, Luxembourg
    MS-Off Ver
    Excel for mac 2011
    Posts
    3

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Hi,

    Is there no possibility to run a macro in excel on mac? I don't know if I am comfortable with a macro I've never used one, i barely know what it is,I only used functions and nothing too fancy. Would there be any constraints in using a macro?

    Thank you in advance.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Well! It depends.
    A code is most likely suited to your requirements. I do not see any issue using it. You can use it, someone need to show you first time, but the biggest stumbling block is your computer. You are probably aware that there are many excel functions which are not available in Mac. A while back, I had spent several hours trying to work out why a code I wrote failed to work. It was perfectly working on my PC, but the Mac user could not use. I found that some of the functions on the code were not accessible in Mac. For e.g. Dictionary objects. I would not promise anything, but will try to see if I can getting around this problem. I will let you know.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Freez,
    I have got a solution for you, but may not be the ideal one. I am hoping that there should not be an issue with Mac, not as far as I know any way.
    I have got a code which consolidate all your sheets in to one "Master" sheet, so that you can use Pivot table to achieve what ever you wish. The code is very flexible in that, when ever you run it, it clears all existing data and repopulate with fresh new data.
    How do you run the code?
    I do not know in Mac, but I do not think it is different to Window. The code resides in project VBE under a module. You do not have to worry about this as I have created a Button which it is linked to the code. All you have to do is just press it to run. So, when ever you changed your data and want to re-run the code, press the pink button which is located in Master sheet column N.
    Try the attached and see how you progress.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    I believe the OP is using Excel 2011 for Mac, which supports VBA code (Everything except version 2008 on Mac supports VBA code actually)
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Lem,
    Thanks!
    Let's hope so.
    I have never excel on Mac myself. I do not think it supports a scripting called "Dictionary". This question often pops up on discussion forums.

  8. #8
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Yes you are right, Dictionary class will have to be replaced with something like this
    http://www.ozgrid.com/forum/showthread.php?t=159428
    VBA on Mac does not work entirely fine like it does on Windows, but at least there is VBA for Mac (for god sake, Microsoft, why you do this ...)

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Lem,
    I did not notice you are actually on the Mac. It is good though as you will a person who can help us with this thread.

  10. #10
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    I have opened your attached file and tested the macro. So far it works perfectly fine for me, so it lies on the OP whether everything has been solved or not.

  11. #11
    Registered User
    Join Date
    04-22-2013
    Location
    Dudelange, Luxembourg
    MS-Off Ver
    Excel for mac 2011
    Posts
    3

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    Hi,

    just tested the Macro and it is working. Going to try to understand at least a little bit what's happening in the macro's code, anyway thank you very much for your help. The macro solved my problem.

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Regroup data from several Worksheets into one without keeping duplicates.

    freeze,
    Glad it has worked for you!
    You can add as many data and sheets as you like, all you have to do is press the button.
    I would like also to thank Lem for his insight in the world of Macs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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