+ Reply to Thread
Results 1 to 7 of 7

Collecting data from auto- generated excel file

  1. #1
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    Excel 2003 /2007/2010
    Posts
    169

    Collecting data from auto- generated excel file

    An excel file is auto-generated by a biochemistry machine that perform blood tests.
    The file has a sheet named "test results" which contains detailed information about the tests
    patient ID, Assay,Result ...etc.
    I want that all tests performed be counted and grouped into one a table in a different sheet
    i.e; the total number of tests performed under the name "glucose" for example.

    Thank you
    Attached Files Attached Files

  2. #2
    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,933

    Re: Collecting data from auto- generated excel file

    If you just want to count all the categories, create a small table like this...
    H
    I
    1
    Assay
    1
    2
    BUN
    35
    3
    Cholesterol
    62
    4
    Creatinine
    67
    5
    Glucose
    193
    6
    HDL
    25
    7
    LDL
    19
    8
    Raw Abs
    476
    9
    Triglycerides
    34
    10
    Uric Acid
    41


    I1=COUNTIF($B$2:$B$1478,H1) copied down

    If you want this on another sheet, the formula would be...
    =COUNTIF('Test%20Result(1)(1)'!$B$2:$B$1478,A1)
    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

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Collecting data from auto- generated excel file

    =countif(b:b,"glucose")
    Or use a pivot table
    Try this one
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    Excel 2003 /2007/2010
    Posts
    169

    Re: Collecting data from auto- generated excel file

    Quote Originally Posted by FDibbins View Post
    If you just want to count all the categories, create a small table like this...
    H
    I
    1
    Assay
    1
    2
    BUN
    35
    3
    Cholesterol
    62
    4
    Creatinine
    67
    5
    Glucose
    193
    6
    HDL
    25
    7
    LDL
    19
    8
    Raw Abs
    476
    9
    Triglycerides
    34
    10
    Uric Acid
    41


    I1=COUNTIF($B$2:$B$1478,H1) copied down

    If you want this on another sheet, the formula would be...
    =COUNTIF('Test%20Result(1)(1)'!$B$2:$B$1478,A1)
    But why to use 1476
    what to do if the file is more extended and contains much further rows?

  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,933

    Re: Collecting data from auto- generated excel file

    Then just adjust the range as needed That was based on the sample you provided

  6. #6
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    Excel 2003 /2007/2010
    Posts
    169

    Re: Collecting data from auto- generated excel file

    thanks to you and to popipipo
    both functions work well

  7. #7
    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,933

    Re: Collecting data from auto- generated excel file

    Happy to help and thanks for the feedback

+ 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. Auto generated Excel file
    By charleschia1986 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 09:21 PM
  2. Auto Generated Email From Excel 2011
    By DiverHodge in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-22-2012, 12:12 PM
  3. [SOLVED] how to make auto generated number once user insert data in excel 2007
    By nurul0304 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2012, 08:40 PM
  4. [SOLVED] E-Mails auto generated in Excel just to not include blank rows
    By srands in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2012, 01:37 PM
  5. Auto-generated emails from Excel
    By whlewis in forum Excel General
    Replies: 2
    Last Post: 09-04-2010, 01: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