+ Reply to Thread
Results 1 to 6 of 6

Excel to find a word

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Excel to find a word

    Hi,

    I have data exported from a database, and each value doesn't necessarily fall in the same cell everytime. I was wondering if I can make excel can lookup certain keywords and take the values in some columns within that row.
    For example:
    If I have this table

    A B
    Cash 6000
    Fixed Assets 10000
    Securities 8000

    And I would like whenever "Fixed Assets" appears (for example), to take the corresponding amount in column B. Fixed assets doesn't have to necessarily be in A2, it can be under or above.

    Also, I would like to know if I can have a fixed excel file that imports those values everytime I export the original file.

    Thanks in advance

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel to find a word

    Hi and welcome to the forum.

    If i understand well your request, then in a cell(let's say F1) type the word that you are looking for(or create a validation list).

    Then use this.

    =INDEX($B$1:$B$50000;MATCH($F$1;$A$1:$A$50000;0))

    Change the semi colons in my formula, with comma, if you have to do it.

    Is this what are you looking for?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-01-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel to find a word

    Yes. That's perfect.
    Thank you very much

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel to find a word

    You are welcome!

    Pls, mark your Thread, as Solved.

  5. #5
    Registered User
    Join Date
    05-01-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel to find a word

    Ok, I will :D
    Another question though:
    If the word is depicted more than once. For example the word I typed in F1 is shown in B2, B3, and B10. How can I add all the corresponding values together? (Ofcourse without necessarily knowing that the word is found in B2, B3 or B10)
    Thank you

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel to find a word

    Hi

    This is something different.

    One way to do this, is using SUMPRODUCT function.

    Something, like this.


    =
    Please Login or Register  to view this content.
    Take a look to the example,pls.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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