+ Reply to Thread
Results 1 to 4 of 4

Formula using text contained in a cell as criteria

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Formula using text contained in a cell as criteria

    Hi everyone,

    I have 2 interesting sheets with a couple thousand rows each.
    Columns in DOCUMENT1 going like this:
    (1)Actual Costs (2)Reference #
    /Formula XXX000000


    Columns in DOCUMENT2:
    (3)Actual Costs (4)Description
    $$(What I need) Description (Including a reference number somewhere XXX000000)

    I need a formula that will seek the reference number (2), letters and numbers in DOCUMENT2's Description row(4) and bring me back the adjacent actual cost(3).

    The simple formula I have built so far, and which is causing me some problems is the following:

    =SUMIF('C:\FILEPATH[FILENAME]WORKSHEET'!$A:$A,T(B6),'FILEPATH[FILENAME]WORKSHEET'!$B:$B)

    It works fine, except for the CRITERIA, which I can't seem to get to work to find something "CONTAINED" rather than exact.

    Anyone who could give me a hand, this would be very appreciated =)


    <config>Windows XP / Internet Explorer 7.0</config>

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula using text contained in a cell as criteria

    You could try encasing your T call result within wildcards

    Please Login or Register  to view this content.
    As you no doubt know SUMIF won't work if the target file is closed.

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formula using text contained in a cell as criteria

    Thanks, actually I didn't know how to add those wildcards on. I tried without the & and I was putting the " at the wrong places (beginning and end)

    I've never used the & symbol, what exactly is it's purpose?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula using text contained in a cell as criteria

    Ampersand is simply a means by which we can concatenate values into a single string (ie "a"&"b" -> "ab")

+ 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