• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Period match

Thomas Kuriakose

Active Member
Respected Sirs,

We have a workbook with Invoice numbers (A2:A618) and the period (B2:B618) of the invoices. The same invoice can be active in two periods.

We need to match the invoice with the period and enter the duplicate invoices as per period.

Kindly find attached the file with details. The results of a few are entered in column D.

Thank you very much for your guidance and support always,

with regards,
thomas
 

Attachments

  • Period match.xlsx
    29.1 KB · Views: 4
perhaps [D2]=[@Month]&IFERROR("-"&VLOOKUP([@[Invoice No]],$A3:$C$619,3,0),"")?

EDIT:
or =IFERROR(TEXT(VLOOKUP([@[Invoice No]],$A3:$B$619;2;0),"mmm")&"-","")&TEXT([@Period],"mmm") to have the periods in a logic order
or=IFERROR(TEXT(VLOOKUP([@[Invoice No]],$A3:$B$619;2;0),"[$-EN-UK]mmm")&"-","")&TEXT([@Period],"[$-EN-UK]mmm") to always force the month names in English
or =IF(COUNTIF($A$2:$A2,[@[Invoice No]])=1,IFERROR(TEXT(VLOOKUP([@[Invoice No]],$A3:$B$619;2;0),"[$-EN-UK]mmm")&"-","")&TEXT([@Period],"[$-EN-UK]mmm"),"Duplicate") to only have the double month references for each invoice once.
 
Last edited:
Respected Sir,

Thank you very much for your guidance and support on this query.

I applied the EDIT and get the months repeated in cells. The result required is as in Column D.

Kindly guide where I am going wrong.

Thank you very much for your support,

with regards,
thomas
 

Attachments

  • Period match.xlsx
    35.2 KB · Views: 5
=IFERROR(TEXT(VLOOKUP([@[Invoice No]],$A3:$B$619;2;0),"mmm")&"-","")&TEXT([@Period],"mmm") , you had A2 referenced.

But I now see you want the same period referenced for the duplicated values. #HoldOnAMinute

EDIT: see attached if that is suitable, Thomas.
 

Attachments

  • Copy of Period match.xlsx
    38.7 KB · Views: 12
Back
Top