Extract Values that meet criteria

cgrulk

New Member
Joined
Jun 16, 2020
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Hello All,

I am trying to extract some data from one sheet into another based on two different criteria. I need to select the data from the last six months and where column C = 1. So far I have been using an Index and small function. I have been able to extract some data, but not the correct data. I think that my logical tests are correct, but I have an error with the ROW parts of my formula that are returning the incorrect rows. So far my formula only returns one data point which is the value that is first in the data column (G2). Here is my formula so far
{=INDEX('Water Activity '!$G$2:$G$100,SMALL(IF(AND('Water Activity '!$B$2:$B$100>=(TODAY()-183),'Water Activity '!$C$2:$C$100=1),ROW('Water Activity '!$G$2:$G$100)),ROW(1:1)))}

All Help Greatly appreciated!
 

Attachments

  • 1.PNG
    1.PNG
    8.2 KB · Views: 14
  • 2.PNG
    2.PNG
    4 KB · Views: 14

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi

You cannot use AND() in array formulas. Replace it with a multiplication, like instead of

... IF(AND('Water Activity '!$B$2:$B$100>=(TODAY()-183),'Water Activity '!$C$2:$C$100=1), ...

try

... IF(('Water Activity '!$B$2:$B$100>=(TODAY()-183))*('Water Activity '!$C$2:$C$100=1), ...
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,255
Members
448,556
Latest member
peterhess2002

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