+ Reply to Thread
Results 1 to 5 of 5

Retrive Data

  1. #1
    Registered User
    Join Date
    10-26-2007
    Posts
    2

    Retrive Data

    I have a workbook that contains a formatted financial statement that we have for input of a paper copy balance sheet we receive from the accountants to calculate our FAS 109 provision. I want to receive it as a text file and import into another tab in the workbook. However, my issue is I need to search the imported spreadsheet for a specific text in column A and then get the amount in the cell right next to it in column B. I cannot just link the two worksheets together as the imported spreadsheet rows will not always be in the same position because if there is no acitivty during the month the account will not show up in the text file for import. Additionally, I do not think VLOOKUP will work as column A import is not in order and the text of the accounts in column A are not the same in trying to compare the names.

    I appreciate any help!

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    Are the columns always in the same position in the import?

    If so you can use INDEX & MATCH
    the formula below, in Book2 column B, says:
    INDEX(the database in columns A thru D in Book2
    use the Row number that MATCHes A1 in this (Book1)
    use the 4th column in the database

    =INDEX([Book2]Sheet1!$A:$D,MATCH(A1,[Book2]Sheet1!$A:$A,0),4)


    it will return the data from Book2 Column D in the row which matches the data in Cell A1 Book1

  3. #3
    Registered User
    Join Date
    10-26-2007
    Posts
    2

    Retrive Data

    That will not work as I said in the previous post the text will not always be the same so it cannot be matched. For example, I want to take the amounts in CASH ON HAND & ON DEPOSIT and SHORT TERM INVESTMENTS in one worksheet from column B and sum them in one account in column B in another worksheet called CASH AND CASH EQUIVALENTS.

  4. #4
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    can you post a sample of your files?

    explain what the variation in texts and file formats are and what your desired end result is

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    For CASH AND CASH EQUIVALENTS, you would need a formula something like,

    =SUMPRODUCT( ([thatbook.xls]Sheet1!$A1:$A100={"CASH ON HAND & ON DEPOSIT","SHORT TERM INVESTMENTS"}) * [thatbook.xls]Sheet1!$B1:$B100)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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