Insert rows into alphabetical list and keep data aligned.

RedOctoberKnight

Board Regular
Joined
Nov 16, 2015
Messages
153
Office Version
  1. 2016
Platform
  1. Windows
Good Morning,

I'm currently working on a scheduling tool for work. I have a "Master" sheet that has everybody's name and work schedules for every day of the week. I then have sheets for every day of the schedule period that contains a position assignment and a daily log that get's faxed to our payroll department daily. Example of the daily log below.

[TABLE="width: 500"]
<tbody>[TR]
[TD]last
[/TD]
[TD]first
[/TD]
[TD]EE
[/TD]
[TD]Schedule
[/TD]
[TD]Actual
[/TD]
[TD]SCO
[/TD]
[TD]OT
[/TD]
[TD]DT
[/TD]
[TD]LWOP
[/TD]
[TD]Remarks
[/TD]
[/TR]
[TR]
[TD]Averill
[/TD]
[TD]N
[/TD]
[TD]111
[/TD]
[TD]0430-1300
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]STW 1230-2100 Barnes
[/TD]
[/TR]
[TR]
[TD]Awadallah
[/TD]
[TD]B
[/TD]
[TD]222
[/TD]
[TD]1145-2015
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Barnes
[/TD]
[TD]C
[/TD]
[TD]333
[/TD]
[TD]1230-2100
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]STO Averill/STW 1230-2100 Diaz
[/TD]
[/TR]
[TR]
[TD]Bass
[/TD]
[TD]E
[/TD]
[TD]444
[/TD]
[TD]OFF
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Last, First, EE, and Schedule columns are all formulated to pull information off the "Master" sheet. Remarks are simply add daily to that specific sheet. The problem I'm running into is when I add a new employee, and sort alphabetically, the remarks don't remain in the same row as the original employee. So if I add employee last name BAKER, it would sort it in between Awadallah and Barnes. But the comments that are currently in for Barnes would now be on Baker's row. If that makes any sense....

Is there a way to be able to insert a new employee into the "master" sheet and have all the comments for each employee follow them on there respective rows?

Any info would be much appreciated!

Thanks!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Last, First, EE, and Schedule columns are all formulated to pull information off the "Master" sheet. Remarks are simply add daily to that specific sheet.
I think your problem is your structure.
If the first few columns are formulas, but remarks are hard-coded, I can see how things get out of alignment.
I would recommend putting the remarks on the Master sheet also, so they are correlated with with a specific name (and not a reference formula).
Then just pull them in to this other sheet the same way you are pulling in the other fields.

Alternatively, you could create a separate "Remarks" sheet, when you have the person and remarks on that sheet (and are only ever adding new remarks to the bottom).
Then, you could pull your remarks in to this new sheet.

(Quite frankly, this looks like more of a database situation to me, and all things equal, I would choose to do it in Microsoft Access, which handles these sort of tasks better).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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