+ Reply to Thread
Results 1 to 14 of 14

extraction data from excel spreadsheet

  1. #1
    Registered User
    Join Date
    01-13-2017
    Location
    Mersyside
    MS-Off Ver
    365
    Posts
    4

    Post extraction data from excel spreadsheet

    Hi I have a general understanding of excel, but now wish to filter out data from a worksheet to post to another part of the same sheet , the criteria being that I need to show from a list of orders , the number of frequency, over 5 that a certain part number has been purchased and were the quantity on those purchase's exceeded 10 and the sum of the total quantity ordered , because of the large number of part numbers available typing that into a formulae is not practical because its time consuming, is there an efficient way of doing this , any help would be gratefully appreciated

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: extraction data from excel spreadsheet

    Hi and welcome to the forum.

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-13-2017
    Location
    Mersyside
    MS-Off Ver
    365
    Posts
    4

    Re: extraction data from excel spreadsheet

    HI Richard thanks very much for the quick response to my post , I have uploaded the sample spreadsheet so you can get an idea of what I am trying to achieve, my Knowledge of excel is limited for the moment but I have tried various ideas , but have been unable to get the result by an efficient formulae.
    Thanks once again for your efforts.
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: extraction data from excel spreadsheet

    Here is a vba solution

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mike7952; 01-15-2017 at 06:56 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: extraction data from excel spreadsheet

    Do you have the list of part numbers, or does that need to be extracted too?

    Also, would it be OK to just list all parts, with their counts and amounts, and either just use that list, or extract from that?
    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
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: extraction data from excel spreadsheet

    Assuming you have that list of parts, then this will pull out the sum of all orders placed more than 5 times, and that have more than 10 ordered (it differs from your sample total)
    =IF(COUNTIFS($C$3:$C$76,B81)>=5,SUMIFS($F$3:$F$76,$C$3:$C$76,B81,$D$3:$D$76,">=10"),"")
    and for the count...
    =IF(COUNTIFS($C$3:$C$76,B81)>=5,COUNTIFS($C$3:$C$76,B81,$D$3:$D$76,">=10"),"")

  7. #7
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: extraction data from excel spreadsheet

    @FDibbins
    My understanding of what the OP is wanting is if the order count > 5 with order qty > 10 then sum the Total amount ordered. And not just Where the sum of order count > 5 with order qty > 10. Idk I could be wrong.

    If possible also if the total order value of the same part numbers could be incorportated into the same formulae that would be great but this is not a priority at this stage.
    Please Login or Register  to view this content.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: extraction data from excel spreadsheet

    I looked at it that way too, and you could be right. Then the formula becomes...
    =IF(COUNTIFS($C$3:$C$76,B81)>=5,SUMIFS($F$3:$F$76,$C$3:$C$76,B81),"")

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: extraction data from excel spreadsheet

    I know when I wrote my code I came up with the same values your first formulas produced.

  10. #10
    Registered User
    Join Date
    01-13-2017
    Location
    Mersyside
    MS-Off Ver
    365
    Posts
    4

    Re: extraction data from excel spreadsheet

    Hi Guys thanks for all you input, I have perhaps not explained part of the issue correctly as most of the suggestions rely on reference to the part numbers at the bottom of the sample worksheet which I search through and entered manually, I need to extract these also using the same criteria i.e appearing on the list=>5 and order Qty =>10 , them all you suggestions do work thanks

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: extraction data from excel spreadsheet

    If you can use a vba solution then my solution in post 4 doesn't rely on your part numbers at the bottom.

  12. #12
    Registered User
    Join Date
    01-13-2017
    Location
    Mersyside
    MS-Off Ver
    365
    Posts
    4

    Re: extraction data from excel spreadsheet

    Hi Mike
    Although I am not familiar with VBA and your solution doesn't rely on part numbers posted manually , will it still print the part number that fits the criteria then print it in result like at the bottom of my sample sheet so I can recognise which part number fits the criteria, if so I am willing to learn VBA many thanks again

  13. #13
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: extraction data from excel spreadsheet

    Yes it will do what you want. If it doesn't we can modify the code

  14. #14
    Registered User
    Join Date
    01-14-2017
    Location
    Pakistan
    MS-Off Ver
    Ms Office 2016
    Posts
    35

    Re: extraction data from excel spreadsheet

    Sir please help me, ,,,
    And solve my problem,
    Approve my thread
    Thanks,

+ 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. New Here.. Need help with Data Extraction in Excel
    By Exhorter in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-08-2014, 11:59 AM
  2. Data Extraction Multiple Workbooks And Sheets To Master Spreadsheet
    By shido in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-04-2013, 09:11 PM
  3. data extraction from website to excel spreadsheet
    By wyldjokre69 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-28-2012, 07:01 AM
  4. Data extraction from web to excel
    By cmb80 in forum Excel General
    Replies: 0
    Last Post: 10-21-2010, 03:27 PM
  5. Extraction of data in Excel?
    By JoKeR.Warez in forum Excel General
    Replies: 3
    Last Post: 03-11-2009, 06:52 PM
  6. Data Extraction from Excel
    By backoffice1 in forum Excel General
    Replies: 3
    Last Post: 02-05-2008, 11:30 AM
  7. Multi-Spreadsheet text and data extraction
    By taiwansmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2006, 01:20 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