Reading from another file

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
349
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,207
Office Version
  1. 365
Platform
  1. Windows
How about
IFERROR(VLOOKUP($B5,'[SampleData2020.xlsx]2020'!$B$3:$F$200,5,FALSE),"")

and change the 5 to 4 for column P
 

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
349
Office Version
  1. 2013
Platform
  1. Windows
As usual, your suggestion worked perfectly. THANKS
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,207
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,951
Messages
5,834,543
Members
430,295
Latest member
amdis

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
Top