Title. Is it possible just using the Range.Find() or any other method to find the first cell whose value isn't a given argument? I know I can manually iterate through a range and check the values but I'd really like a cleaner solution to this.
I have an excel sheet with a bunch of rows each of which have data pertaining to projects I'm working on. One column on this sheet is the Status column, which has a range of values, most of with are "0. DONE" for projects that are already finished. Other statuses indicate how far along the project is (for example, 1. HOLD, 3. PWRK (need paperwork), 4. WRITE (write the project up), 6 PREP, 8. LIVE, etc. I wanted to use the Find function to be able to find the first row that isn't marked 0. DONE. I've already got a function that just manually checks every status cell until it finds one that isn't "0. DONE" but that isn't very elegant or efficient.Probably not. There is no way to say "Find something that is not this." But there might a clever way to do it with wildcards, MATCH, or something else, depending on what you're doing. Describe the data. What is the value you want to exclude, and what other kinds of values are in the range?
I think I've found a workaround. For the Done lines, instead of it being 0. DONE, i'm changing it to 0, DONE. Then I can have the find argument be "?.*" since the second character of all the others is a period and not a commaProbably not. There is no way to say "Find something that is not this." But there might a clever way to do it with wildcards, MATCH, or something else, depending on what you're doing. Describe the data. What is the value you want to exclude, and what other kinds of values are in the range?
I have an excel sheet with a bunch of rows each of which have data pertaining to projects I'm working on. One column on this sheet is the Status column, which has a range of values, most of with are "0. DONE" for projects that are already finished. Other statuses indicate how far along the project is (for example, 1. HOLD, 3. PWRK (need paperwork), 4. WRITE (write the project up), 6 PREP, 8. LIVE, etc. I wanted to use the Find function to be able to find the first row that isn't marked 0. DONE. I've already got a function that just manually checks every status cell until it finds one that isn't "0. DONE" but that isn't very elegant or efficient.
Even better, instead of a comma, I found a unicode character (0xA4F8) that looks super similar to a period but is recognized differently by the programI think I've found a workaround. For the Done lines, instead of it being 0. DONE, i'm changing it to 0, DONE. Then I can have the find argument be "?.*" since the second character of all the others is a period and not a comma