=IFERROR(IF(AND('Transaction Summary Report'!G1829="ACTIVE",'Transaction Summary Report'!C1829=$B$2),VLOOKUP('Transaction Summary Report'!A1829,'LB Account Map'!A:B,2,0),IFERROR(IF(AND('Transaction Summary Report'!G1829="ACTIVE",'Transaction Summary Report'!C1829=$B$2),VLOOKUP('Transaction Summary Report'!B1829,'LB Account Map'!A:B,2,0),""),"")),"")
Need the ands, then to lookup A1829 or if in the lookup A1829 cannot be found, to lookup B1829. I've switched around A1829 to lookup in the first statement, then B1829 to look up first. Whichever lookup is in the first section of the if(and(lookup, is what is returned. Broke these up in separate parts and was able to return the proper value using the if(and(lookup to A1829, then separately B1829 and works fine. Not really familiar with other formulas other than iferror, if, and, and vlookup. Saw a post somewhere for switch, but haven't explored that yet.
Need the ands, then to lookup A1829 or if in the lookup A1829 cannot be found, to lookup B1829. I've switched around A1829 to lookup in the first statement, then B1829 to look up first. Whichever lookup is in the first section of the if(and(lookup, is what is returned. Broke these up in separate parts and was able to return the proper value using the if(and(lookup to A1829, then separately B1829 and works fine. Not really familiar with other formulas other than iferror, if, and, and vlookup. Saw a post somewhere for switch, but haven't explored that yet.