vlookup index match difficulties

brunetti92

New Member
Joined
Jan 30, 2017
Messages
2
image.tiff

image.tiff


So i am trying to create and evaluation sheet for my employees. The first screen shot is all the necessary data that i need to pull from.
The second screen shot is where i want to put all my data to I can then use it for my evaluation sheet.
I enter the employee name is the first column which gets me the ID number and hours worked for that day. I then want the total scans in column G from the first screen shot to be entered in the second screen shot under the respective application. So it should search the ID numbers, then the application mode, and then print the total scans for that ID number and application in the second table. This is where I am having trouble. Ive tried vlookup along with if statements but i ran into the problem with vlookup when an employee has done more than one task. Ive also tried index match but I am getting stuck in lengthy equations.
Any help would be greatly appreciated.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I realized i can not post screen shots (whoops). So I have created sample tables.
I would like the "total scans" to be printed in the second table for the respective application and ID number.

ABC
1IDApplicationtotal Scans
21234beltsplit12500
31234primarysort1300
41234vpls4000
52345primarysort3000
62345vpls1200
73456beltsplit12000
83456vpls4200
93456primarysort2300

<tbody>
</tbody>

ABCD
1IDbeltsplitprimarysortvpls
21234
32345
43456

<tbody>
</tbody>
 
Upvote 0
I do not have time to write it myself right now. However, let me ask this question for whomever else stumbles in. Is VBA code okay to solve your problem?
 
Upvote 0
Let A:C of Sheet1 house the input table and A:D of Sheet2 the output table.

In B2 of Sheet2 control+shift+enter, not just enter, copy across, and down:

=IFNA(INDEX(Sheet1!$C$2:$C$9,MATCH($A2,IF(Sheet1!$B$2:$B$9=B$1,Sheet1!$A$2:$A$9),0)),"")

If you get a #NAME? error, replace IFNA with IFERROR.
 
Upvote 0
A
B
C
D
1
IDApplicationtotal Scans
2
1234​
beltsplit
12500​
3
1234​
primarysort
1300​
4
1234​
vpls
4000​
5
2345​
primarysort
3000​
6
2345​
vpls
1200​
7
3456​
beltsplit
12000​
8
3456​
vpls
4200​
9
3456​
primarysort
2300​
10
11
IDbeltsplitprimarysortvpls
12
1234​
12500​
1300​
4000​
13
2345​
0​
3000​
1200​
14
3456​
12000​
2300​
4200​

<tbody>
</tbody>


B12=SUMIFS($C$2:$C$9,$A$2:$A$9,$A12,$B$2:$B$9,B$11) copy across and down
 
Upvote 0
Aladin...I was just trying both of your formulas to learn new things by deconstructing them. However, I cannot get your formula to work. It is basically just copying the information. But if there are duplicates, say two for customer 1234 buying a beltsplit scan, it doesn't add the total scans together. Maybe this isn't what brunette is looking for anyway. But if it isn't I do not see what would be different from one table to the next except for layout.

Either way, I learned something new from you and Marzio...so much appreciated. Very clever gents
 
Upvote 0
@dUBBINS

The INDEX suggestion assumes that the OP wants to retrieve data. The input data seems to confirm this. But if it's summarization what is required, then the formula with SUMIFS is of course appropriate to that task.
 
Upvote 0

Forum statistics

Threads
1,215,479
Messages
6,125,041
Members
449,206
Latest member
Healthydogs

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
Back
Top