Copy certain fields of the same record to a new worksheet based on a met condition and populate additional fields automatically

ExcelIsEverything

New Member
Joined
May 11, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have a schedule that I have prepared in Excel. I'm looking for a way to convert the schedule to a table that contains the Project and Staff and the hours for each date and the date in a unique record. I want to create as many copies of each row as there are non zero numbers in the schedule G:U. I want columns E (Project) and F (Staff) to be copied to each record and I want a new column Daily(Hours) and Date to be added to each record. I have attached a file containing the Before (above) and After (below) of how I would like to manipulate the data.

For Project 001 in Row 2, there are three cells in G2:U2 with non zero numbers. I want that single row to become a total of three rows with 8 Daily(Hours) on 5/10/21, 8 Daily(Hours) on 5/11/21, and 4 Daily(Hours) on 5/12/21.

I have been watching many videos to try to figure out how to do this without success. I would really appreciate it if someone could point me in the right direction.

Sample.xlsx
ABCDEFGHIJKLMNOPQRSTU
1Budget(hours)CheckStart dateDue dateProjectStaff5/10/20215/11/20215/12/20215/13/20215/14/20215/17/20215/18/20215/19/20215/20/20215/21/20215/24/20215/25/20215/26/20215/27/20215/28/2021
2202010-May1-Jun001Sam884000000000000
3161610-May1-Jun002Kelly880000000000000
4606012-May1-Jun003Sam004888888800000
5202012-May1-Jun004Kelly008840000000000
66614-May20-Jun005Kelly000042000000000
7
8
9
10ProjectStaffDaily(hours)Date
11001Sam810-May
12001Sam811-May
13001Sam412-May
14002Kelly810-May
15002Kelly811-May
16003Sam412-May
17003Sam813-May
18003Sam814-May
19003Sam815-May
20003Sam816-May
21003Sam817-May
22003Sam818-May
23003Sam819-May
24004Kelly812-May
25004Kelly813-May
26004Kelly414-May
27005Kelly414-May
28005Kelly215-May
DataEntryBefore
Cell Formulas
RangeFormula
B2:B6B2=SUM(G2:U2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B6Cell Value=$A3textNO
B2Cell Value=$A2textNO
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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