I have a variable (name) in one worksheet and I want to look it up from another worksheet and sum all values against this variable for a range of months (again variable).
I want the user to select the "name" in a cell and specify the months in another set of cells i.e. "Month from" and "Month to" and I want a formula that will look for the name in a list and sum the values corresponding to all the months including the "Month from" and "Month to". The added difficulty is that the name can have multiple entries in the list and hence I have to use SUMIF.
I have tried a combination of SUMIF, OFFSET, MATCH, HLOOKUP funtions, but I am strugglingas the sumif funtion is adding only the values in one column and not in multiple columns and my sum range is a dynamic range depending on the user selection.
Would be grateful for some help. Thanks!!
Bookmarks