Hi, I'm trying to learn how to code a macro for a spreadsheet I am working on and I am stuck at this part of the process:
What I am looking for:
If column O value is greater than zero then
If column Q value is between 0400 to 0499, then print "ON" in column P else
If column Q value is between 0300 to 0399, then print "MB" in column P else
So on and so forth...
It is a running list, so there could be 10 rows of data or 1000.
Alternatively, instead of a between check for column Q, would it be easier to have it check the first two digits instead? i.e. 04, 03, etc.
Sorry if this is very simplistic, I am still trying to learn and my online resources haven't helped me. Thank you for helping.
What I am looking for:
If column O value is greater than zero then
If column Q value is between 0400 to 0499, then print "ON" in column P else
If column Q value is between 0300 to 0399, then print "MB" in column P else
So on and so forth...
It is a running list, so there could be 10 rows of data or 1000.
Alternatively, instead of a between check for column Q, would it be easier to have it check the first two digits instead? i.e. 04, 03, etc.
Sorry if this is very simplistic, I am still trying to learn and my online resources haven't helped me. Thank you for helping.