IF statement for recoding variables

WashingtonDC

New Member
Joined
Sep 19, 2016
Messages
12
I have a list of ICD-10 codes that I would like to recode into diagnosis categories- this would be a one to many relationship.

For example I have: And I want:
98745 Flu
96458 Pneumonia
98462 Flu
95643 Pneumonia
97542 Heart Disease



There could be upwards of 20 ICD-10 codes that correspond to a single diagnosis category, with a total of 6 possible diagnoses. Is this possible to do with an IF statement?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Just create a table with two columns the 5 digit code and the description.
Then just do

=VLOOKUP(Sheet1!A1,Sheet2!A$1:B$20,2,0)

where Sheet1!A1 is your lookup code and Sheet2!A$1:B$20 is your table.
If you extend the range to B$1000 then you can add further codes without having to change the formula.
 
Upvote 0
Thanks! Is there a way to add an "other" category if the entered values fall outside the range I've pre selected?
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top