Thanks, Blake! It currently returns #N/A for those errors, so could I use IFNA in combination with the Left formula that Gerald mentioned?
yes you can always use error handling with regular formulas.
So the logic would sound like this in your head "If there is an error, proceed with this formula, if not proceed with this other formula"
Code:
=IFERROR(IF(LEFT(A1,14)="Carrier Billed",VLOOKUP("Carrier Billed",B1:C2,2,FALSE),VLOOKUP(A1,B1:C2,2,FALSE)),"error code")
so this code says if there is an error with Gerald's formula return "error code"
where you can replace error code with your formula you were using before.
I also want to elaborate:
with your posted examples you could give is a sample size of say 5 lines
as well the NAMES of the locations for the data.
so an example of all of all the different components would be nice
example of an example:
here is an example of the report mentioned in post 1 which is named "ReportSheet"
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Error Messages[/TD]
[TD]Invoice #[/TD]
[TD]Error Team[/TD]
[TD]Client[/TD]
[TD]Account Number[/TD]
[/TR]
[TR]
[TD]Carrier Billed 127[/TD]
[TD]101145[/TD]
[TD]#N/A[/TD]
[TD]Google[/TD]
[TD]54894651[/TD]
[/TR]
[TR]
[TD]127[/TD]
[TD]101146[/TD]
[TD]A[/TD]
[TD]Dexter[/TD]
[TD]11225461[/TD]
[/TR]
[TR]
[TD]545[/TD]
[TD]101147[/TD]
[TD]B[/TD]
[TD]Google[/TD]
[TD]54894651[/TD]
[/TR]
[TR]
[TD]Carrier Billed E11[/TD]
[TD]101148[/TD]
[TD]#N/A[/TD]
[TD]Dexter[/TD]
[TD]11225461[/TD]
[/TR]
</tbody>[/TABLE]
here is an example of the error table on sheet "Table1":
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Error Code[/TD]
[TD]Error Team[/TD]
[TD]Notes[/TD]
[/TR]
[TR]
[TD]127[/TD]
[TD]A[/TD]
[TD]Hi[/TD]
[/TR]
[TR]
[TD]545[/TD]
[TD]B[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
and here is what i want to happen when i vlookup in column C for error team
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Error Messages[/TD]
[TD]Invoice #[/TD]
[TD]Error Team[/TD]
[TD]Client[/TD]
[TD]Account Number[/TD]
[/TR]
[TR]
[TD]Carrier Billed 127[/TD]
[TD]101145[/TD]
[TD]A[/TD]
[TD]Google[/TD]
[TD]54894651[/TD]
[/TR]
[TR]
[TD]127[/TD]
[TD]101146[/TD]
[TD]A[/TD]
[TD]Dexter[/TD]
[TD]11225461[/TD]
[/TR]
[TR]
[TD]545[/TD]
[TD]101147[/TD]
[TD]B[/TD]
[TD]Google[/TD]
[TD]54894651[/TD]
[/TR]
[TR]
[TD]Carrier Billed E11[/TD]
[TD]101148[/TD]
[TD]D[/TD]
[TD]Dexter[/TD]
[TD]11225461[/TD]
[/TR]
</tbody>[/TABLE]
my current formula is
Code:
=vlookup(A2,Table1!A:B,2,false)