#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Formula problem

OK Folks, Monday morning and my brain is not functioning properly so I am
turning to you guys for help.

I have a table of exchange rates that looks something like this

EUR USD CHF
30/11/2008 1.2108 1.5396 1.8709
31/12/2008


The whole table has been named dtiExchangeRates.

Elsewhere I have date that looks like this

Joe Blogs EUR 1000 20/11/2008
Eric Sykes CHF 3000 25/11/2008

I want to put a formula in the fifth column which will calculate the
sterling equivalent of the amount in the third column by reference to the
appropriate currency. Thus the result in the fifth column would be 825.90
for Joe Blogs and 1,603.51 for Eric Sykes.

I assume that some kind of Index/Match combination would do it but my head
is hurting trying to figure it out. Any help would be much appreciated.

Many thanks in advance,

Andrew



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Formula problem

yr assumption is correct

but in my opinion to achieve that you would also need a GBP exchange
rate which was not provided

presume it is in in the 5th column of 1st table

then try (yr clients' data in cols A through D, exchange rates cols H
and farther):

=C1*OFFSET($H$1,MATCH(D1,H2:H10,),MATCH("GBP",I1:L 1,))

should work

HIH
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Formula problem

Thanks Jarek, worked perfectly.
"Jarek Kujawa" wrote in message
...
yr assumption is correct

but in my opinion to achieve that you would also need a GBP exchange
rate which was not provided

presume it is in in the 5th column of 1st table

then try (yr clients' data in cols A through D, exchange rates cols H
and farther):

=C1*OFFSET($H$1,MATCH(D1,H2:H10,),MATCH("GBP",I1:L 1,))

should work

HIH



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Formula problem

Hi Andrew

I created the table of currencies on Sheet2 A1:D3

I placed the other values on Sheet1 starting at A1, and in E1 used the
following
=C1/INDEX(Sheet2!$A$1:$D$3,MATCH($D1,Sheet2!$A$2:$A$3,-1),
MATCH($B1,Sheet2!$A$1:$D$1,0))
and copied down

I think it makes it easier to follow if you create some named ranges
InsertNameDefine
Name Exchange
Refers to =Sheet2!$A$1:INDEX(Sheet2!$D:$D,COUNTA(Sheet2!$A:$ A)+1)
Name Dates
Refers to =Sheet2!$A$2:INDEX(Sheet2!$A:$A,COUNTA(Sheet2!$A:$ A)+1)
Name Currency
Refers to =Sheet2!$A$1:INDEX(Sheet2!$1:$1,COUNTA(Sheet2!$1:$ 1)+1)

These are dynamic ranges so they will grow as you add more values for other
dates, or if you add other columns for more currencies. (They all assume
that A1 in the Exchange table will be blank - hence the +1's)

The formula then becomes much easier to read and manage
=C1/INDEX(Exchange,MATCH(D1,Dates,-1),MATCH(B1,Currency,0))


--
Regards
Roger Govier

"Andrew Mackenzie" wrote in message
...
OK Folks, Monday morning and my brain is not functioning properly so I am
turning to you guys for help.

I have a table of exchange rates that looks something like this

EUR USD CHF
30/11/2008 1.2108 1.5396 1.8709
31/12/2008


The whole table has been named dtiExchangeRates.

Elsewhere I have date that looks like this

Joe Blogs EUR 1000 20/11/2008
Eric Sykes CHF 3000 25/11/2008

I want to put a formula in the fifth column which will calculate the
sterling equivalent of the amount in the third column by reference to the
appropriate currency. Thus the result in the fifth column would be 825.90
for Joe Blogs and 1,603.51 for Eric Sykes.

I assume that some kind of Index/Match combination would do it but my head
is hurting trying to figure it out. Any help would be much appreciated.

Many thanks in advance,

Andrew



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Problem Jason[_12_] Excel Discussion (Misc queries) 6 March 22nd 08 12:56 AM
Problem with a Formula sferguson Excel Worksheet Functions 3 March 5th 08 03:46 AM
Formula Problem Excellerated Excel Discussion (Misc queries) 1 August 24th 07 07:50 PM
Formula problem Rickhotblue Excel Discussion (Misc queries) 2 February 16th 07 02:53 AM
Formula problem Dave Excel Discussion (Misc queries) 3 January 30th 07 11:58 PM


All times are GMT +1. The time now is 05:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"