Hello,
I'm not especially experienced with Excel, and haven't been able to find someone with my situation online to help troubleshoot my problem.
It's a complicated situation in a somewhat specialized field, so I'll try to explain as best as possible.
I work in medical billing, and there is a specific insurance payer who has strict rules about what ICD 10 diagnosis codes are allowed to be billed together (i.e. the code for chronic pain basically excludes any other pain codes, etc. meaning if a chronic pain code and a leg pain code are billed together, the insurance will deny.) We have a running list of codes that can't be billed together, but I wanted to make an easier "lookup" style excel sheet where we could essentially 1. input all the codes on the claim and have the sheet highlight codes that have exclusions and 2. search codes one at a time to isolate codes that exist on the claim that need removal because they can't be billed with the searched code.
The first part I've managed just fine with conditional formatting and a COUNTIF formula, so any codes on the claim that are "headers" in the table of codes and exclusions highlight red.
The second part is where I've run into trouble. ICD 10 codes exist in a range of fewer digits/less specific to more digits/more specific (For example, M17 (osteoarthritis of knee) at its least specific, to M17.32 (unilateral post-traumatic osteoarthritis, left knee). Some codes have up to 7 digits, and dozens if not hundreds of variations/sub codes). But, in the case of codes that are mutually exclusive, if a code excludes M17, then any codes more specific (M17.0, M17.32, etc.) are also excluded. The claims usually have more specific codes, but the table of exclusions usually has the least specific code that is still an exclusion. Since conditional formatting doesn't like wildcards, I've found that the hidden helper table will highlight duplicates using the wildcard, but the more specific codes in the column I'm actually trying to format will not highlight. Is there a way to finagle this to make it work? (Preferably without listing out every single code under the least specific code).
Here's the sheet, I'm hoping I've formatted this as well as explained it correctly. Thanks in advance
I'm not especially experienced with Excel, and haven't been able to find someone with my situation online to help troubleshoot my problem.
It's a complicated situation in a somewhat specialized field, so I'll try to explain as best as possible.
I work in medical billing, and there is a specific insurance payer who has strict rules about what ICD 10 diagnosis codes are allowed to be billed together (i.e. the code for chronic pain basically excludes any other pain codes, etc. meaning if a chronic pain code and a leg pain code are billed together, the insurance will deny.) We have a running list of codes that can't be billed together, but I wanted to make an easier "lookup" style excel sheet where we could essentially 1. input all the codes on the claim and have the sheet highlight codes that have exclusions and 2. search codes one at a time to isolate codes that exist on the claim that need removal because they can't be billed with the searched code.
The first part I've managed just fine with conditional formatting and a COUNTIF formula, so any codes on the claim that are "headers" in the table of codes and exclusions highlight red.
The second part is where I've run into trouble. ICD 10 codes exist in a range of fewer digits/less specific to more digits/more specific (For example, M17 (osteoarthritis of knee) at its least specific, to M17.32 (unilateral post-traumatic osteoarthritis, left knee). Some codes have up to 7 digits, and dozens if not hundreds of variations/sub codes). But, in the case of codes that are mutually exclusive, if a code excludes M17, then any codes more specific (M17.0, M17.32, etc.) are also excluded. The claims usually have more specific codes, but the table of exclusions usually has the least specific code that is still an exclusion. Since conditional formatting doesn't like wildcards, I've found that the hidden helper table will highlight duplicates using the wildcard, but the more specific codes in the column I'm actually trying to format will not highlight. Is there a way to finagle this to make it work? (Preferably without listing out every single code under the least specific code).
Here's the sheet, I'm hoping I've formatted this as well as explained it correctly. Thanks in advance
Colvin diagnosis exclusion lookup.xlsx | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | |||
2 | DX CODES ON YOUR CLAIM | DX code excluded by search term (this colum is supposed to be hidden!)-> | *ONE* RED DX CODE HERE | CODES | |||||||||||||||||||||||||||||
3 | M81.0 | F45.41 | g89.4 | G89.21 | G89.29 | G89.3 | G89.4 | I73.89 | K08.89 | K86.3 | M15.0 | M25.551 | M25.552 | M25.561 | M25.562 | M54.08 | M54.12 | M54.16 | M54.2 | M54.59 | M54.6 | M79.641 | M79.642 | M81.0 | R25.2 | R53.1 | R53.81 | S88.112D | S88.112S | Z79.891 | |||
4 | G89.4 | G43.* | Codes they exclude | F45.41 | F45.41 | F45.41 | F45.41 | E08.51 | M26.* | D13.7 | M16.* | M20.* | M20.* | M20.* | M20.* | F45.41 | H45.41 | F45.41 | F45.41 | F45.41 | F45.41 | F45.41 | F45.41 | M80.* | F95.* | M62.81 | F33 | S98.* | S98.* | F1* | |||
5 | R53.81 | G44.* | G43.* | G43.* | G43.* | G43.* | E08.52 | M27.* | E84.* | M17.* | M21.* | M21.* | M21.* | M21.* | L93.2 | M47.2* | M47.2* | M50.* | M51.2* | M51.* | F45.8 | F45.8 | M89.0 | F98.4 | M62.84 | F43.0 | O99.32* | ||||||
6 | Z79.891 | G50.1 | G44.* | G44.* | G44.* | G44.* | E09.51 | K90.3 | M18.* | M26.6* | M26.6* | M26.6* | M26.6* | M35.6 | M50.1* | M50.1 | M54.4* | M25.5* | M25.5* | G2* | R54 | O26.8* | |||||||||||
7 | m48.061 | G54.6 | G50.1 | G50.1 | G50.1 | G50.1 | E09.52 | M19.* | M65.2* | M65.2* | M65.2* | M65.2* | M79.3 | M51.1* | M51.1* | S39.012 | G40.4 | ||||||||||||||||
8 | M25.561 | H57.1 | G54.6 | G54.6 | G54.6 | G54.6 | E10.51 | M71.4* | M71.4* | M71.4* | M71.4* | M79.2* | M79.2* | M62.830 | |||||||||||||||||||
9 | m25.562 | H92.0 | G56.4* | G56.4* | H57.1 | H57.1 | E10.52 | M75.3* | M75.3* | M75.3* | M75.3* | M62.831 | |||||||||||||||||||||
10 | m25.532 | K08.8 | G57.7 | G57.7* | H92.0* | H92.0 | E11.51 | M79.6* | M79.6* | M79.6* | M79.6* | R29.0 | |||||||||||||||||||||
11 | m54.12 | K14.6 | THIS MEANS I HAVE EXCLUSIONS AND YOU SHOULD SEARCH FOR ME! | G89.0 | G89.0 | K08.8 | K08.8 | E11.52 | R26.* | R26.* | R26.* | R26.* | |||||||||||||||||||||
12 | m54.16 | M25.5* | G89.3 | G89.3 | K14.6 | K14.6 | E12.51 | ||||||||||||||||||||||||||
13 | m54.59 | M54.* | G89.4 | G89.4 | M25.5* | M25.5* | E12.52 | ||||||||||||||||||||||||||
14 | M79.1* | G90.5* | G90.5* | M54.* | M54.* | E13.51 | |||||||||||||||||||||||||||
15 | M79.6* | H57.1 | H57.1 | M79.1* | M79.1* | E13.52 | |||||||||||||||||||||||||||
16 | N23 | H92.0* | H92.0 | M79.6* | M79.6* | G45.9 | |||||||||||||||||||||||||||
17 | N64.4 | K08.8 | K08.8 | M23 | N23 | T33.* | |||||||||||||||||||||||||||
18 | N94.81* | THIS MEANS I AM AN EXCLUSION AND YOU SHOULD DELETE ME! | K14.6 | K14.6 | M64.4 | N64.4 | T34.* | ||||||||||||||||||||||||||
19 | R07.* | M25.5* | M25.5* | N94.81* | N94.81* | T69.0* | |||||||||||||||||||||||||||
20 | R10.* | M54.* | M54.* | R07.* | R07.* | T69.1* | |||||||||||||||||||||||||||
21 | R30.9 | M79.1* | M79.1* | R10.* | R10.* | ||||||||||||||||||||||||||||
22 | R51.9 | M79.6* | M79.6* | R30.9 | R30.9 | ||||||||||||||||||||||||||||
23 | R52 | N23 | N23 | R51.9 | R51.9 | ||||||||||||||||||||||||||||
24 | T82.84 | N64.4 | N64.4 | R52 | R52 | ||||||||||||||||||||||||||||
25 | T83.84 | N94.81* | N94.81* | T82.84 | T82.84 | ||||||||||||||||||||||||||||
26 | T84.84 | R07.* | R07.* | T83.84 | T83.84 | ||||||||||||||||||||||||||||
27 | T85.84 | R10.* | R10.* | T84.84 | T84.84 | ||||||||||||||||||||||||||||
28 | 0 | R10.2 | R10.2 | T85.84* | T85.84 | ||||||||||||||||||||||||||||
29 | 0 | R30.9 | R30.9 | ||||||||||||||||||||||||||||||
30 | 0 | R51.9 | R51.9 | ||||||||||||||||||||||||||||||
31 | 0 | R52 | R52 | ||||||||||||||||||||||||||||||
32 | 0 | T82.84 | T82.84 | ||||||||||||||||||||||||||||||
33 | 0 | T83.84 | T83.84 | ||||||||||||||||||||||||||||||
34 | 0 | T84.84 | T84.84 | ||||||||||||||||||||||||||||||
35 | T85.84* | T85.84* | |||||||||||||||||||||||||||||||
LOOKUP |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3:C34 | C3 | =XLOOKUP(D3,F3:AF3,F4:AF35,"N/A",2) |
Dynamic array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B3:C34 | Cell Value | duplicates | text | NO |
B3 | Expression | =COUNTIF($F$3:$AF$3,B3) | text | NO |
B4 | Expression | =COUNTIF($F$3:$AF$3,B4) | text | NO |
B5 | Expression | =COUNTIF($F$3:$AF$3,B5) | text | NO |
B6 | Expression | =COUNTIF($F$3:$AF$3,B6) | text | NO |
B7 | Expression | =COUNTIF($F$3:$AF$3,B7) | text | NO |
B8 | Expression | =COUNTIF($F$3:$AF$3,B8) | text | NO |
B9 | Expression | =COUNTIF($F$3:$AF$3,B9) | text | NO |
B10 | Expression | =COUNTIF($F$3:$AF$3,B10) | text | NO |
B11 | Expression | =COUNTIF($F$3:$AF$3,B11) | text | NO |
B12 | Expression | =COUNTIF($F$3:$AF$3,B12) | text | NO |
B13 | Expression | =COUNTIF($F$3:$AF$3,B13) | text | NO |
B14 | Expression | =COUNTIF($F$3:$AF$3,B14) | text | NO |
B15 | Expression | =COUNTIF($F$3:$AF$3,B15) | text | NO |
B16 | Expression | =COUNTIF($F$3:$AF$3,B16) | text | NO |
B17 | Expression | =COUNTIF($F$3:$AF$3,B17) | text | NO |
B18 | Expression | =COUNTIF($F$3:$AF$3,B18) | text | NO |
B19 | Expression | =COUNTIF($F$3:$AF$3,B19) | text | NO |
B20 | Expression | =COUNTIF($F$3:$AF$3,B20) | text | YES |
B21 | Expression | =COUNTIF($F$3:$AF$3,B21) | text | NO |
B22 | Expression | =COUNTIF($F$3:$AF$3,B22) | text | NO |
B23 | Expression | =COUNTIF($F$3:$AF$3,B23) | text | NO |
B24 | Expression | =COUNTIF($F$3:$AF$3,B24) | text | NO |
B25 | Expression | =COUNTIF($F$3:$AF$3,B25) | text | NO |
B26 | Expression | =COUNTIF($F$3:$AF$3,B26) | text | NO |
B27 | Expression | =COUNTIF($F$3:$AF$3,B27) | text | NO |
B28 | Expression | =COUNTIF($F$3:$AF$3,B28) | text | NO |
B29 | Expression | =COUNTIF($F$3:$AF$3,B29) | text | NO |
B30 | Expression | =COUNTIF($F$3:$AF$3,B30) | text | NO |
B31 | Expression | =COUNTIF($F$3:$AF$3,B31) | text | NO |
B32 | Expression | =COUNTIF($F$3:$AF$3,B32) | text | NO |
B33 | Expression | =COUNTIF($F$3:$AF$3,B33) | text | NO |
B34 | Expression | =COUNTIF($F$3:$AF$3,B34) | text | NO |