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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,216,068
Messages
6,128,596
Members
449,460
Latest member
jgharbawi

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