Solved

Pulling data from one sheet to another

Posted on 2016-09-08
3
56 Views
Last Modified: 2016-10-23
I have a prospect list in Excel. The list of prospects is in one sheet with all prospect details, and the transactions / call outs / follow ups that I do are in another sheet in the same file.

What I am trying to do is:
(a)  Copy a prospect on the transaction sheet.
(b)  Depending on the name entered, excel automatically pulls the contact number and location from the respective cells in the master sheet into the corresponding cells in the transaction sheet, next to the prospect. For example: I enter the name of prospect from Row number 201 (in master sheet) to the transaction sheet. Then excel should search the master sheet for the name, and pick up the contact number and location and place it in the cells next to the prospect in the transaction sheet. So far so good.
(c)  This I have done using VLOOKUP. If Column for "Name" in the transaction sheet is B, and I have typed a name from the master sheet in B250, then the VLOOKUP reads the value in B250, searches the master for Anil Kumar, and picks phone number and location in the respective cells. If no name is entered, the contact and location details remain blank. The formula that I have used is VLOOKUP(B14,'Prospect Master'!$F$2:$H$414,2,0) and VLOOKUP(B14,'Prospect Master'!$F$2:$H$414,3,0).
(d)  In my prospects, names are repeated. For example, I have one Anil Kumar from Delhi, and another Anil Kumar from Hyderabad. VLOOKUP picks up the first occurrence and places the contact and the location against this occurrence in the transaction sheet.

How can I:
(a)  Ensure that the location and the contact are for the 2nd Anil Kumar (if it is the second occurrence) or 3rd, and excel picks up the details from 2nd or 3rd Anil Kumar.
(b)  Without name, the location and contact fields remain empty.
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 41789315
See attached.

Put simply, this annotates a name with a count of the name and then does the lookup based on that value rather than the name.

The name count columns can be hidden if required.

Thanks
Rob H
multiple-lookup.xlsx
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 500 total points
ID: 41789317
In addition, question (b):

Add an IF statement to the front of the VLOOKUP to check for blank:
=IF(B14="","",VLOOKUP($A14,'Prospect Master'!$A$2:$H$414,7,0))

Thanks
Rob H
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41855833
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Rob Henson (https:#a41789315)
-- Rob Henson (https:#a41789317)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

635 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