hi
I am looking for a way to have Excel check the number of decimal places for a formula.
I currently have the following formula =IF(F10 > F8, (F8-F14)*10000, (F14-F8)*10000) which calculates pips for me based on whether the trade is a buy or a sell, but just realised that not all currency pairs have the same amount of decimal places.
My broker uses 5 decimal places for pairs, but there are a handful that only use 3 decimal places and I need the calculation to reflect that. So if it is a normal 5 decimal pair, the above will work fine, but if it is only a 3 decimal pair, the formula will need to be =IF(F10 > F8, (F8-F14)*100, (F14-F8)*100)
If someone could possibly help me, that would be greatly appreciated.
regards
honkin
I am looking for a way to have Excel check the number of decimal places for a formula.
I currently have the following formula =IF(F10 > F8, (F8-F14)*10000, (F14-F8)*10000) which calculates pips for me based on whether the trade is a buy or a sell, but just realised that not all currency pairs have the same amount of decimal places.
My broker uses 5 decimal places for pairs, but there are a handful that only use 3 decimal places and I need the calculation to reflect that. So if it is a normal 5 decimal pair, the above will work fine, but if it is only a 3 decimal pair, the formula will need to be =IF(F10 > F8, (F8-F14)*100, (F14-F8)*100)
If someone could possibly help me, that would be greatly appreciated.
regards
honkin