species8514
Board Regular
- Joined
- Oct 4, 2006
- Messages
- 98
Hi - I have some data that I need to do a lookup/matching process on, but not sure the best way to do it.
Basically column A the user can enter a name, in the B they enter a number, so;
BOB SMITH..........7
in column C the routine is repeated, so column C and D might have;
JAMES PARKER.....3.5
and so on - there are six sets of these name/number combinations
On another sheet I have a list of employees, and what I would like to do is run a lookup on each of the columns to see when/if they match the employees names, and then return the SUM of all the matches - so if BOB SMITH's name appeared three times, and on each occasion the number next to his name was 7, then the forumla would return 21.
I figured using vlookup on each of the columns (for each employee), and then adding these in the forumla (vlookup + vlookup + vlookup, etc.), but it only works if it finds a match - if it doesnt then I get n/a. I am guessing I need to use something like ISERROR? to say that if it cant find a match return a zero, but I'm not sure how quite to do this.
Also, I am unsure if this is indeed the most efficient method to do this, but I cant think of another way.
To give you an example of what I am looking at;
..............a.........................b........................c.......................d
...........................MON............................................TUE
OT...........David Smith..........7 .......................Frank James.......3
...............Simon Noone.........3.......................David Smith........2
On the second sheet I have
a.................................b
Name...........................OT
David Smith
Frank James
Simon Noone
Any help would be appreciated
Basically column A the user can enter a name, in the B they enter a number, so;
BOB SMITH..........7
in column C the routine is repeated, so column C and D might have;
JAMES PARKER.....3.5
and so on - there are six sets of these name/number combinations
On another sheet I have a list of employees, and what I would like to do is run a lookup on each of the columns to see when/if they match the employees names, and then return the SUM of all the matches - so if BOB SMITH's name appeared three times, and on each occasion the number next to his name was 7, then the forumla would return 21.
I figured using vlookup on each of the columns (for each employee), and then adding these in the forumla (vlookup + vlookup + vlookup, etc.), but it only works if it finds a match - if it doesnt then I get n/a. I am guessing I need to use something like ISERROR? to say that if it cant find a match return a zero, but I'm not sure how quite to do this.
Also, I am unsure if this is indeed the most efficient method to do this, but I cant think of another way.
To give you an example of what I am looking at;
..............a.........................b........................c.......................d
...........................MON............................................TUE
OT...........David Smith..........7 .......................Frank James.......3
...............Simon Noone.........3.......................David Smith........2
On the second sheet I have
a.................................b
Name...........................OT
David Smith
Frank James
Simon Noone
Any help would be appreciated