Pull data if conditions met

hedgie

Board Regular
Joined
Jun 23, 2004
Messages
174
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a worksheet that pulls data from another sheet. I want rows from the original sheet excluded if they do not meet certain criteria. WHat is the correct formula to use to pull this conditionally?
1660155458718.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try this
Excel Formula:
=FILTER(Sheet1!A:D,(Sheet1!C:C="M")*(Sheet1!B:B>=30))
 
Upvote 0
How about
Excel Formula:
=FILTER(A3:D6,(B3:B6>30)*(C3:C6="M"))
 
Upvote 0
Fantastic - is it possible to not copy the entire row and just certain columns?
 
Upvote 0
In this example let me just pull name and amount. In my real sheet there are actually many columns so I want to pull a handful.
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGH
1NameAgeSexAmountNameAmount
2a27M100b200
3b36M200d400
4c25F300
5d42M400
6e39F500
Main
Cell Formulas
RangeFormula
G2:H3G2=FILTER(FILTER(A2:D6,(B2:B6>30)*(C2:C6="M")),ISNUMBER(MATCH(A1:D1,G1:H1,0)))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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