List Products having Values Greater than Zero by Date

dwgnome

Active Member
Joined
Dec 18, 2005
Messages
443
Office Version
  1. 2019
Platform
  1. Windows
Hi,

Trying to create a list of products in which each product has a value greater than zero for a particular column (Date).

Table:
A B C D

1
Product
2/1/2023
3/1/2023
4/1/2023
2
AU1387001
7.0
10.0
8.0
3
AUE-101
0.9
5.0
1.0
4
CGC112
5
CPC-SP41
330.0
330.0
660.0
6
CPC-SP47
330.0
220.0


Results should be for 3/1/2023:
A B


8AU13870013/1/2023
9AUE-101
10CPC-SP41

I tried the following array formula:

={INDEX($A$2:$A$6,MATCH(1,($C$2:$C$6>0)*(COUNTIF(A$7:A7,$A$2:$A$6)=0),0))}

While this works, I need the flexibility of changing the date and have the formula choose the matching column rather than the hard entered portion $C$2:$C$6.

I tried inserting a column lookup as follows but it did not work:

={INDEX($A$2:$A$6,MATCH(1,MATCH($B$8,$B$1:$D$1))>0)*(COUNTIF(A$7:A7,$A$2:$A$6)=0)}
Where B8 has the date.

I have Excel 2019.

Thank you.
 
I have Excel 2019.
Please update your forum profile (click your user name at the top right of the forum, then ‘Account details’) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Give this a try

25 03 06.xlsm
ABCD
1Product2/01/20233/01/20234/01/2023
2AU13870017108
3AUE-1010.951
4CGC112
5CPC-SP41330330660
6CPC-SP47330220
7
8AU13870013/01/2023
9AUE-101
10CPC-SP41
11 
12 
List
Cell Formulas
RangeFormula
A8:A12A8=IFERROR(INDEX(A$2:A$6,AGGREGATE(15,6,(ROW(A$2:A$6)-ROW(A$2)+1)/(INDEX(B$2:D$6,0,MATCH(B$8,B$1:D$1,0))>0),ROWS(A$8:A8))),"")
 
Upvote 0
Solution
Hi Peter,

Thank you for your suggested formula. It works perfectly.
And yes I updated my profile to reflect the Excel version and platform.
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

.. and for updating your profile. (y)
 
Upvote 0

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