+ Reply to Thread
Results 1 to 10 of 10

Extract Data from one to another using conditions

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Extract Data from one to another using conditions

    Dear all,

    I would like to be able to extract certain data from one sheet to another using the macro condition, as explained below, please.

    Logic:
    find duplicate names (column A), If same name occurs more than 3 times or is equal to 3 (>=3), and it has the same date, then extract the name to sheet2, and calculate the AVG and STDDEV from all the prices that fall under the same name within the same date.


    Please see the example in the worksheet, for further detail.
    Sheet1, shows input data and sheet2 shows the desired output.
    price_sample1.xls


    Any help would be very much appreciated.
    Thanks.
    Last edited by missy22; 06-25-2014 at 05:43 AM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Extract Data from one to another using conditions

    Will Formula will do?

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: Extract Data from one to another using conditions

    Thank you for your reply. I was looking for macro solution, because then it can work with more than 50/90,000 of dataset, but I can use formula, if that is quicker solution.

    Many thanks.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Extract Data from one to another using conditions

    Pl see attached file.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: Extract Data from one to another using conditions

    Thank you so much for your reply. I am sorry to inform, that the formula, should extract only duplicate names which have occurred 3 time or more.

    In the post #4, the only names that should be displayed in sheet2, are CORDR 4 and ESAIL, with their calculations, otherwise the other names are incorrect.

    is it possible to change the formula, if its not too much trouble.

    Thank you for all your help.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Extract Data from one to another using conditions

    Pl see attached file with changed formula.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: Extract Data from one to another using conditions

    Thank you so much for your help and update. The solution is great, but I am trying to update the formula(name column -- sheet2) to read 50,000 records but every time I edit this, the cell goes blank.

    Please Login or Register  to view this content.
    I have also tried, editing the formula out of the cell and then pasting in the new chnages, it still gives me a blank cell.

    Please advice, if possible.
    Many thanks.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Extract Data from one to another using conditions

    It is Array formula. After editing the for mula , Don't press Enter key.
    Press Ctrl+Shift+Enter keys together.

  9. #9
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: Extract Data from one to another using conditions

    Many thanks for your help again. I followed your directions, and sadly the macro is outputting the cells as 0. I have attached my dataset in sheet1 and sheet2, has the formulas, which are currently not reading any data from sheet1.

    extraction_formula.xls

    Thanks you for your time and help.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Extract Data from one to another using conditions

    PL see attached file.
    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. Extract the data to another sheet based on variable conditions
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 06:10 PM
  2. [SOLVED] help with VBA codes to extract selected data from worksheet on specific conditions
    By HarryC in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-10-2013, 06:29 AM
  3. Extract Data based on conditions on multiple columns
    By checkoncomp in forum Excel General
    Replies: 6
    Last Post: 07-03-2013, 01:54 PM
  4. Replies: 4
    Last Post: 03-05-2013, 01:02 PM
  5. Replies: 2
    Last Post: 06-01-2012, 09:24 AM

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