I need your help.
CELL: B7 (68% Buy)
=IF($B7<70,"SELL"," ") but it doesn't work.
Thanks.
I need your help.
CELL: B7 (68% Buy)
=IF($B7<70,"SELL"," ") but it doesn't work.
Thanks.
Last edited by AliGW; 01-27-2020 at 02:25 AM.
Does B7 have only a number or the text "68% Buy"? Please post a sample file, so we can see what's actually in cell B7.
B7 is the text "68% Buy"
Hello tps565. Welcome to the forum.
TryFormula:Please Login or Register to view this content.
Dave
Wouldn't it make sense to separate the number and the "buy" into different cells? Because now you have a formula next to "68% Buy" that says "Sell". Very confusing.
Whoa, it works perfectly! You rock!
Now, I just tried "RIGHT" and it doesn't work like this:
=IF(--RIGHT(B4,3)="Buy","SELL","") but not work.
I appreciate your help.
Yes, you are right. Please look new attached file.
In your sample file, you expect 100% (D11) to show SELL, but your formula is looking for LESS than 70% (same for D10)?
Also, I agree totally with Teylyn regarding breaking the value away from the text. When you have text with ANY value in the same cell, that value becomes text as well, and you cannot perform math calcs directly on it any more.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Try this:
=IF(OR(--LEFT(B4,4)<70%,RIGHT(B4,4)="SELL"),"SELL","")
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however the thread title does not really convey what your request is about.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
(Note: this change is not optional. As tiy are new, I will do it for you this time.)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thank you to all for helping! I'll visit here a lot when I need your help.
Thanks again!
Tom
you can maintain your formula =IF($B7<70,"SELL"," ") and use cell format, with the cell format you only type the figures
eg, just type 64 and get the result in the same cell as (64% Buy) that is the your formula will read only the figure 64 in the cell to achieve the result (SELL)
see image and attached
Attachment 660138 Attachment 660139 Attachment 660140
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks