+ Reply to Thread
Results 1 to 2 of 2

Remove subject data based on criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    3

    Remove subject data based on criteria

    Hi,

    I am new to VBA and Macros and I need some help editing a datafile. I have a spreadsheet (Sheet2) that looks like this (Start Date is entered in J2 in Sheet 1 and End Date in J3 in Sheet1):

    Date & Time Patient ID Result Level
    13/02/2014 14:18 1 8.5 >=4 AND <=15
    13/02/2014 14:10 2 7.8 >=4 AND <=15
    13/02/2014 02:23 11 22.5 >20
    13/02/2014 06:19 11 16 >15 AND <=20
    13/02/2014 10:08 11 10.2 >=4 AND <=15
    13/02/2014 14:11 11 13.4 >=4 AND <=15
    13/02/2014 17:54 11 12.9 >=4 AND <=15
    13/02/2014 22:24 11 16.6 >15 AND <=20
    14/02/2014 06:03 11 12.2 >=4 AND <=15
    14/02/2014 09:57 11 8.8 >=4 AND <=15
    14/02/2014 22:04 19 8.7 >=4 AND <=15
    13/02/2014 16:31 52 4.8 >=4 AND <=15
    14/02/2014 11:56 52 7.9 >=4 AND <=15
    15/02/2014 12:42 52 5.6 >=4 AND <=15
    14/02/2014 12:23 33 9 >=4 AND <=15


    I need to find the maximum and minimum value for each subject. If the min>4 and max<10 and the subject does not have a value on either the last date (J3 in Sheet 1) or the date before that (J2 in Sheet 1 - 1), I need all of their data removed from the spreadsheet. Any help would be greatly appreciated.

    Thanks,
    J.

  2. #2
    Registered User
    Join Date
    02-17-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Remove subject data based on criteria

    Sorry: date before that (J2 in Sheet 1 - 1) should be date before that (J3 in Sheet 1 - 1)

+ 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. Remove row based on text Criteria
    By MZing81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2012, 01:46 PM
  2. [SOLVED] Search and Flag the Emails in Outlook based on the Data in Excel (Subject column)
    By anchuri_chaitanya in forum Outlook Programming / VBA / Macros
    Replies: 9
    Last Post: 03-17-2012, 12:35 AM
  3. Remove duplicates based on criteria
    By keswickjeff in forum Excel General
    Replies: 2
    Last Post: 07-14-2011, 12:15 PM
  4. Remove duplicate rows based on criteria
    By vicstone in forum Excel General
    Replies: 5
    Last Post: 06-15-2010, 03:19 PM
  5. Remove data based on criteria from multiple columns and rows
    By jvegastn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2009, 11:42 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