vespagtguy
New Member
- Joined
- Mar 8, 2016
- Messages
- 4
Greetings,
I have a table that is generated by my payroll company. I need to generate some data based upon this table:
<tbody>
</tbody>
I want to find the sum of the salaries (column B) for employees in location 50 (Column C), dept 100 (ColumnD).
This is straight forward as I created the following SUMIFS calculation:
=SUMIFS($B$2:$B$9,$C$2:$C$9,"50",$D$2:$D$9,"100") - Works Fantastic!
Now for my dilemma...
the payroll company has moved my columns either by adding or removing columns which changes the cells that I am performing my lookups upon. The values I want to add are no longer in cloumn B, but are now in column C; and so forth. Such as:
<tbody>
</tbody>
Is there a way that I can perform this type of lookup based upon the column headers, as the text will not change, but the column location may? For example:
=SUMIFS([Salary],[Location],"50",[Dept],"100")
I know it is not as simple as the above. I just cant seem to grasp the multiple column lookup. Not sure if there would need to be a combination of INDEX and MATCH. Perhaps I'm over-thinking? Thanks in advance.
-vespagtguy
I have a table that is generated by my payroll company. I need to generate some data based upon this table:
Employee | Salary | Location | Dept |
aaa | 3500 | 50 | 100 |
bb | 4000 | 501 | 100 |
ccc | 3000 | 50 | 100 |
ddd | 4000 | 50 | 200 |
eee | 5000 | 50 | 200 |
fff | 3000 | 502 | 100 |
ggg | 7000 | 50 | 100 |
hhh | 10000 | 50 | 100 |
<tbody>
</tbody>
I want to find the sum of the salaries (column B) for employees in location 50 (Column C), dept 100 (ColumnD).
This is straight forward as I created the following SUMIFS calculation:
=SUMIFS($B$2:$B$9,$C$2:$C$9,"50",$D$2:$D$9,"100") - Works Fantastic!
Now for my dilemma...
the payroll company has moved my columns either by adding or removing columns which changes the cells that I am performing my lookups upon. The values I want to add are no longer in cloumn B, but are now in column C; and so forth. Such as:
Employee | Check # | Salary | Location | Dept |
aaa | 10001 | 3500 | 50 | 100 |
bb | 10002 | 4000 | 501 | 100 |
ccc | 10003 | 3000 | 50 | 100 |
ddd | 10004 | 4000 | 50 | 200 |
eee | 10005 | 5000 | 50 | 200 |
fff | 10006 | 3000 | 502 | 100 |
ggg | 10007 | 7000 | 50 | 100 |
hhh | 10008 | 10000 | 50 | 100 |
<tbody>
</tbody>
Is there a way that I can perform this type of lookup based upon the column headers, as the text will not change, but the column location may? For example:
=SUMIFS([Salary],[Location],"50",[Dept],"100")
I know it is not as simple as the above. I just cant seem to grasp the multiple column lookup. Not sure if there would need to be a combination of INDEX and MATCH. Perhaps I'm over-thinking? Thanks in advance.
-vespagtguy