+ Reply to Thread
Results 1 to 5 of 5

formula to find text and use the value in its adjacent cell???

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    Guam
    MS-Off Ver
    Excel 2003
    Posts
    3

    formula to find text and use the value in its adjacent cell???

    I need help figuring out a formula to find a specific text in a worksheet that has various text and numbers. For example, I will need to find the word USFIT and the amount in the cell to its right, and place that in a cell in a different column. Is there such a formula? Please help. Thanks.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: formula to find text and use the value in its adjacent cell???

    its_jess_meeh,

    Welcome to the forum!
    It sounds like what you're looking for is the Vlookup() formula.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-06-2011
    Location
    Guam
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: formula to find text and use the value in its adjacent cell???

    I am not great at formulas, but I did try the Vlookup formula and it is not quite what I need. I would like excel to find any instances where the word USFIT is found, then to take the amount to its right to use in another formula...to be subtracted with another cell amount. Here is an example below. Please advise. Thanks.

    A B C D
    1 Earnings 404.00 16.16 (I want this formula to take the amount in B2 and subtract from C1, only if there is a # in B2)
    2 USFIT 5.86 (There will be some instances where there is no USFIT, and there are also a lot more text and- numbers included on this worksheet)

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: formula to find text and use the value in its adjacent cell???

    Hi

    assuming that your example data is in the range A1:B3, then

    D2: =IF(AND(SEARCH("USFIT",A2),LEN(B2)>0),C1-B2,"")

    If this doesn't really reflect your situation, then create an example spreadsheet, and give the expected result(s) for any relevant examples.

    rylo

  5. #5
    Registered User
    Join Date
    12-06-2011
    Location
    Guam
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: formula to find text and use the value in its adjacent cell???

    Thanks for your help, that worked...You are awesome.

+ 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