Traveltime
New Member
- Joined
- May 21, 2018
- Messages
- 17
I hope someone can assist with this, it's probably fairly basic. I'm a beginner with formulas so any help is very much appreciated.
This is what I'm trying to accomplish:
If the text in AN equals one of the text values in a separate column, then I want to enter the cell to equal the text in cell AN, if not I want the cell to equal the text in cell C.
This formula works for the true statement, but I receive "#N/A" for the false statement.
=IF(AN2=(Vlookup(AN2,F2:F32,1,false)),AN2,C2)
[TABLE="width: 149"]
<colgroup><col width="199" style="width: 149pt; mso-width-source: userset; mso-width-alt: 7082;"> <tbody>[TR]
[TD="class: xl66, width: 199, bgcolor: #D9D9D9"]Array Table:
Sub Expense Type-draft (Keep)[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airport Fee [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Parking [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Other Ground T [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Baggage Fees [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airfare [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rail [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Taxi/Car Servi [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tolls [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airfare[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel Tax [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel Deposit [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Car Rental [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fuel [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Miscellaneous [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tips [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Expense Distribution[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Transport[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Transportation[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Passengers[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Immunizations/ [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Meals - Overni [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Meals - Same D [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Personal - Cor [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Travel Suspense[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Entertainment [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]PA Vouchers[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]NC Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]PA Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]AZ Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]AZ Vouchers[/TD]
[/TR]
</tbody>[/TABLE]
This is what I'm trying to accomplish:
If the text in AN equals one of the text values in a separate column, then I want to enter the cell to equal the text in cell AN, if not I want the cell to equal the text in cell C.
This formula works for the true statement, but I receive "#N/A" for the false statement.
=IF(AN2=(Vlookup(AN2,F2:F32,1,false)),AN2,C2)
[TABLE="width: 149"]
<colgroup><col width="199" style="width: 149pt; mso-width-source: userset; mso-width-alt: 7082;"> <tbody>[TR]
[TD="class: xl66, width: 199, bgcolor: #D9D9D9"]Array Table:
Sub Expense Type-draft (Keep)[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airport Fee [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Parking [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Other Ground T [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Baggage Fees [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airfare [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rail [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Taxi/Car Servi [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tolls [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Airfare[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel Tax [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Hotel Deposit [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Car Rental [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Fuel [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Miscellaneous [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Tips [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Expense Distribution[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Transport[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Transportation[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Passengers[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Immunizations/ [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Meals - Overni [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Meals - Same D [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Personal - Cor [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Travel Suspense[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Entertainment [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]PA Vouchers[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]NC Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]PA Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]AZ Catering[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]AZ Vouchers[/TD]
[/TR]
</tbody>[/TABLE]