+ Reply to Thread
Results 1 to 16 of 16

If text in column A matches text in column B then use data from column C

  1. #1
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Question If text in column A matches text in column B then use data from column C

    I have done several searches and tried several formulas from lookup to IF to Match etc and cant get the correct result.

    I'm attempting to edit my bank downloaded monthly statement Quickbooks IIF File in excel as text tab delimited and edit the banks generic entry names to my actual account names in Quick Books so when I import the .IIF file into Quick Books then each entry is filed in the appropriate account and doesn't create a bunch of new accounts.

    I'm working with 3 Sheets.

    Sheet1 will be the downloaded file from my bank that has generic names like "STAMPS.COM *USPOSTAG 877-782-67" in Column E
    Sheet2 will be the formulas that will rename the generic name from "STAMPS.COM *USPOSTAG 877-782-67" to "Shipping Expenses:USPS Postage Purchase"
    Sheet3 will have 2 columns. Column A will be the bank generic name "STAMPS.COM *USPOSTAG 877-782-67". Column B will be the Quick Books account name "Shipping Expenses:USPS Postage Purchase".

    My fail attempts at the formula looks like this:

    =INDEX(Sheet1!E:E,MATCH(Sheet3!A:A,Sheet3!B:B,0))
    =IFERROR(VLOOKUP(Sheet1!E:E,Sheet3!A:A,Sheet3!B:B),"(NO MATCH)")
    =IF(Sheet1!E:E=Sheet3!A:A,Sheet3!B:B)


    Once all entries in Sheet1 have been renamed on Sheet2 then I will copy/paste values in Sheet2 into a new sheet4, then save as tab delimited and then rename the .txt file to .IIF and import to Quickbooks.

    Thank you in advance !!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: If text in column A matches text in column B then use data from column C

    Can you post a sample workbook?

    I don't think you understand how to use VLOOKUP, INDEX or IF formulas judging by your failed attempts.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    I don't want to post a sample workbook as the document contains financial data for my business.

    Basically I'm looking for a formula that will search for data in column E on sheet1 and match it with column A on sheet3, when it finds the match then it will display in column E in sheet2 the data that is entered in column B on sheet3.

    Sheet1 is the actual downloaded bank statement in tab delimited form
    Sheet2 is the formula sheet.
    Sheet3 is my "Key" It will have a list of about 200 different bank default transaction names in column A and next to it in the same row in column B it will have the value that I want displayed (the name of the actual account/category in Quick Books).

    If you are unable to help based off this information then please let me know and I'll just give up and manually copy/paste everything. I was just looking for a method to save me time every month.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    A small file (less than 20 rows) with non-confidential data is all that is required.

  5. #5
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    File is attached
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    Also to add...

    If the formula does not find a match, then place value "Other Expenses"

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    In E4

    =IFERROR(VLOOKUP(Sheet1!E4,Sheet3!$A$2:$B$11,2,0),"Other Expenses")

    in E5

    =IFERROR(VLOOKUP(Sheet1!E5heet3!$A$2:$B$11,2,0),"Other Expenses")

    Select E4 & E5 and copy/paste to your other "pairs"

    OR

    in E1 and copy down

    =IF(Sheet1!E1="","",IF(Sheet1!E1="ACCNT","ACCNT",IFERROR(VLOOKUP(Sheet1!E1,Sheet3!$A$2:$B$100,2,0),"Other Expenses")))

  8. #8
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    You sir are AMAZING !!!

    THANK YOU THANK YOU THANK YOU !!!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    Thank for the feedback and rep.

    Could you please mark thread as solved ("Thread Tools" at top of first post).

  10. #10
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    After going over everything I'm noticing that a few of the bank entries all start with the same first 4 letter but then have random letters after it (there will be 26 of these every year, it appear they will never repeat the same entry). These are all supposed to go in the same Quick Books Account. Is there a way to do this or no?

    For example:
    Bank Enties
    AMZNIOPMSKOEL82634
    AMZNNEMSKWI8104022
    AMZNRNJLOO26739420
    AMZNIINSWN88293421

    All of these should go into Quick Books Account: "Amazon Merchant Account"

    For example:
    PAYPAL INST XFER PAPE
    PAYPAL *PAYMENTPRO 402-935-7733
    PAYPAL INST XFER STEA
    PAYPAL INST XFER EXPR
    PAYPAL INST XFER RUMB
    PAYPAL INST XFER DNH*

    All of these should go in "Paypal Merchant Account"
    Last edited by kemble; 06-08-2016 at 01:34 PM.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    You have an "Amazon Marketplace Account" which also starts with AMZN: is this ("Amazon Merchant Account" ) a different a/c? If so, how do distinguish between the two?

  12. #12
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    im sorry, I meant "Amazon Marketplace Account" not Amazon Merchant Account

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    Assuming it is one Amazon a/c then ...


    =IF(Sheet1!E1="","",IF(Sheet1!E1="ACCNT","ACCNT",IF(LEFT(Sheet1!E1,4)="AMZN","Amazon Marketplace Account",IFERROR(VLOOKUP(Sheet1!E1,Sheet3!$A$2:$B$100,2,0),"Other Expenses"))))

    Hopefully there aren't too many more "anomalies".

  14. #14
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    So far, Amazon's bi-weekly deposits (26 a year) do this, where every deposit starts with the same 4 letters "AMZN" and then random 10 letters/numbers after it.

    and PayPal Instant Transfers do this as well. A PayPal instant transfer happens when I purchase something with my PayPal account and there is not enough money in the PayPal account so it pulls the rest of the funds from my attached bank account which appears this follows the same system, where each transfer starts out with "PAYPAL INST XFER " and then 4 random letters. This could happen 100+ times a year for all I know.

    I will attempt to follow your last formula and see if I can add PayPal to it :P

  15. #15
    Registered User
    Join Date
    12-08-2015
    Location
    colorado
    MS-Off Ver
    2007
    Posts
    24

    Re: If text in column A matches text in column B then use data from column C

    =IF(Sheet1!E1="","",IF(Sheet1!E1="ACCNT","ACCNT",IF(LEFT(Sheet1!E1,4)="AMZN","Amazon Merchant Account",IF(LEFT(Sheet1!E1,10)="PAYPAL ","PAYPAL Merchant Account",IFERROR(VLOOKUP(Sheet1!E1,Sheet3!$A$2:$B$300,2,0),"Other Expenses")))))

    Works !!

    Thanks again !!

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,258

    Re: If text in column A matches text in column B then use data from column C

    Just do a similar test:

    IF(LEFT(Sheet1!E1,6)="PAYPAL","Paypal account......",

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 10-30-2015, 07:59 AM
  2. [SOLVED] Fill a cell in Column B based on the text in Column A using a table on sheet 2
    By lbrasfie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2013, 01:56 PM
  3. [SOLVED] If cell value in one column matches text, fill cell value in different column on same row
    By zigojacko in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-17-2013, 05:21 AM
  4. Replies: 19
    Last Post: 04-10-2013, 08:30 AM
  5. [SOLVED] Finding the last used row of a column, using this value to place text down another column
    By bean29 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2013, 09:20 AM
  6. [SOLVED] Counting Text in one column that matches another column
    By Blackjack12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 04:13 PM
  7. Replies: 5
    Last Post: 03-06-2008, 01:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1