I have a table named FINAL and one called DAILY. I have three columns in FINAL called Breakfast, Lunch, & Supper. For each row (location), the data in the columns is either the desired meal (dry cereal, fruit, etc.) or three dashes "---" if no meal is needed. There is also a column with Projected # attendees. Then there are columns for each day (Jun 5, Jun 6, etc.) with a Y if that row indicates that there will be a meeting that day. There are multiple locations with more than one program daily with different projected attendees, so I want to get the totals in 4 ways: total # expected on site for that day, # needing breakfast, lunch, & supper.
I have this in DAILY for the three meals:
=SUMIFS(FINAL['# Attendees],FINAL[ORG],[@ORG],FINAL[Breakfast],"<>---",FINAL[5-Jun],"=Y")
=SUMIFS(FINAL['# Attendees],FINAL[ORG],[@ORG],FINAL[Luncht],"<>---",FINAL[5-Jun],"=Y")
=SUMIFS(FINAL['# Attendees],FINAL[ORG],[@ORG],FINAL[Supper],"<>---",FINAL[5-Jun],"=Y")
This makes my DAILY table really wide...and I'm only going three months ahead right now. Plus I lose the date functionality for slicers since I have to add the meal type into the column header...no longer is it just Jun 5...now it has to be Jun 5 Bkfst, Jun 5 Lnch, Jun 5 Sppr, Jun 5 # atts.
I would like to have my DAILY table be viewable with slicers for the date range in a chart or PowerView.
So I think I might need to add a new column on DAILY for the criteria of meal. Then each location would have four entries only - Breakfast, Lunch, Supper, and Projected # Attendees for the day. I could then just have each day as a column header that would keep the date formatting so I could use slicers. But now, I need the formulas reworked.
I think I need an INDEX/MATCH scenario...I don't know how to refer to a column on another table by looking at a cell in the current table...
ORG MEAL Jun 5 Jun 6 Adams Breakfast Adams Lunch Adams Supper Adams Projected Atts
I figure that if I could reference the actual text in the MEAL column as a column header for the other table, that would work...but I don't know how.
Any ideas would be appreciated.
Bookmarks