Referencing a value from a table

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
__________DK____________DL______DM______DN
_______Date_________Date_______ $_______€
_______From_________To
19_____01/01/2011___31/01/2011__0.6671__0.8470
20_____01/02/2011___28/02/2011__0.6671__0.8470
21_____01/03/2011___31/03/2011__0.6148__0.8581
22_____01/04/2011___30/04/2011__0.6000__0.8500

I want to reference a value from the table according to certain conditions. (DK, DL, DM, DN are columns - sorry about the crude table)

For example, cell AE367 contains the date 21/03/2011 and cell D367 contains the "€" currency symbol. In this case I want the formula to be able to look at the table and see that the 21/03/2011 falls between the two dates on row 21 and the € column contains 0.8581 for this row. This is the value I want referenced.

I have tried this with VLOOKUP and HLOOKUP with no luck. Can anyone help. Thanks.

Dan
 
Last edited:
It will commonly be a "£" sign, but in future may be empty or another currency sign. Either way for now I would like "--" returned if it is not a "€" or "$" sign.
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
It will commonly be a "£" sign, but in future may be empty or another currency sign. Either way for now I would like "--" returned if it is not a "€" or "$" sign.
Try this...

=IF(OR(D367={"$","€"}),VLOOKUP(AE367,DK19:DN22,MATCH(D367,DK17:DN17,0)),"--")
 
Upvote 0
Thanks T. Valko, you've been a great help. That sorts my problem. Thanks again.

Dan
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top