BillyBuckets
New Member
- Joined
- Feb 9, 2009
- Messages
- 2
I will try my best to explain this one. First, see my image below:
It's a list of lectures for med school. I am looking for an elegant formula that can do the following:
For each lecture (row), I want to find the product of column C and the number of times a particular date appears in the right columns in that particular row in columns E and beyond.
for example, say I wanted to see how many hours of lecture material I reviewed on 1/16/09. The formula should find that 1/16/09 appears in rows 5, 10, and 11 1 time each. I need it to =sum(1*C5,1*C10,1*C11). I also need this formula to be generalized, i.e., I can edit the date in the formula and it will SUM the PRODUCT of column C and the COUNT of a certain date in only the matching row.
I know how to make a really long, brute force formula (see below, using a separate function for each row), but this leads to HUGE formulas since I am dealing with dozens of rows. Is there an elegant way?
Here's a small sample of the formula I use right now...
COUNTIFS($E$2:$XFD$2,today())*$C$2+COUNTIFS($E$3:$XFD$3,today())*$C$3+COUNTIFS($E$4:$XFD$4,today())*$C$4+COUNTIFS...etc.
It's a list of lectures for med school. I am looking for an elegant formula that can do the following:
For each lecture (row), I want to find the product of column C and the number of times a particular date appears in the right columns in that particular row in columns E and beyond.
for example, say I wanted to see how many hours of lecture material I reviewed on 1/16/09. The formula should find that 1/16/09 appears in rows 5, 10, and 11 1 time each. I need it to =sum(1*C5,1*C10,1*C11). I also need this formula to be generalized, i.e., I can edit the date in the formula and it will SUM the PRODUCT of column C and the COUNT of a certain date in only the matching row.
I know how to make a really long, brute force formula (see below, using a separate function for each row), but this leads to HUGE formulas since I am dealing with dozens of rows. Is there an elegant way?
Here's a small sample of the formula I use right now...
COUNTIFS($E$2:$XFD$2,today())*$C$2+COUNTIFS($E$3:$XFD$3,today())*$C$3+COUNTIFS($E$4:$XFD$4,today())*$C$4+COUNTIFS...etc.