First post here and a basic user of excel. Go easy on me.
I have a list of parts that were only available on certain dates (marked by 1 as available and 0 as not available in Sheet2). I have a separate table where I want to find out by part if they were available at least Y times in a X number of days.
Here is what I tried and getting #Value !:
=IF(COUNTIFS(Sheet2!$A$4:$A$8,"="&$A4,Sheet2!$B$3:$J$3,">="&B$3,Sheet2!$B$3:$J$3,"<="&B3+($D$1-1))>=$G$1,1,0)
where A is column for parts on both sheets
B3-J3 has dates on both sheets
D1 has the number of days (X)
G1 has the availability (Y)
Any help is appreciated.
I have a list of parts that were only available on certain dates (marked by 1 as available and 0 as not available in Sheet2). I have a separate table where I want to find out by part if they were available at least Y times in a X number of days.
Here is what I tried and getting #Value !:
=IF(COUNTIFS(Sheet2!$A$4:$A$8,"="&$A4,Sheet2!$B$3:$J$3,">="&B$3,Sheet2!$B$3:$J$3,"<="&B3+($D$1-1))>=$G$1,1,0)
where A is column for parts on both sheets
B3-J3 has dates on both sheets
D1 has the number of days (X)
G1 has the availability (Y)
Any help is appreciated.