SpeedThink
MIS
I have the following:
Invc----Line No---Cd Type---Rej1 Cd--Mod1 Cd
66095---18---------Pymt-------------------------------
66095---12---------Pymt--------ELI----------------------
66095----1---------CH----------------------------26----
66149---18---------Pymt--------IDER---------------------
66149---12---------PYMT--------ADOO---------------------
66149----1---------CHG-----------------------------26----
I would like to use something similar to a vlookup to select the most recent rejection code (Rej1 Cd) for each invoice. For example, for invoice number 66095 - I would like to obtain the rejection code "ELI" not blank if I use a standard VLookup formula. Also, would like to obtain the mod code for each invoice which is only on the charge records without performing another VLookup.
Initially, I sorted by invoice number (ascending) and then by Line Number (descending) and performed a standard VLookup. Then, I realized that this will not work!
Thanks in advance.
SpeedThink
Invc----Line No---Cd Type---Rej1 Cd--Mod1 Cd
66095---18---------Pymt-------------------------------
66095---12---------Pymt--------ELI----------------------
66095----1---------CH----------------------------26----
66149---18---------Pymt--------IDER---------------------
66149---12---------PYMT--------ADOO---------------------
66149----1---------CHG-----------------------------26----
I would like to use something similar to a vlookup to select the most recent rejection code (Rej1 Cd) for each invoice. For example, for invoice number 66095 - I would like to obtain the rejection code "ELI" not blank if I use a standard VLookup formula. Also, would like to obtain the mod code for each invoice which is only on the charge records without performing another VLookup.
Initially, I sorted by invoice number (ascending) and then by Line Number (descending) and performed a standard VLookup. Then, I realized that this will not work!
Thanks in advance.
SpeedThink