+ Reply to Thread
Results 1 to 6 of 6

Check dates in range either same dates or different dates by formula

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

    Check dates in range either same dates or different dates by formula

    Hi good moring to all

    excel formula has to find the date in range whether same continuously or different dates

    i have cell range array start(a2:a6) between in range if any values differ in range result not same if range values same result same"

    find the workbook attachment
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,462

    Re: Check dates in range either same dates or different dates by formula

    =if(sumproduct(--(a2:d2=a2))=4,"same","not same")

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

    Re: Check dates in range either same dates or different dates by formula

    formula works at values but i want it works even after blank cells. it should avoid blanks cell its only consider cell values
    please find the attachment
    Attached Files Attached Files

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,462

    Re: Check dates in range either same dates or different dates by formula

    =if(sumproduct(--(a2:d2=a2))=COUNTA(A2:D2),"same","not same")

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Check dates in range either same dates or different dates by formula

    =IF(SMALL(A2:D2,1+COUNTIF(A2:D2,0))*COUNTA(A2:D2)=SUM(A2:D2),"same","not the same")
    probably just shortened to

    =IF(SMALL(A2:D2,1)*COUNTA(A2:D2)=SUM(A2:D2),"same","not the same")
    and maybe if all may be blank to get rid of errors
    =IF(ISERROR(SMALL(A2:D2,1)),"",IF(SMALL(A2:D2,1)*COUNTA(A2:D2)=SUM(A2:D2),"same","not the same"))
    Last edited by martindwilson; 07-12-2013 at 07:40 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-06-2012
    Location
    Delhi,India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Check dates in range either same dates or different dates by formula

    {=if(sumproduct(if(a2:d2<>"",1/countif(a2:d2,a2:d2)))>1,"not same","same")}

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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