catecumper
New Member
- Joined
- Feb 20, 2019
- Messages
- 2
Hi all,
Long time user, 1st time poster
I have about 700 lines of salary to move into three separate columns (C3, C4, C5) on the right, some of the employee numbers are in the column A more than once, depending on the different rates of pay they get and to do this manually is painful. There must be a formula to say that if employee number 101 (A3) has a salary (B3), then add B3 to column C3 or C4 or C5 depending on which department they work in. I have a separate table with what employee numbers are in each dept, and have tried Vlookup and IF, but when i copy the formula down it doesn't work
[TABLE="width: 500"]
<tbody>[TR]
[TD]emp no[/TD]
[TD]salary[/TD]
[TD]Dept1[/TD]
[TD]Dept2[/TD]
[TD]Det3[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]300[/TD]
[TD]300[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
all help gratefully received.
Long time user, 1st time poster
I have about 700 lines of salary to move into three separate columns (C3, C4, C5) on the right, some of the employee numbers are in the column A more than once, depending on the different rates of pay they get and to do this manually is painful. There must be a formula to say that if employee number 101 (A3) has a salary (B3), then add B3 to column C3 or C4 or C5 depending on which department they work in. I have a separate table with what employee numbers are in each dept, and have tried Vlookup and IF, but when i copy the formula down it doesn't work
[TABLE="width: 500"]
<tbody>[TR]
[TD]emp no[/TD]
[TD]salary[/TD]
[TD]Dept1[/TD]
[TD]Dept2[/TD]
[TD]Det3[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]1000[/TD]
[TD][/TD]
[TD][/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]300[/TD]
[TD]300[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
all help gratefully received.