Forum Discussion

Cody_Lees's avatar
Cody_Lees
Copper Contributor
Jul 10, 2021

Words to function

Hello could you please help me with an excel question about how to take a cell with a word and make that word in the cell an action. Example the word buy or sell make it a plus or a subtraction so I can figure out the book value of my holdings?

6 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    Cody_Lees You haven't really explained how your data / transactions table looks like, but perhaps the formula shown in the picture below is something you could use. If not, come back here and upload an example of your file (the real structure with some fake data).

     

    Since you tagged your post "Office365", it should work for you. It merely demonstrates a way to interpret a numbers in column C as positives or negatives, based on a word in column B.

    • Cody_Lees's avatar
      Cody_Lees
      Copper Contributor

      Riny_van_Eekelen 

      Here is the test data. Would I have to make a different column for the equation or could I over lay the  function to transaction Colum with out taking out the words?

       

       

      • Riny_van_Eekelen's avatar
        Riny_van_Eekelen
        Platinum Contributor

        Cody_Lees You uploaded a picture, not a file. What do you mean by "could I over lay the  function to transaction column with out taking out the words?"

         

        You original question was "how to take a cell with a word and make that word in the cell an action?". Not really sure what you want.

Resources