Hi all,
First post so hopefully going about this right. I've searched a bunch of the threads but can't seem to see what I'm doing wrong. Help would be appreciated.
- I have a table (Customer_Table) in cells A3:A12, with a list of customers. Each one has a corresponding tab name in the worksheet
- Next to this table, each customer is listed down the page in column H, with the date in column G (format mmm-yy)
i.e.
Column G Column H
Jan-16 customer 1
Jan-16 customer 2 ...
Feb-16 customer 1
Feb-16 customer 2 etc... for the full year
I need to lookup the customer tab (each tab is in the same layout), search for the date in column K and return a value in column L.
This is what I'm using. This returns the correct values for Jan for each customer, but as I drag it down to Feb and beyond I get a #VALUE! error
=SUMIFS(INDIRECT("'"&Customer_Table[Customer]&"'!L:L"),INDIRECT("'"&Customer_Table[Customer]&"'!K:K"),G3,INDIRECT("'"&Customer_Table[Customer]&"'!A:A"),H3)
L:L refers to the rate in each of the customer tabs
K:K is the date in each tab
A:A will have the customer name in its corresponding tab
Am I barking up the right tree here? Many Thanks!
First post so hopefully going about this right. I've searched a bunch of the threads but can't seem to see what I'm doing wrong. Help would be appreciated.
- I have a table (Customer_Table) in cells A3:A12, with a list of customers. Each one has a corresponding tab name in the worksheet
- Next to this table, each customer is listed down the page in column H, with the date in column G (format mmm-yy)
i.e.
Column G Column H
Jan-16 customer 1
Jan-16 customer 2 ...
Feb-16 customer 1
Feb-16 customer 2 etc... for the full year
I need to lookup the customer tab (each tab is in the same layout), search for the date in column K and return a value in column L.
This is what I'm using. This returns the correct values for Jan for each customer, but as I drag it down to Feb and beyond I get a #VALUE! error
=SUMIFS(INDIRECT("'"&Customer_Table[Customer]&"'!L:L"),INDIRECT("'"&Customer_Table[Customer]&"'!K:K"),G3,INDIRECT("'"&Customer_Table[Customer]&"'!A:A"),H3)
L:L refers to the rate in each of the customer tabs
K:K is the date in each tab
A:A will have the customer name in its corresponding tab
Am I barking up the right tree here? Many Thanks!