Apr 30 2024 12:33 AM
Hello. Is it possible to make a "-" sign in front of all the numbers that says sell, instead of inserting it manually for all the numbers?
Apr 30 2024 01:47 AM
You can do this with Conditional Formatting.
=A2="SELL"
"-"0
Now the values in column B will be displayed with a minus sign right in front of them if the corresponding cell in column A contains the word "SELL".
Attached is an inserted file with the steps and formulas described above.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
Apr 30 2024 02:38 AM
Don't forget that @NikolinoDE 's solution will only change the appearance of the table, not its actual content. To use the quantities within further formulas you would need to define the quantity array to be
quantity
= IF(buySell="sell", 1, -1) * unsigned