IF any value from column match cell

Olejeek

New Member
Joined
Aug 18, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hello,

Sorry if it's newbie question, however I tried different solutions ( "=IF(A2=B2, C2)", "=IF(MATCH(..." ) that didn't helped me. So I came here asking for a help. I'll try to describe. I have 2 columns, currency rate that are date-related, so I need to transfer somehow these rates to my column depending on my column dates. Please see the screenshot where I tried to visualize my request. Thank you in advance for any posts.
2020-08-18_21-47-35.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
In E3 type =vlookup(D3,$A$3:$B$8,2,0) The A3:B8 should be A3:B and last row of rate data.
 
Upvote 0
Welcome to the Board!

A VLOOKUP formula will do that for you.
So, in cell E3, you would have:
=VLOOKUP(D3,$A$3:$B$100,2,0)
and copy down for all rows
(not sure exactly where your data ends, so I used 100)

See here for details on VLOOKUP: VLOOKUP function in Excel
 
Upvote 0
Not tested here due to lack of having your excel sheet to practice with.

Try this : =VLOOKUP(D3,A3:B50,2,FALSE)

The formulas goes in E3 and copied down the column
 
Upvote 0
Well ... what are the chances of receiving three answers ... all at the same time ?
 
Upvote 0
Try this : =VLOOKUP(D3,A3:B50,2,FALSE)

The formulas goes in E3 and copied down the column
Don't forget to lock your lookup range, if copying down!
=VLOOKUP(D3,$A$3:$B$50,2,FALSE)
 
Upvote 0
New Microsoft Excel Worksheet (3).xlsx
ABCDEF
1DATERATEDATERATERATE
207-01-20201.119807-02-20201.121.12
307-02-20201.1207-02-20201.121.12
407-03-20201.128607-02-20201.121.12
507-04-20201.122407-03-20201.12861.1286
607-05-20201.122407-03-20201.12861.1286
707-06-20201.122407-03-20201.12861.1286
Sheet1
Cell Formulas
RangeFormula
E2:E7E2=VLOOKUP(D2,$A$2:$B$7,2,FALSE)
F2:F7F2=INDEX($B$2:$B$7,MATCH(D2,$A$2:$A$7))
 
Upvote 0
Wow, I didn't expect for such quick replies, i'm super glad to be here and for all received posts. So, the result is what I expected and =VLOOKUP did what I requested. It will greatly simplify my routine work :) :coffee: Thank you all!
 

Attachments

  • 2020-08-19_11-15-23.png
    2020-08-19_11-15-23.png
    39.1 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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