Help needed with Count ifs or sumproduct with multiple criterias

pingvin

New Member
Joined
Oct 28, 2017
Messages
15
Hi,

I have a problem. I have a workbook with two worksheets.
Below is a link to the file is you want to see it in IRL.
https://www.dropbox.com/s/xhniqhd1j1lxny7/Range%20schedule%20mrexcel.xlsx?dl=0

What I want to achieve is to select "Product area" and "SSD" on worksheetA.
Based on the selected criterias on worksheetA, get the data from WorksheetB and print this in cell B5:F5 and if there are multiple matches paste this data to B6:F6 and so on.
The SSD date in worksheetA should be correlate to the date in the SSD and SED in worksheet B, hower some dates in SED are infinite∞ and I'm not sure you can have infinite as an end date in search criteria?

I was thinking of using countifs to count how many rows maches the criteria on worksheet A. The formula for this is below and would be pasted into cell F2 on worksheet A.
=COUNTIFS(SheetB!$H$2:$H$11,$C$2,SheetB!$M$2:$M$11,"=>"&$E$2,SheetB!$N$2:$N$11,"=<"&$E$2)

and the perhaps a nested IF with index and match get the data from worksheetB.

But I am dead stuck I believe that there must be an easier way to get around this. Also of if the infinite is not possible I will change these to actual dates.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,846
Messages
6,181,307
Members
453,031
Latest member
Chris_1

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