IF Statement to return Value

millerfam916

New Member
Joined
May 6, 2019
Messages
3
My excel workbook was built by a previous employee and I am not having any luck updating the excel formula to return the value needed. The formula is used to scan bank transaction descriptions and identify store activity. The formula below currently determines if the activity is cash or credit. However, Paymentech is not built into the formula. Can someone help me change the formula so that the data populates? The second formula pulls out the merchant id, which I will bold the merch ID in the data. Then there is a data tab in the workbook that lists the merchant Ids and their store. The column with the store values will work once I can get the Type and Merch ID to read Paymentech activity. (I changed numbers and names as it is bank activity)

Data: PAYMENTECH DEPOSIT 150508 6300294 Mistys - 0624 1020401225 6300123 R00000091003959987359

Type: =IF(E20="","",IF(E20="Y",IF(C20<>"","CASH",IF(OR(LEFT(D20,3)="AME",LEFT(D20,3)="BAN",LEFT(D20,3)="MER",LEFT(D20,3)="TRA",LEFT(D20,7)="5/3 BAN"),"CREDIT",IF(LEFT(D20,4)="EMPS","CREDIT",IF(OR(LEFT(D20,6)="STRIPE",LEFT(D20,6)="SHOPIF"),"SHOPIFY",IF(LEFT(D20,4)="TSYS","CREDIT","OTHER"))))),""))

Merch ID: =IF(F20="CREDIT",IF(LEFT(D20,3)="AME",MID(D20,36,10),IF(LEFT(D20,3)="BAN",MID(D20,FIND("TOT DEP ",D20)+15,15),IF(LEFT(D20,3)="MER",MID(D20,LEN("MERCHANT BANKCD DEPOSIT 151201 ")+1,12),IF(LEFT(D20,3)="TRA",MID(D20,34,14),IF(LEFT(D20,7)="5/3 BAN",MID(D20,FIND("SYS COMB. DEP. ",D20)+22,13),IF(LEFT(D20,4)="EMPS",MID(D20,21,12),IF(LEFT(D20,4)="TSYS",MID(D20,FIND("XXXX",D20),14),""))))))),"")
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top