tinderbox22
Board Regular
- Joined
- Mar 9, 2010
- Messages
- 56
- Office Version
- 365
- Platform
- Windows
Hello.
I'm attempting to do a multi-criteria lookup with data that sits in two different tables. I've attempted both an INDEX and a SUMPRODUCT option and can't seem to get the syntax right.
In basic terms, info looks like this:
TABLE 1 - MEDIA VEHICLES (C5:D8):
C5: TV
C6: CABLE
C7: SPONSORSHIP1
C8: SPONSORSHIP2
In D5:D8, I enter either 'yes' or 'no.'
TABLE 2 - DATA (F4:J16)
column F contains Months Jan through Dec, starting with F5 and down to F16
columns G through J contain the name of the medium listed in C5:C8: G4 is TV, H4 is CABLE, I4 is SPONSORSHIP1, and J4 is SPONSORSHIP2
in G5:J16 are numbers that need to be aggregated by a multi-criteria lookup.
So, I'm looking to create a new table where cells B2:B13 look up values based on the month and whether or not there is a "yes" listed in the media section.
My new table will look like this:
A2:A13 = months
B2:B13 = totals
How do I get the INDEX to read two tables like this? In other words, I'm struggling with, if, for example, any cell in D5:D8 contain a 'yes,' then match it to the cells in G4:J4 and return the data in those columns. If a cell in D5:D8 contain a 'no,' then don't read that corresponding column in G4:J4.
Let me know if this does not make sense.
Thank you.
I'm attempting to do a multi-criteria lookup with data that sits in two different tables. I've attempted both an INDEX and a SUMPRODUCT option and can't seem to get the syntax right.
In basic terms, info looks like this:
TABLE 1 - MEDIA VEHICLES (C5:D8):
C5: TV
C6: CABLE
C7: SPONSORSHIP1
C8: SPONSORSHIP2
In D5:D8, I enter either 'yes' or 'no.'
TABLE 2 - DATA (F4:J16)
column F contains Months Jan through Dec, starting with F5 and down to F16
columns G through J contain the name of the medium listed in C5:C8: G4 is TV, H4 is CABLE, I4 is SPONSORSHIP1, and J4 is SPONSORSHIP2
in G5:J16 are numbers that need to be aggregated by a multi-criteria lookup.
So, I'm looking to create a new table where cells B2:B13 look up values based on the month and whether or not there is a "yes" listed in the media section.
My new table will look like this:
A2:A13 = months
B2:B13 = totals
How do I get the INDEX to read two tables like this? In other words, I'm struggling with, if, for example, any cell in D5:D8 contain a 'yes,' then match it to the cells in G4:J4 and return the data in those columns. If a cell in D5:D8 contain a 'no,' then don't read that corresponding column in G4:J4.
Let me know if this does not make sense.
Thank you.