M
MJKelly
How do I run through a few worksheets of data to check that certain
values are correct, according to another criteria?
i.e. if A1 = "Fruit", the value of B1 is either Apple or Pair or
Banana. Or, if A1 = "Vegetable", the value of B1 must be either
Carrot or Potato.
Then proceed to A2 and check the value of B2 and so on.
If an error is found, I would like the cell backgroud colour changed
to Yellow and an error count increased by 1.
I have quite a few categories and values which can be attributed to
them (loads more Fruit and Veg types as well as other food types and
their products), so would I need to contain all of the correct options
in the macro or could it reference and check against a table on a
worksheet?
kind regards,
Matt
values are correct, according to another criteria?
i.e. if A1 = "Fruit", the value of B1 is either Apple or Pair or
Banana. Or, if A1 = "Vegetable", the value of B1 must be either
Carrot or Potato.
Then proceed to A2 and check the value of B2 and so on.
If an error is found, I would like the cell backgroud colour changed
to Yellow and an error count increased by 1.
I have quite a few categories and values which can be attributed to
them (loads more Fruit and Veg types as well as other food types and
their products), so would I need to contain all of the correct options
in the macro or could it reference and check against a table on a
worksheet?
kind regards,
Matt