Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Vlookup and if formula

EUR GBP USD
Jan-09 1.1205 1.0000 1.4500
Feb-09 1.1261 1.0000 1.4573
Mar-09 1.1317 1.0000 1.4645
Apr-09 1.1374 1.0000 1.4719
May-09 1.1431 1.0000 1.4792
Jun-09 1.1488 1.0000 1.4866
Jul-09 1.1545 1.0000 1.4940
Aug-09 1.1603 1.0000 1.5015
Sep-09 1.1661 1.0000 1.5090
Oct-09 1.1719 1.0000 1.5166
Nov-09 1.1778 1.0000 1.5242
Dec-09 1.1837 1.0000 1.5318

I need the formula to return a correct value based on month and currency.

I have came up with this

=IF(B28=B$1,VLOOKUP(A28,A$2:E$25,2,0),IF(B28=C$1,V LOOKUP(A28,A$2:E$25,3,0),IF(B28=D$1,VLOOKUP(A28,A$ 2:E$25,4,0),0)))

Is it possible to make it simpler, especially when i need to add more
currencies and months to it?

Thanks

Edwin

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Vlookup and if formula

Hi,

=index($B$2:$E$25,Match(B28,$B$1:$D$1,0),Match(A28 ,$A$2:$A$25,0))

"edwin" wrote:

EUR GBP USD
Jan-09 1.1205 1.0000 1.4500
Feb-09 1.1261 1.0000 1.4573
Mar-09 1.1317 1.0000 1.4645
Apr-09 1.1374 1.0000 1.4719
May-09 1.1431 1.0000 1.4792
Jun-09 1.1488 1.0000 1.4866
Jul-09 1.1545 1.0000 1.4940
Aug-09 1.1603 1.0000 1.5015
Sep-09 1.1661 1.0000 1.5090
Oct-09 1.1719 1.0000 1.5166
Nov-09 1.1778 1.0000 1.5242
Dec-09 1.1837 1.0000 1.5318

I need the formula to return a correct value based on month and currency.

I have came up with this

=IF(B28=B$1,VLOOKUP(A28,A$2:E$25,2,0),IF(B28=C$1,V LOOKUP(A28,A$2:E$25,3,0),IF(B28=D$1,VLOOKUP(A28,A$ 2:E$25,4,0),0)))

Is it possible to make it simpler, especially when i need to add more
currencies and months to it?

Thanks

Edwin

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Vlookup and if formula

Using VLOOKUP()

=VLOOKUP(A28,A2:D25,MATCH(B28,A1:D1,0),0)

--
Jacob (MVP - Excel)


"edwin" wrote:

EUR GBP USD
Jan-09 1.1205 1.0000 1.4500
Feb-09 1.1261 1.0000 1.4573
Mar-09 1.1317 1.0000 1.4645
Apr-09 1.1374 1.0000 1.4719
May-09 1.1431 1.0000 1.4792
Jun-09 1.1488 1.0000 1.4866
Jul-09 1.1545 1.0000 1.4940
Aug-09 1.1603 1.0000 1.5015
Sep-09 1.1661 1.0000 1.5090
Oct-09 1.1719 1.0000 1.5166
Nov-09 1.1778 1.0000 1.5242
Dec-09 1.1837 1.0000 1.5318

I need the formula to return a correct value based on month and currency.

I have came up with this

=IF(B28=B$1,VLOOKUP(A28,A$2:E$25,2,0),IF(B28=C$1,V LOOKUP(A28,A$2:E$25,3,0),IF(B28=D$1,VLOOKUP(A28,A$ 2:E$25,4,0),0)))

Is it possible to make it simpler, especially when i need to add more
currencies and months to it?

Thanks

Edwin

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
How do I combine a VLOOKUP formula and a NETWORKDAYS formula? Tracy Excel Worksheet Functions 2 October 15th 09 04:14 PM
Alternative formula to the vlookup formula? Victor Excel Worksheet Functions 2 May 12th 08 04:38 PM
Vlookup formula tarheelfan Excel Discussion (Misc queries) 4 March 19th 08 11:05 PM
convert vlookup formula to link formula AFA Excel Worksheet Functions 0 February 20th 08 04:24 AM
Excel 2002 VLOOKUP formula or other formula Serge Excel Discussion (Misc queries) 4 February 26th 07 03:56 PM


All times are GMT +1. The time now is 08:13 AM.

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

About Us

"It's about Microsoft Excel"