I am having trouble generating the correct formulas for columns S & T in the first image attached. I need the formula to recognize the portal name, start date, and end date from the first image and give me the sum/avg across that portal for the given dates from the data in image 2. I have tried a ton of times using SUMIF, MATCH, INDEX, and VLOOKUP functions, but cannot seem to get the correct output. The data in S5 is for hand calculated for reference, as I was trying to test the accuracy of the formula I was making. Someone please help and guide me in the right direction!
Bookmarks