Create a sequential list of values that match criteria?

Rhodes19

New Member
Joined
Apr 26, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
I'm looking for a way to create a list of values that matches a certain criteria while skipping those values that don't match.

For example, in the attached image, let's say I want to create a list of the products that cost less than $5.00. A simple IF will return the correct products, but only in the corresponding row. What I'd like to do is essentially remove those rows that don't match altogether, and have the next matching value moved up, like in the column named 'Desired Outcome.'

Any help would be appreciated! Thanks!
 

Attachments

  • Cost Example.JPG
    Cost Example.JPG
    25.7 KB · Views: 19

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Book1.xlsx
BCDE
3ProductCostOutcome
4Apple4.75Apple
5Lettuce3.25Lettuce
6Potato3.75Potato
7Orane5.5Radish
8Banana5.25Pear
9Radish4
10Pear4.5
Sheet2
Cell Formulas
RangeFormula
E4:E8E4=FILTER(B4:B10,C4:C10<5)
Dynamic array formulas.
 
Upvote 0
Solution
Best to avoid entire columns, but you could extend the ranges like
Excel Formula:
=FILTER(B4:B1000,(C4:C1000<5)*(B4:B1000<>""))
 
Upvote 0

Forum statistics

Threads
1,214,409
Messages
6,119,339
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top