zjhomrighaus
New Member
- Joined
- Mar 13, 2009
- Messages
- 3
Hello,
I have what I believe to be a pretty complex lookup that I need to do. Basically, I got a data dump from an audit/history function. I have mulitple rows of data for one person... each row represents a different step in a process and the date column lists the date that step was executed. The catch is that not all steps were executed for each person and in reality there are thousands of rows with many hundreds of unique names. Here is what my data is in Sheet1 and looks like:
name step date
tom stepA 1/20
tom stepB 1/23
tom stepC 2/2
tom stepD 2/25
jen stepB 1/15
jen stepD 2/12
What I need to do it create Sheet2 that groups the steps for each person onto a single row... basically I need to transpose the two columns with the steps and associated dates for each unique person. So, my desired output looks like this:
name stepA stepB stepC stepD
tom 1/20 1/23 2/2 2/25
jen - 1/13 - 2/12
So, in pseudo code, I want the formula in Sheet2:B2 (where I have 1/20 listed in Sheet2 above) to look like:
For a given row on Sheet1, if Sheet1:columnA = Sheet2:A2 AND Sheet1:columnB = Sheet2:B1, THEN, return Sheet1:columnC for that row.
Removing the sheet references, it reads like this:
For a given row, if "tom" AND "stepA" are in the same row (in columns A and B, respectively), write the value in column C.
Not sure if that makes sense, but I'm having trouble using VLOOKUP here cause I can't define the data range that involves "tom" vs. the range for "jen" without actually typing them in.
I started another thread where I am trying to be able to define the "table_array" in VLOOKUP using a formula (ADDRESS, CONCATENATE, INDIRECT, etc.) instead of just typing it in directly... I think that will solve my problem, but in case that doesn't work, can anyone help me sort this data out?
Thanks!
Zack
I have what I believe to be a pretty complex lookup that I need to do. Basically, I got a data dump from an audit/history function. I have mulitple rows of data for one person... each row represents a different step in a process and the date column lists the date that step was executed. The catch is that not all steps were executed for each person and in reality there are thousands of rows with many hundreds of unique names. Here is what my data is in Sheet1 and looks like:
name step date
tom stepA 1/20
tom stepB 1/23
tom stepC 2/2
tom stepD 2/25
jen stepB 1/15
jen stepD 2/12
What I need to do it create Sheet2 that groups the steps for each person onto a single row... basically I need to transpose the two columns with the steps and associated dates for each unique person. So, my desired output looks like this:
name stepA stepB stepC stepD
tom 1/20 1/23 2/2 2/25
jen - 1/13 - 2/12
So, in pseudo code, I want the formula in Sheet2:B2 (where I have 1/20 listed in Sheet2 above) to look like:
For a given row on Sheet1, if Sheet1:columnA = Sheet2:A2 AND Sheet1:columnB = Sheet2:B1, THEN, return Sheet1:columnC for that row.
Removing the sheet references, it reads like this:
For a given row, if "tom" AND "stepA" are in the same row (in columns A and B, respectively), write the value in column C.
Not sure if that makes sense, but I'm having trouble using VLOOKUP here cause I can't define the data range that involves "tom" vs. the range for "jen" without actually typing them in.
I started another thread where I am trying to be able to define the "table_array" in VLOOKUP using a formula (ADDRESS, CONCATENATE, INDIRECT, etc.) instead of just typing it in directly... I think that will solve my problem, but in case that doesn't work, can anyone help me sort this data out?
Thanks!
Zack