Solved

tricky lookup formula

Posted on 2014-02-10
3
218 Views
Last Modified: 2014-02-11
Hi Experts excel 2007

I need to look up based on staff id when member of staff was contacted.
And insert results as shown into table b.

Assume table A pivot table...sample date total date set 20000 staff id's
                           Col b
Dates row 1. 12/01/2014.      13/01/2014
col A
3456.                       1.                           1
1234.                       1
5678.                                                      1
9890.

The number 1 shows as a count that person was called only once on that date..

Table B
Col e.           Col f.                    Col g.
3456.           12/01/2014.     13/01/2014
Etc...
0
Comment
Question by:route217
[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
3 Comments
 
LVL 23

Expert Comment

by:Danny Child
ID: 39848725
If this is complex, it may be easier for us to help if you can use Attach File to add a sample of your data?
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39849151
You might consider using an array-entered formula like:
=IFERROR(SMALL(IF(INDEX(Sheet1!$B$2:$D$20000,MATCH($E2,Sheet1!$A$2:$A$20000,0),)<>0,Sheet1!$B$1:$D$1,""),COLUMNS($F2:F2)),"")

This formula may be copied down and across. It assumes your PivotTable is in Sheet1 cells A1:D20000.

To array-enter a formula:
1.  Select the cell and click in the formula bar
2.  Hold the Control and Shift keys down
3.  Hit Enter, then release all three keys
Excel should respond by adding curly braces { } surrounding the formula. If it does not (or if you see all blanks as you copy down and across), then repeat steps 1 to 3.

Important

Because the formula is taking its data from a PivotTable, it is important that you copy and paste the formula in the formula bar or type it in. Do not point to cells in the PivotTable to build the formula, because you will make GETPIVOTDATA function references instead--and they won't do what you need.
TrickyLookupQ28361051x.xlsx
0
 

Author Comment

by:route217
ID: 39849334
Thanks for the feedback much appreciated.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

623 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