Reading from another file

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
431
Office Version
  1. 2013
Platform
  1. Windows
I have this formula in column O as well as P

IFERROR(VLOOKUP($B5,'[SampleData2020.xlsx]2020'!$B$3:$B$200,1,FALSE),"")

I believe what it is doing is looking at the value in column B on the sheet where the formula is, and looking for the same value in column B, rows 3 through 200 on the SampleData file. Here’s where I run into a problem. Column O on my destination sheet should display the value in column F on the SampleData file. Column P should display the value in Column E. My thoughts were that by changing the ,1, part of the formula, I’d change the column data was pulling from. If I change it to 2, 3 or even 0 or -1 or anything else, the resulting value is blank. Currently, using the formula above, it displays the value in column B from Sample Data.

What am I missing? Thank you in advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
How about
IFERROR(VLOOKUP($B5,'[SampleData2020.xlsx]2020'!$B$3:$F$200,5,FALSE),"")

and change the 5 to 4 for column P
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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