I have the following formula that returns data but is returning the wrong data. I can't seem to see what is wrong with it. Any help is appreciated.
=IF(ISERROR(INDEX(ALPSTable,MATCH(1,IF($C$11=ALPDates,IF($E$2=ALPSVNUM,1)),0),3)),0,INDEX(ALPSTable,MATCH(1,IF($C$11=ALPDates,IF($E$2=ALPSVNUM,1)),0),3))
In this formula $c$11 is a date (11/1/2016) and $E$2 is a vlookup formula that returns a vendor number (e.g., 0611121) based on a name that is selected from a drop down list is cell a2. The data that gets returned seems to be from a close vendor number but not the correct one. For example if I select vendor "Fred's Bank" which has the vendor number 0611121 the data that gets returned is for vendor # 0611125. Any ideas as to what is wrong with this?
=IF(ISERROR(INDEX(ALPSTable,MATCH(1,IF($C$11=ALPDates,IF($E$2=ALPSVNUM,1)),0),3)),0,INDEX(ALPSTable,MATCH(1,IF($C$11=ALPDates,IF($E$2=ALPSVNUM,1)),0),3))
In this formula $c$11 is a date (11/1/2016) and $E$2 is a vlookup formula that returns a vendor number (e.g., 0611121) based on a name that is selected from a drop down list is cell a2. The data that gets returned seems to be from a close vendor number but not the correct one. For example if I select vendor "Fred's Bank" which has the vendor number 0611121 the data that gets returned is for vendor # 0611125. Any ideas as to what is wrong with this?