Forum Discussion
Budgen
Nov 02, 2022Copper Contributor
IF to check multiple cells and formula for each depending on result
Hi all, So the use for this is a trade journal. You take a trade/position, it has 3 take profits which close a % of the trade. The cell I'm trying to create is a Stop loss. How big the position c...
- Nov 02, 2022
Here's the formula:
=IF(I2="",O2*1,IF(K2="",O2*0.8,IF(M2="",O2*0.4,O2*0.2)))
You might also see it written like:
=IF(ISBLANK(I2),O2*1,IF(ISBLANK(K2),O2*0.8,IF(ISBLANK(M2),O2*0.4,O2*0.2)))
Budgen
Nov 02, 2022Copper Contributor
Brilliant break down I appreciate you taking the time, I didn't even know that existed. Bear with me having such little understanding.
That's correct, * all by the value in cell O2.
That's correct, * all by the value in cell O2.
Patrick2788
Nov 02, 2022Silver Contributor
Here's the formula:
=IF(I2="",O2*1,IF(K2="",O2*0.8,IF(M2="",O2*0.4,O2*0.2)))
You might also see it written like:
=IF(ISBLANK(I2),O2*1,IF(ISBLANK(K2),O2*0.8,IF(ISBLANK(M2),O2*0.4,O2*0.2)))
- BudgenNov 02, 2022Copper ContributorThat's spot on. Thanks for that Patrick, much appreciated!
- Patrick2788Nov 02, 2022Silver ContributorYou're welcome!