+ Reply to Thread
Results 1 to 19 of 19

Flagging matching/unmatching Customer date of births

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58

    Flagging matching/unmatching Customer date of births

    Hi all,
    I was wondering can anyone help with my problem?.

    I want to create a field "DOB Check" to flag where there are different Date of Births, for a Customer (all Customers have corresponding Duplicate rows)

    As you can see from my data, there are different Dates of Births, for some Customers:

    If all of the Date of Births are matching for a Customer - I want to flag these as a "1", on all rows, for that Customer
    If any of the Date of Births are not matching for a Customer - I want to flag these as a "0" on all rows, for that Customer

    Thanks guys.
    Attached Files Attached Files
    Last edited by MarkJohn51; 06-09-2020 at 06:40 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,856

    Re: Flagging matching/unmatching Customer date of births

    You can use this formula in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*1

    then copy it down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58

    Re: Flagging matching/unmatching Customer date of births

    Quote Originally Posted by Pete_UK View Post
    You can use this formula in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*1

    then copy it down as required.

    Hope this helps.

    Pete
    Thanks Pete. Works fine with Duplicate Customer Number rows, though if I have just one row for a Customer with just one Date of Birth (see updated sheet with a unique Customer)...well I want to flag these unique Customer rows as a Null or a 0. What do I need to change?
    Attached Files Attached Files
    Last edited by MarkJohn51; 06-07-2020 at 06:21 PM. Reason: updated attachment now included

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Flagging matching/unmatching Customer date of births

    Try :
    =IF(COUNTIF(A:A,A2)=1,"",YOUR CURRENT FORMULA)
    Quang PT

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,856

    Re: Flagging matching/unmatching Customer date of births

    You could use this in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*(COUNTIF(A:A,A2)<>1)

    then copy down.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58

    Re: Flagging matching/unmatching Customer date of births

    Quote Originally Posted by Pete_UK View Post
    You could use this in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*(COUNTIF(A:A,A2)<>1)

    then copy down.

    Hope this helps.

    Pete
    That has worked. Thanks.

    I now need to flag where a Customer Number, is not matching a Customer Name "Cust Num Error"
    See attachment example.

    On a Customer Name level:
    1 is where the Customer duplicate Names will have matching duplicate Cust Numbers
    0 is where the Customer duplicate Names do not have matching duplicate Cust Numbers
    Anything other scenario, should be Null

    I tried using formula above, but it is just giving me all 1's
    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*1

    Thanks in advance
    Attached Files Attached Files
    Last edited by MarkJohn51; 06-09-2020 at 07:16 AM.

  7. #7
    Registered User
    Join Date
    05-01-2020
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    58
    Quote Originally Posted by Pete_UK View Post
    You can use this formula in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*1

    then copy it down as required.

    Hope this helps.

    Pete
    What do I need to change in the formula, so that it excludes Excel looking at dates with the following values (not date formats):

    9999-12-31 and
    0001-01-01 00:00:00.0

    I dont want to filter out or delete these.

    Need to exclude just those 2 dates values...as most of my data has "normal" dates such as 2000-12-10 and 1973-11-05
    Last edited by MarkJohn51; 06-15-2020 at 12:51 PM.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,775

    Re: Flagging matching/unmatching Customer date of births

    As those are the only two values that need to be excluded please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    07-13-2019
    Location
    Mansehra, Pakistan
    MS-Off Ver
    2010
    Posts
    46

    Re: Flagging matching/unmatching Customer date of births

    Quote Originally Posted by Pete_UK View Post
    You can use this formula in C2:

    =(COUNTIFS(A:A,A2,B:B,B2)=COUNTIF(A:A,A2))*1

    then copy it down as required.

    Hope this helps.

    Pete
    Hi!
    Can't we use this formula, or why can't we use this formula?
    =(COUNTIF(B:B,B2)=COUNTIF(A:A,A2))*1
    Last edited by Asad Mir; 06-16-2020 at 06:06 AM.

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,856

    Re: Flagging matching/unmatching Customer date of births

    Don't try to hijack someone else's thread - start a new thread of your own.

    Pete

  11. #11
    Registered User
    Join Date
    07-13-2019
    Location
    Mansehra, Pakistan
    MS-Off Ver
    2010
    Posts
    46

    Re: Flagging matching/unmatching Customer date of births

    Just for my information!

    1. Is it against the rules to ask a question in someone else's thread relating to the same topic under discussion?
    I don't think so...

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Flagging matching/unmatching Customer date of births

    Administrative Note:

    Yes, it is against the rules.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  13. #13
    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: Flagging matching/unmatching Customer date of births

    Quote Originally Posted by Asad Mir View Post
    Just for my information!

    1. Is it against the rules to ask a question in someone else's thread relating to the same topic under discussion?
    I don't think so...
    Since you've reported Pete's response let me try to help.
    The simple answer to your question is Yes. Our rule 4 says asking for help in an existing thread is not permitted.

    I'll put your uncertainty down to a matter of the rule being 'lost in translation'.
    Your post was a question and reasonably enough was therefore treated as a request about a similar question you had in connection with your workbook, thereby in breach of the rule.

    If you were merely intending to offer another suggestion then you should have simply said something like,
    "Another option is to use ...blah blah", or "Why not try..blah blah"
    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.

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,856

    Re: Flagging matching/unmatching Customer date of births

    I didn't realize that I had been "reported". Shame on me for trying to point out the rules !!

    Pete

  15. #15
    Registered User
    Join Date
    07-13-2019
    Location
    Mansehra, Pakistan
    MS-Off Ver
    2010
    Posts
    46

    Re: Flagging matching/unmatching Customer date of births

    Rule No. 4. Do not post a new help request in an existing thread.

    In my understanding, i didn't consider my question as a "New Help Request" as it was about the same topic, i tried that formula and just wanted to sought clarification about a slight variation in the formula. And, because I I am way too junior in Excel than all of you, so i could not say "Another Option is to use...", that was the reason i asked it in form of a question.

    Anyway, Since senior forum members consider it as a breach of rule, i will abide by it next time.

    Thanks alot!

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Flagging matching/unmatching Customer date of births

    Please read post #12. If we allowed one follow-on question by somebody different to the OP, we’d have to allow all, and it would very soon become chaotic and impossible to follow.

    If this happens again, start your own thread and in it, post a link back to the original thread so that helpers can cross-reference it.

    Also, in future, if you have an issue with anything anyone posts, please bring it to a moderator’s attention instead of challenging it yourself, which can be seen as argumentative and rarely ends well.

    Thank you for your understanding - please PM me if you have any questions about what I have said.

  17. #17
    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,968

    Re: Flagging matching/unmatching Customer date of births

    Asad Mir , just to add my thoughts to this.

    The way you phrased your comment...
    Hi!
    Can't we use this formula, or why can't we use this formula?
    =(COUNTIF(B:B,B2)=COUNTIF(A:A,A2))*1
    To most here, that would sound like you were bouncing your question off the details provided by another member's question and data. I personally love to see different options/suggestions being made to the same question, it just shows how versatile excel really is.

    Perhaps if you has said...try =(COUNTIF(B:B,B2)=COUNTIF(A:A,A2))*1 and then left it at that, it would have been seen as another suggestion for the OP to try.

    What often happens here is that someone will make a suggestion like that, that may not really work, and other members - or the OP - will test it and report back that "this" or "that" didnt quite work.

    By phrasing your suggestion (and trust me, ALL are welcome and free to make suggestions towards resolving the question) as a question, you rang a little bell for some that said that you were asking your own question here.

    Hope that makes sense now?

    We look forward to seeing you grow in excel and providing more suggestions to questions here
    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

  18. #18
    Registered User
    Join Date
    07-13-2019
    Location
    Mansehra, Pakistan
    MS-Off Ver
    2010
    Posts
    46

    Re: Flagging matching/unmatching Customer date of births

    Sure....

    My apologies to all of the forum members here for my misunderstanding or misinterpreting. Specially, Pete.

    I would wish to be a valuable contributor here.

    Thanks all

  19. #19
    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,968

    Re: Flagging matching/unmatching Customer date of births

    Quote Originally Posted by Asad Mir View Post
    Sure....

    My apologies to all of the forum members here for my misunderstanding or misinterpreting. Specially, Pete.

    I would wish to be a valuable contributor here.

    Thanks all
    Thank you so much for your understanding here, much appreciated

+ 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. Replies: 3
    Last Post: 07-16-2011, 11:33 AM
  2. Merging two worksheets and flagging matching names
    By bmas56 in forum Excel General
    Replies: 3
    Last Post: 06-14-2011, 05:03 PM
  3. How do I convert a list of date of births into age in Excel?
    By Frieda in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. How do I convert a list of date of births into age in Excel?
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] How do I convert a list of date of births into age in Excel?
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] How do I convert a list of date of births into age in Excel?
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] How do I convert a list of date of births into age in Excel?
    By Frieda in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. [SOLVED] How do I convert a list of date of births into age in Excel?
    By Frieda in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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