Replace or recode several different values by a single value in an Excel file

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-04-08T08:58:35Z Indexed on 2010/04/08 9:03 UTC
Read the original article Hit count: 773

Filed under:
|
|

Hi all,

I have an Excel worksheet which contains data in several columns. For a specific column, I will need Excel to replace all values between, say 10 to 15, by the value 1 and values between 16 and 20 by the value 2 and so forth.

I know how to do it for a single value; ie: I can replace value 10 by 1, 11 by 1 and so on. But this will be a tedious exercise. Are there some lines of codes that can execute this task?

Thanks for your help.

regards, Ali

© Stack Overflow or respective owner

Related posts about excel

Related posts about replace