Lookup or?

G

George

Dear friends,

I have a worksheet with 4 columns, i.e. in Column1 I record the date,
Column2-4 I record the exchange rates in JPY, GBP and USD.

I need, in a different worksheet to enter the date and Currency and to:
1. Show me in a nearby cell the exchange rate of that date and currency and
2. To highlight the corresponding date and exchange rate of that currency in
the first worksheet.

Shall I need some coding or?

Any ideas will be highly appreciated.

Thanking you in advance,

GeorgeCY
 
J

Jacob Skaria

--If the data is arranged in this format in Sheet1

Dates JPY GBP USD
8/5/2009 x x x
9/5/2009 x x x
10/5/2009 x x x

In Sheet2 C1
A1 = Query Date
B1 = exch rate (example USD)
=VLOOKUP(A1,Sheet1!A:D,MATCH(B1,A1:D1,0),0)

--For highlighting you can try Conditional Formatting

Create named ranges (menu Insert>Name>Define)
qDate = Query Date = Sheet2 A1
qExc = Exch Rate = Sheet2 A2

1. Select the cell/Range (Sheet1 A:D).
2. From menu Format>Conditional Formatting>
3. For Condition1>Select 'Formula Is' and enter the below formula
=AND(INDEX($A:$D,1,COLUMN())=qExc,INDEX($A:$D,ROW(),1)=qDate)

4. Click Format Button>Pattern and select your color (say Red)
5. Hit OK

If this post helps click Yes
 
J

Jacob Skaria

Correction for VLOOKUP:

In Sheet2 C1
A1 = Query Date
B1 = exch rate (example USD)
=VLOOKUP(A1,Sheet1!A:D,MATCH(B1,Sheet1!A1:D1,0),0)

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top