You could write a SQL query if you're linked to access.
Else, you'd write the if statement in another sheet to say - if true then value, if false then "". From there you'd need to copy, paste special, values, then removes the blank rows.
If you give more details about what you're trying to do, there may be a better solution.