+ Reply to Thread
Results 1 to 9 of 9

organizing data from one sheet to others

  1. #1
    Registered User
    Join Date
    06-08-2009
    Location
    Sevilla, Spain
    MS-Off Ver
    Excel 2003
    Posts
    9

    organizing data from one sheet to others

    Hi everyone,

    I have a set of data mixed up. I want to filter that data, from the main sheet to new sheets. The criteria is to filter by car brands (RENAULT, VW, MERCEDES...) so there will be a sheet for each brand. At the same time, as each file has a date, I have to copy the file from the main sheet, in the month related.

    I understand that this explanation is not totally clear, but I attached a excel document where you can see what I want to do. I did the sheet called 'RENAULT' as an example by hand.

    Could you help me with this problem?


    Thank you very much in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,282

    Re: organizing data from one sheet to others

    Your example has only one car per make per month but reality is there will be more than 1. (?)

  3. #3
    Registered User
    Join Date
    06-08-2009
    Location
    Sevilla, Spain
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: organizing data from one sheet to others

    Yes, it could be... I try to do it as a first step one car per month or even no car in some months. But the next step could be that there are two cars in the same month. In this case, I should sum up the numbers and calculate the average.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,282

    Re: organizing data from one sheet to others

    Tow points:

    1. It would be sensible to have headings on your tables.

    2. What data is be averaged?

    Re-post you file with an example of 2 or more cars in a month showing any calculations (and results of) required.

  5. #5
    Registered User
    Join Date
    06-08-2009
    Location
    Sevilla, Spain
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: organizing data from one sheet to others

    1. I put the headins as you suggested. I am sorry

    2. The data that should be avaraged are those with numbers, e.i., colums 'cars' and 'liters'. In the case of two cars in the same month, has it happens with RENAULT in July, the colums 'Color', 'Shift' and 'Date' should be empty or with the question mark in the celd. The other two colums 'Cars' and 'Liters' are the average of the two data from July.

  6. #6
    Registered User
    Join Date
    06-08-2009
    Location
    Sevilla, Spain
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: organizing data from one sheet to others

    the document
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,282

    Re: organizing data from one sheet to others

    Just to be clear:

    If there is more than one car in month, there is only on entry per month in the Make tab (irrespective of colour etc) with an average figure for "Cars" and "Litres"

  8. #8
    Registered User
    Join Date
    06-08-2009
    Location
    Sevilla, Spain
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: organizing data from one sheet to others

    exactly, in the 'main sheet of data' could be more than a entry in the same month per car. But once you go to the 'RENAULT' sheet (for instance), then you just have an entry per month. The data to be averaged are 'Cars' and 'Liters'. The other fields are empty or with the 'question mark' because in this case, I don't know what I will have to put at the end.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,282

    Re: organizing data from one sheet to others

    See attached:

    In the Main Sheet I moved the brand to column A. I suggest you don't need brand in the "Makes" sheets.

    Look at the "Renault (2)" sheet:

    In Column A I set the dates to date format (01/01/2015) and formatted as "mmmm". I have assumed data is always for ONE year (2015) in this case.

    in B2

    =IF(COUNTIFS(TODOS!$D$2:$D$28,">="&$A2,TODOS!$D$2:$D$28,"<="&EOMONTH($A2,0),TODOS!$A$2:$A$28,"RENAULT")=1,INDEX(TODOS!$B$2:$B$28,MATCH(1,(TODOS!$A$2:$A$28="RENAULT")*(MONTH(TODOS!$D$2:$D$28)=MONTH($A2)),0))," ")

    in C2

    =IF(COUNTIFS(TODOS!$D$2:$D$28,">="&$A2,TODOS!$D$2:$D$28,"<="&EOMONTH($A2,0),TODOS!$A$2:$A$28,"RENAULT")=1,INDEX(TODOS!$C$2:$C$28,MATCH(1,(TODOS!$A$2:$A$28="RENAULT")*(MONTH(TODOS!$D$2:$D$28)=MONTH($A2)),0))," ")

    in D2

    =IF(COUNTIFS(TODOS!$D$2:$D$28,">="&$A2,TODOS!$D$2:$D$28,"<="&EOMONTH($A2,0),TODOS!$A$2:$A$28,"RENAULT")=1,INDEX(TODOS!$D$2:$D$28,MATCH(1,(TODOS!$A$2:$A$28="RENAULT")*(MONTH(TODOS!$D$2:$D$28)=MONTH($A2)),0))," ")

    Enter all of the above with Ctrl+Shift+Enter then copy down

    in F2

    =IFERROR(AVERAGEIFS(TODOS!E$2:E$28,TODOS!$D$2:$D$28,">="&$A2,TODOS!$D$2:$D$28,"<="&EOMONTH($A2,0),TODOS!$A$2:$A$28,"RENAULT"),"")

    in G2

    =IFERROR(AVERAGEIFS(TODOS!F$2:F$28,TODOS!$D$2:$D$28,">="&$A5,TODOS!$D$2:$D$28,"<="&EOMONTH($A5,0),TODOS!$A$2:$A$28,"RENAULT"),"")

    You can copy sheet and change "RENAULT" to "VW" etc
    Attached Files Attached Files

+ 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. [SOLVED] Arranging/organizing data in a sheet
    By mexaria in forum Excel General
    Replies: 6
    Last Post: 08-05-2014, 02:26 PM
  2. Organizing pictures in a sheet
    By katto01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2012, 07:14 PM
  3. Taking non uniform data from one sheet and copying and organizing it into another sheet
    By worldrenowned in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2012, 03:16 AM
  4. Im looking for help moving and organizing selected data to another sheet inv workbook
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2010, 05:03 AM
  5. Organizing data by time on a different sheet
    By keenercoug in forum Excel General
    Replies: 2
    Last Post: 08-10-2010, 11:25 PM
  6. Replies: 5
    Last Post: 03-30-2009, 08:08 AM
  7. organizing sheet
    By steve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2005, 12:05 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