-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Here are all the new features Microsoft added to Excel in May 2026
By Usama Jawad96,
- microsoft
- microsoft excel
- (and 6 more)
- 1 reply
- 0 views
-
Office users hated the new Copilot button, now Microsoft is changing it
By Usama Jawad96,
- microsoft
- microsoft office
- (and 13 more)
- 8 replies
- 0 views
-
LibreOffice bashes Microsoft for "absurd" OOXML format and Excel's handling of dates
By Usama Jawad96,
- libreoffice
- the document foundation
- (and 10 more)
- 7 replies
- 0 views
-
- 0 replies
- 0 views
-
Excel users are raging over Microsoft's unremovable Copilot button inside their sheets
By Usama Jawad96,
- microsoft
- microsoft excel
- (and 9 more)
- 15 replies
- 0 views
-
Question
Valcrist
I hope this is where I should put this.
I was asked to help with a project at work involving moving some data from one excel spreadsheet to another, and I could use a little help figuring out how the formula would work or if a macro would be involved. I'll try my best to explain the situation.
There are two different spreadsheets, the first one contains a list of employees, the agents they are assigned to, the agents number, a column listing how many hours of work type A they are required to do and another column listing for work type B. The second spreadsheet also has a list of these employees as well as a column showing an employee assigned to them to help with work type B and the agent with his/her number and how much of work type B.
What I need is a formula/macro that will automatically take the relevant information from the first worksheet and post it on the second. The problem is that some of the agents only have work type A and some only B. The second spreadsheet needs to only have either all work B or a mix of work A and B. It can not have any of the agents that have only work type A.
I know this may sound confusing, but I have tried everything from =if formulas to =hlook statments, and tried a mix of both. Maybe there just isn't a way to do this and I"m fighting a lost cause. Anyone here with mad excel skills that can help out?
Rough mock up.
Worksheet 1
| employee | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
| employee2 | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
| employee3 | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
Worksheet 2
| employee | helper | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...
| employee2 | helper2 | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...
| employee3 | helper3 | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...
Link to comment
https://www.neowin.net/forum/topic/1074101-excel-formulamacro-help/Share on other sites
6 answers to this question
Recommended Posts