Pull Data Based on Multiple Criteria

JasmineL

Active Member
Joined
Jan 7, 2003
Messages
299
Hi all!

I'm trying to pull data from a range if multiple criteria are met. I have done this with SUMIFS in the following formula:
=SUM(SUMIFS('[PRODUCTION - 2017.xlsx]Data-17'!$RD:$RD,'[PRODUCTION - 2017.xlsx]Data-17'!$D:$D,N6,'[PRODUCTION - 2017.xlsx]Data-17'!$I:$I,{10,11,12,""},'[PRODUCTION - 2017.xlsx]Data-17'!$J:$J,{"2016";"2017"}))

I thought I could just try using IFS, but it didn't work.

Essentially, I want my formula in the new worksheet to go out to the existing worksheet and look for {"2016","2017"} in column J and look for {2,3,4,5,6,7,8,9,10,11,12,""} in column I. If both these criteria are matched in the existing worksheet, pull back the contents from the matching cells in columns A,B,C into the new worksheet.

I could manually do this each month by filtering the existing worksheet by column J for 2016 and 2017 and column I for 2,3,4,5,6,7,8,9,10,11,12,"" and then copy and paste the filtered results from columns A,B,C, but I was hoping to avoid this manual step.

Any suggestions would be appreciated greatly.

Jasmine
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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