+ Reply to Thread
Results 1 to 3 of 3

Change calculation based on variable text in different cell

  1. #1
    Registered User
    Join Date
    07-25-2010
    Location
    Blue Springs, MO
    MS-Off Ver
    Excel 2007
    Posts
    22

    Change calculation based on variable text in different cell

    I need to perform a different calculation based on the text "AB" being contained in a cell.
    Simplified example: If "Cat" is in A1 then the formula in D1 would be =B1*C1
    If A1 contains "AB" nested in a word the formula used would be =(B1/C1)*3.

    I've seen how to do this if the AB was always in the same position but in this case the text string could be "Crab" or "Absolute" or "Alabama".

    Is this even possible without using lookup and listing all possible words?

    Thanks
    Last edited by tradersteve; 10-10-2010 at 03:21 PM.

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

    Re: Change calculation based on variable text in different cell

    You can use SEARCH

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-25-2010
    Location
    Blue Springs, MO
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Change calculation based on variable text in different cell

    PERFECT! Thanks!

+ 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