?
Solved

How to import source data on an existing primary field

Posted on 2011-03-08
1
Medium Priority
?
239 Views
Last Modified: 2012-05-11

My source file contains the exact city / lot number which coressponds to an exact device number.

I want to take my existing spreadsheet and have all city/lot numbers sync with that of my source file.

So spreadsheet A; ROW 01 would now contain the same device number as Spreadsheet B; ROW 01 and so forth.
If possible I would like to have all fields within this column print the word null if there is no source data for that city /lot
from Worksheet B.

Is this done with a vlookup? I have been trying but to no avail

Yellow cell on worksheet A is what I am trying to pull over from the source worksheet
vlookup-example-devicenum.xlsx
0
Comment
Question by:manelson05
1 Comment
 
LVL 13

Accepted Solution

by:
gamarrojgq earned 2000 total points
ID: 35070188
Hi,

You can do it with this formula

=IF(ISERROR(VLOOKUP(B2,'B - SOURCE'!$A$2:$B$378,2,FALSE)),"null",VLOOKUP(B2,'B - SOURCE'!$A$2:$B$378,2,FALSE))
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question