• 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.

Conditional Lookup

Saif-ur-Rehman

New Member
with reference to uploaded file, I need to lookup value vertically with condition and need to skip all value that does not fulfill the applied condition. With any solution, if available, I will not be doing following steps anymore..
1. Copy data to result column
2. Filter data (Does not begin with "PK")
3. Delete rows on screen / Filtered
4. Remaining data is the result required.

Looking for expert opinion.

Thanks. BR
 

Attachments

Hello Saif, Good day and welcome to the forum :awesome:

Try the following {array} formula in E4:

=INDEX($B$4:$B$15,SMALL(IF(LEFT($B$4:$B$15,2)="PK",ROW($B$1:$B$12)),ROW(A1)))

To be array entered with Ctrl+Shift+Enter and copied down.

If you aren't familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

Regards,
 
Back
Top