Muliple formula conditions

D

DTrader

I am a day trader doing trading system research.

I can't get a formula to work out on both sides for a positive result

=IF(OR(D2,1),(H2-E2),IF(OR(D2,2),(E2-H2)))

I would also like 'D' to calculate based on it's letter entry, B/S
=IF(OR(D2,B),(H2-E2),IF(OR(D2,S),(E2-H2)))

D E F G H
I
B/S Entry Drawdown Ticks Hi/Lo Ticks
S 1357 1357.75 0.75 1355 -2.00
B 1354 1357 3.00 1358 4.00
 
M

Max

DTrader said:
=IF(I2<6,-8)*IF(I2=6,-4,)*IF(I2=7,-4)*IF(I2=8,"BE")

Try: =VLOOKUP(I2,{0,-8;6,-4;8,"BE"},2)

Suggest that you post formula queries in .worksheet.functions,
which is a more appropriate group
Keep it to one specific query per new post
Put in as many (new) posts as you may have specific queries (don't continue
asking new queries in the same thread after your original query has been
answered)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
 
D

DTrader

THANK YOU MAX, YOU & JBeaucaire MADE MY DAY!

I CAN RESEARCH TO MY HEARTS CONTENT!
 
D

DTrader

this formula results with a -8 instead of 0 and invalidates the column total
any help?

=VLOOKUP(I7,{0,-8;6,-4;8,"BE"},2)
 
M

Max

What is the value in I7 ? And what should that value return ?

The vlookup merely embeds the assumption from your earlier criteria:
IF(I2<6,-8
where it was assumed that values in col I >= 0 and < 6
should return -8

If you actually want I7 to return zero if it is zero or blank,
use this: =IF(I7=0,0,VLOOKUP(I7,{0,-8;6,-4;8,"BE"},2))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
 
D

DTrader

THANKS A MILLION
--
DTrader


Max said:
What is the value in I7 ? And what should that value return ?

The vlookup merely embeds the assumption from your earlier criteria:
IF(I2<6,-8
where it was assumed that values in col I >= 0 and < 6
should return -8

If you actually want I7 to return zero if it is zero or blank,
use this: =IF(I7=0,0,VLOOKUP(I7,{0,-8;6,-4;8,"BE"},2))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top