Index a table for multiple entries and two specific entries

Kotta

New Member
Joined
Jul 15, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi all, I have the below data and I would like to create a list, in a separate worksheet, that will return all the fruits that have less than -4 value in the second column and all the fruits that have values over 5 in the second column, as well as kiwi and strawberry no matter what the values are in the second column. How would I do that? In actually have thousands of rows to shift through but this is an example to help with the formula. Any help would be highly appreciated! Thank you in advance.


apple
-5​
orange
5​
banana
-4​
kiwi
3​
strawberry
1​
apple
-6​
orange
6​
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi & welcome to MrExcel.
How about
Fluff.xlsm
ABCD
1
2apple-5apple
3orange5kiwi
4banana-4strawberry
5kiwi3apple
6strawberry1orange
7apple-6
8orange6
9
Data
Cell Formulas
RangeFormula
D2:D6D2=FILTER(A2:A100,(B2:B100<-4)+(B2:B100>5)+(A2:A100="kiwi")+(A2:A100="strawberry"))
Dynamic array formulas.
 
Upvote 0
Hi Fluff,
Thank you so much for the response! I think this is very helpful. Is it possible to also add a criteria for kiwi? For example return kiwi if column B is positive?
Thank you again for your help!
 
Upvote 0
How about
Excel Formula:
=FILTER(A2:A100,(B2:B100<-4)+(B2:B100>5)+(A2:A100="strawberry")+((A2:A100="kiwi")*(B2:B100>0)))
 
Upvote 0
Solution
This is fantastic! Thank you so much for your help!! I really appreciate it!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,608
Members
449,038
Latest member
apwr

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