+ Reply to Thread
Results 1 to 3 of 3

count the values from smallest date with criteria!!! help excel formula

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    count the values from smallest date with criteria!!! help excel formula

    Dear expert'

    i have tried it but not able to complete please i need ur help on this

    I have multiple repeated So's in B:B , in column A:A have date column for when So's was created..
    Then column C:C have two criteria only (LABOUR&PART AND LABOUR ONLY)

    E.G IF IN COLUMN A:A HAVE DIFFERENT DATES FOR SO NO A123 REPEATS 6 TIMES IN B:B COLUMN BUT 3 LABOUR AND PART ANOTHER 3 LABOUR ONLY I WANT FIND OUT AT WHAT NO OF TIMES ITS REPEATED SO'S

    ,FOR THE FIRST TIME DATE&SO'S EITHER LABOURONLY OR PARTS I WANT RESULT "0 " FOR THE SMALLEST DATE OF CRM

    CRM DATE SO'S PARTS TYPE RESULT EXPECTED

    1-AUG-2013 A123 LABOUR ONLY RESULT SHOULD 0
    3-AUG-2013 A123 LABOUR ONLY RESULT SHOULD 2
    2-AUG-22013 A123 LABOUR ONLY RESULT SHOULD 1

    1-AUG-2013 A123 LABOUR AND PARTS RESULT SHOULD 0
    3-AUG-2013 A123 LABOUR AND PARTS RESULT SHOULD 2
    2-AUG-22013 A123 LABOUR AND PARTS RESULT SHOULD 1
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: count the values from smallest date with criteria!!! help excel formula

    1.copy the data IN SHEET 1 as it is in sheet 3 for comparing expected resllt of col. E and result of macro in col E
    2.in sheet 1 delete cells in column E. DO NOT DELETE COLUMN e
    this is the source data
    3.in sheet 1 a helper column in F that is F2 is 1,F3 is 2 etc till F22
    4.copy sheet 1 as desgined to sheet 2 repeat sheet2 so that source data is preserved

    the file "breadwiner 130908" is attached as per 1,2,3,4 above

    the macro "testone" is in the module
    if you run the macro the result will be sheet (expected result column E)

    there appears to be some error in your manual ranking of the middle portion that is rows 8 to 14. check once again whether the macro result is correct.

    the macro is also appended below for reference

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by venkat1926; 09-08-2013 at 09:34 AM.
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: count the values from smallest date with criteria!!! help excel formula

    DUDE thanks alot you solved my problem ever!!!keep help my post ever i follow u

+ 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] Would like to count cell values based on date criteria in a different range
    By sdavison in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2013, 12:45 AM
  2. [SOLVED] Formula how to count the date with multiple criteria.
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2012, 10:40 AM
  3. Count Unique values with 2 criteria - Excel 2010
    By mmaya4 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-22-2012, 07:28 AM
  4. Formula to count date difference based on a criteria
    By athey87 in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 05:11 PM
  5. how to count unique values in excel based on criteria
    By Jorge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2005, 10:06 AM

Tags for this Thread

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