• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to code if false, check next row until true condition meet?

ahuynh

New Member
Hi all, I need help
I have a list of roads in tab Rd List. I want to transfer this list into sheet Alpha which sort the road list in alphabetical order.
For the roads start with letter "A", I use code =IF(LEFT('Rd List'!E3,1)="A",'Rd List'!E3,offset) and stuck here. Can anyone tell me how to code if the road not start with letter "A" the move to next row until true condition meet, no blank.
The following attachment is my excel file.
Thanks
 

Attachments

  • Testing Roads list.xlsb
    106.9 KB · Views: 4
With O365,the FILTER function will do this for you =FILTER('Rd List'!$E$3:$K$444;LEFT('Rd List'!$E$3:$E$444;1)="a")
Before applying it make sure all destination cells are empty, your "empty" cells are nor as empty as they seem
 

Attachments

  • Testing Roads list.xlsb
    103.6 KB · Views: 7
With O365,the FILTER function will do this for you =FILTER('Rd List'!$E$3:$K$444;LEFT('Rd List'!$E$3:$E$444;1)="a")
Before applying it make sure all destination cells are empty, your "empty" cells are nor as empty as they seem
Thanks bro, the Filer function works great. by the way, if I want to filter the roads begin with number such as 1st Street, 2nd Street etc., should I replace "A" by "isnumber"?
 
Back
Top