I need to do the following lookup:
Given Name ('blah1'), return the Dept# that Name belonged to during a certain month.
Both Name and the month are known at time of lookup. In essence, I'd like to do a
VLOOKUP that also has some kind of AND function in it, passing Name as an argument
but only returning the Dept# for the line that also matches the month. Can someone
help me construct a formula to do this?
The end result is to be a table that (simplified) looks like this, where [xxxx]
represents a desired return value from the formula I need help with:
Name Jan Feb Mar
blah1 [1234] [4567] [7890]
blah2 [1111] [1111] [2222]
Lookup table on different worksheet tab:
========================================
Name Dept Jan Feb Mar (etc)
blah1 1234 1 0 0
blah1 4567 0 1 0
blah1 7890 0 0 1
blah2 1111 1 1 0
blah2 2222 0 0 1
Given Name ('blah1'), return the Dept# that Name belonged to during a certain month.
Both Name and the month are known at time of lookup. In essence, I'd like to do a
VLOOKUP that also has some kind of AND function in it, passing Name as an argument
but only returning the Dept# for the line that also matches the month. Can someone
help me construct a formula to do this?
The end result is to be a table that (simplified) looks like this, where [xxxx]
represents a desired return value from the formula I need help with:
Name Jan Feb Mar
blah1 [1234] [4567] [7890]
blah2 [1111] [1111] [2222]
Lookup table on different worksheet tab:
========================================
Name Dept Jan Feb Mar (etc)
blah1 1234 1 0 0
blah1 4567 0 1 0
blah1 7890 0 0 1
blah2 1111 1 1 0
blah2 2222 0 0 1