helpmeplz_
New Member
- Joined
- Aug 25, 2017
- Messages
- 17
- Office Version
- 365
- Platform
- Windows
Images are below. Three tabs: 1) Report, 2) Store Vol, 3) Community Days.
J53 on Report is where the return value will be. Currently, in that cell is a combination of a VLookup and an HLookup. The Vlookup is pointing to A53 where a 1 is located to indicate Store #1 . It then finds Store #1 in the Store Vol sheet and returns the 42nd column which is the volume for that store for the year to date. Once it has the store's volume for the year to date, the formula divides it by the amount of business days in the year to get the average volume per day in the fiscal year. The problem is that some stores open in January, others open in February, or March and so on. Instead of it dividing by the number of days in the fiscal year that the store was open, it divides it by the total business days in the fiscal year to date. Does that make sense? So for example, in the current formula, if a store was open prior to fiscal year to date, it would have volume from the beginning of the fiscal year (September) all the way through to July (since August is not over yet it hasn't been reported). In this scenario, the formula would provide the correct average because it looks at the total business days fiscal year to date. But if the store had opened in December, it wouldn't have volume from September-November, but the formula would still count those business days and it would bring down the average volume per day. I need a formula that looks at the store volume tab, sees that a store had volume beginning in December, for example, and then goes to the Community Days and only counts the corresponding business days from December - fiscal year to date.
J53 on Report is where the return value will be. Currently, in that cell is a combination of a VLookup and an HLookup. The Vlookup is pointing to A53 where a 1 is located to indicate Store #1 . It then finds Store #1 in the Store Vol sheet and returns the 42nd column which is the volume for that store for the year to date. Once it has the store's volume for the year to date, the formula divides it by the amount of business days in the year to get the average volume per day in the fiscal year. The problem is that some stores open in January, others open in February, or March and so on. Instead of it dividing by the number of days in the fiscal year that the store was open, it divides it by the total business days in the fiscal year to date. Does that make sense? So for example, in the current formula, if a store was open prior to fiscal year to date, it would have volume from the beginning of the fiscal year (September) all the way through to July (since August is not over yet it hasn't been reported). In this scenario, the formula would provide the correct average because it looks at the total business days fiscal year to date. But if the store had opened in December, it wouldn't have volume from September-November, but the formula would still count those business days and it would bring down the average volume per day. I need a formula that looks at the store volume tab, sees that a store had volume beginning in December, for example, and then goes to the Community Days and only counts the corresponding business days from December - fiscal year to date.