i want to combine the two formula into one formula... this formula calculate forex pips, but there different pairs with different decimal points,

=(M8-J8)*LOOKUP(I8,{"LONG","SHORT"},{1,-1})*1000
=(M8-J8)*LOOKUP(I8,{"LONG","SHORT"},{1,-1})*100

for an example i want to add currency pair name's( EURUSD, GBPUSD) to this formula so when i write the pair name this formula works for that currency pair
=(M8-J8)*LOOKUP(I8,{"LONG","SHORT"},{1,-1})*1000

and when i wright Yen pairs (USDJPY, GBPJPY) i want this formula to work
=(M8-J8)*LOOKUP(I8,{"LONG","SHORT"},{1,-1})*100

the point is i want the answer on the same column
more details attached

Sorry for off-topic interjection:

Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

Thanks again for all your hard work here!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1