Hi.
I am trying to automate a process that can be laborous. So let's say on cell C2:C10, I used vlookup from a data file to pull out a % which ranges from (0%-5%). On the corresponding column D, I would like to have a rating, which is taken out from a rating scale. So my congested IF statement on Column D looks like this: =IF(C2<0.75%,"1",IF(C2<1.5%,"2",IF(C2>1.501%,"3","N/A")))
Which says the value of C2 is between 0 and .75% then we geit it a 1, if its between .75% and 1.5% its a 2, and so on. How can I put this in VBA, and if I could, should I? I am able to get what I need with the Ifstatement.
Please advise,
Intern
I am trying to automate a process that can be laborous. So let's say on cell C2:C10, I used vlookup from a data file to pull out a % which ranges from (0%-5%). On the corresponding column D, I would like to have a rating, which is taken out from a rating scale. So my congested IF statement on Column D looks like this: =IF(C2<0.75%,"1",IF(C2<1.5%,"2",IF(C2>1.501%,"3","N/A")))
Which says the value of C2 is between 0 and .75% then we geit it a 1, if its between .75% and 1.5% its a 2, and so on. How can I put this in VBA, and if I could, should I? I am able to get what I need with the Ifstatement.
Please advise,
Intern