+ Reply to Thread
Results 1 to 14 of 14

Duplicate Transaction Reference

  1. #1
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Duplicate Transaction Reference

    Hi,

    I am trying to mark as YES the duplicated reference for different journals. I tried combination of SUMIFS but for some reason I am getting duplicated results for Journal instead of Transaction Reference.

    Any advice? Thanks a lot!

    Please find attached document
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    The tricky part is not to flag duplicated for the same Journal. It is duplicated if same reference for different journals.

    Thanks once more

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Duplicate Transaction Reference

    Try this in C2 and copy down
    Please Login or Register  to view this content.
    Flags as yes for duped trans ref's.

    Pete

  4. #4
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    Thanks for your reply

    I've attached the real table I am working on and it shows an invalid duplicate.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    it is not duplicated if the journal is the same.

  6. #6
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Duplicate Transaction Reference

    Pardon my confusion, but what are you evaluating to be a duplicate, and under what circumstances would col c return a yes (or whatever you want returned). . .?
    Please be specific.

    Thanks.

  7. #7
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    I would like to make sure a Transaction reference appears only in one Journal number. Two different journals numbers cannot have the same Transaction Reference. If the transaction reference appears in multiple lines for the same Journal number it is not considered as duplicated because the journal number is the same.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Duplicate Transaction Reference

    I too am somewhat confused. So I speculated your intent to be in the attached.

    For clarity find a "helper" column in D with this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then in column E
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Those two formulas can be combined to produce the same results. I feel that splitting them makes the logic clearer.

    Are we there yet?
    Attached Files Attached Files
    Dave

  9. #9
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    Hi Dave,

    I am really sorry, I am not expressing myself correctly.

    We are not there yet and I will do my best to explain better (I am really interested in this solution). It might appear to be simple...

    I need the result "Duplicated Transaction Reference" in Column C, when:

    The transaction reference is equal better two journal numbers

    i.e.:

    HSBC-SGD-SGA24091GUOFKTHC 326400
    HSBC-SGD-SGA24091GUOFKTHC 326401

    but if you look the result on journal number 320899, with these formulas the result is "Duplicated Transaction Reference" and if you search, that Transaction in unique (the Transaction Reference IV2021/04/0119** is not duplicated). Why the result is duplicated?

    Thank you so much for your help. i really need to find a formula for this...

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Duplicate Transaction Reference

    (the Transaction Reference IV2021/04/0119** is not duplicated). Why the result is duplicated?
    The "*" and "**" are wildcards. COUNTIF(s) can use wildcards and return counts for whatever follows the "IV2021/04/0119" part in

    the source data. Since I have seldom done work compensating for the effects of literal "*" in the actual data I can only guess that

    COUNTIFS is treating these as wildcards and from there returning those as duplicates rather than recognizing "*" as literal characters.

    There is a way around this that requires leading "~" characters. I used it once many years ago (under adult board supervision LOL ). I may have to call for help again rather than make you wait.

    I don't understand your meaning in this next quote. I don't even know what questions to ask.
    The transaction reference is equal better two journal numbers

    i.e.:

    HSBC-SGD-SGA24091GUOFKTHC 326400
    HSBC-SGD-SGA24091GUOFKTHC 326401

    but if you look the result on journal number 320899, with these formulas the result is "Duplicated Transaction Reference"

  11. #11
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,601

    Re: Duplicate Transaction Reference

    D2:
    Please Login or Register  to view this content.
    e2:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Duplicate Transaction Reference

    You can just amend Dave's formula to:

    =COUNTIFS($A$2:$A2,SUBSTITUTE(A2,"*","~*"),$B$2:$B2,B2)

    to cater for the wildcards
    Rory

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Duplicate Transaction Reference

    Try this formula:=IF(SUMPRODUCT((A$2:A$842=A2)*(B$2:B$842<>B2))>0,"Duplicated Transaction Reference","Ok")

  14. #14
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    22

    Re: Duplicate Transaction Reference

    Hello josephteh,

    It work brilliantly...

    I need to explore more the function SUMPRODUCT.

    Thank you all for the great support solving this problem!

+ 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. Duplicate Worksheet but still reference it in new sheet
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-08-2016, 03:07 PM
  2. [SOLVED] How to get reference of duplicate value and set remove duplicate value for future entries
    By bala04msw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2016, 08:13 AM
  3. Duplicate value reference in the same column
    By LFX in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-25-2013, 06:13 AM
  4. Duplicate Cross Reference Help
    By jph89 in forum Excel General
    Replies: 1
    Last Post: 10-30-2012, 01:43 PM
  5. Complicated set of calculations based on transaction IDs, transaction value, etc.
    By BeeZeRCoX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2011, 11:35 AM
  6. vlookup with duplicate reference numbers
    By keego1ie in forum Excel General
    Replies: 7
    Last Post: 09-08-2009, 11:01 AM
  7. how to duplicate a transaction register for my checkbook
    By mt2006 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-07-2006, 07:15 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