Hello, I am trying to do a sheet where i look up data and bring back a total. I have 2 spreadsheets 1 with the data and 1 as a front sheet. I need the front sheet to look at the data and bring back the total.
This is the data sheet[TABLE="width: 477"]
<colgroup><col><col><col span="4"></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD="colspan: 4"]Coverage[/TD]
[/TR]
[TR]
[TD]Product Code[/TD]
[TD]Product Description[/TD]
[TD]01-Jun[/TD]
[TD]08-Jun[/TD]
[TD]15-Jun[/TD]
[TD]22-Jun[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Crisps [/TD]
[TD]<2Weeks[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Crisps [/TD]
[TD]<2Weeks[/TD]
[TD]<2Weeks[/TD]
[TD]<3Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]1313[/TD]
[TD]snack[/TD]
[TD]<4Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]5555[/TD]
[TD]Drink[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[/TR]
[TR]
[TD]6666[/TD]
[TD]snack[/TD]
[TD]<2Weeks[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[/TR]
[TR]
[TD]9876[/TD]
[TD]Crisps[/TD]
[TD]>5Weeks[/TD]
[TD]<5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[/TR]
[TR]
[TD]8546[/TD]
[TD]snack[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]7845[/TD]
[TD]Drink[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<2Weeks[/TD]
[/TR]
[TR]
[TD]3265[/TD]
[TD]Drink[/TD]
[TD]<2Weeks[/TD]
[TD]<5Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
</tbody>[/TABLE]
This is the front sheet
[TABLE="width: 331"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD="colspan: 4"]Weekly Stock Coverage [/TD]
[TD]01/06/2018[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Product Description[/TD]
[TD]No. Product Codes[/TD]
[TD]< Min[/TD]
[TD]In Range[/TD]
[TD]> Max[/TD]
[/TR]
[TR]
[TD]Crisps[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]snack[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Drinks[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Other[/TD]
[TD] [/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]<Min <1Week and <2Weeks[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]In Range <3Weeks and <4Weeks[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]>Max <5Weeks and >5Weeks[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to achieve is... On the Front sheet I have different tabs for each week - 01/06, 08/06, 15/06 etc... I am unable to work out the formula that will look up the date and product description to then count how many criteria there is. so in the above for the 01/06 we have a total of 3 crisp products, and with those 3 codes we have 2 which are <min range (<1Week and <2Weeks) and 1 that is max range (<5Weeks and >5Weeks). Is there a a formula that can do this? I have tried Sumproduct index and match but keep getting #value ????
Sorry if this is a little confusing and long winded.
Mike
This is the data sheet[TABLE="width: 477"]
<colgroup><col><col><col span="4"></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD="colspan: 4"]Coverage[/TD]
[/TR]
[TR]
[TD]Product Code[/TD]
[TD]Product Description[/TD]
[TD]01-Jun[/TD]
[TD]08-Jun[/TD]
[TD]15-Jun[/TD]
[TD]22-Jun[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]Crisps [/TD]
[TD]<2Weeks[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[/TR]
[TR]
[TD]4567[/TD]
[TD]Crisps [/TD]
[TD]<2Weeks[/TD]
[TD]<2Weeks[/TD]
[TD]<3Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]1313[/TD]
[TD]snack[/TD]
[TD]<4Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]5555[/TD]
[TD]Drink[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[/TR]
[TR]
[TD]6666[/TD]
[TD]snack[/TD]
[TD]<2Weeks[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[/TR]
[TR]
[TD]9876[/TD]
[TD]Crisps[/TD]
[TD]>5Weeks[/TD]
[TD]<5Weeks[/TD]
[TD]>5Weeks[/TD]
[TD]>5Weeks[/TD]
[/TR]
[TR]
[TD]8546[/TD]
[TD]snack[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
[TR]
[TD]7845[/TD]
[TD]Drink[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<1Week[/TD]
[TD]<2Weeks[/TD]
[/TR]
[TR]
[TD]3265[/TD]
[TD]Drink[/TD]
[TD]<2Weeks[/TD]
[TD]<5Weeks[/TD]
[TD]<4Weeks[/TD]
[TD]<3Weeks[/TD]
[/TR]
</tbody>[/TABLE]
This is the front sheet
[TABLE="width: 331"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD="colspan: 4"]Weekly Stock Coverage [/TD]
[TD]01/06/2018[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Product Description[/TD]
[TD]No. Product Codes[/TD]
[TD]< Min[/TD]
[TD]In Range[/TD]
[TD]> Max[/TD]
[/TR]
[TR]
[TD]Crisps[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]snack[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Drinks[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Other[/TD]
[TD] [/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]<Min <1Week and <2Weeks[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]In Range <3Weeks and <4Weeks[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]>Max <5Weeks and >5Weeks[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I am trying to achieve is... On the Front sheet I have different tabs for each week - 01/06, 08/06, 15/06 etc... I am unable to work out the formula that will look up the date and product description to then count how many criteria there is. so in the above for the 01/06 we have a total of 3 crisp products, and with those 3 codes we have 2 which are <min range (<1Week and <2Weeks) and 1 that is max range (<5Weeks and >5Weeks). Is there a a formula that can do this? I have tried Sumproduct index and match but keep getting #value ????
Sorry if this is a little confusing and long winded.
Mike