Need Help with Formula / Skipping Lines


New Member
Oct 30, 2019
Hello, I am trying to create a sheet in Excel to pull Hours from another sheet to upload into a system as a CSV file. I need a formula for hours that would pull in the Reg Hours and then say if the Overtime cell has a value then it will make a second line for that same employee and pull in those hours. Then it would go to the next employee. Note NOT every employee has Overtime so we will not always need a second line for each employee.

This is an example of the simple CSV file we will upload (there are other columns) These will pull from another Excel Sheet in the same workbook.

Employee IDCodeAmount



Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.


New Member
Oct 30, 2019

This 1st picture is the1st sheet (Time) where we input the manual timesheets for each employee from left to right.

This 2nd picture is up close of the far-right summary of the data of the manual timesheets, this is the data I need pulled to the next sheet below. This will be summarized into a CSV file to be uploaded. The problem is the lines for REG1 and OT1, how to pull over REG1 and then IF there is OT1 then there is another line for the same employee. Not all will have OT1.

This 3rd picture is the 2nd sheet for the import. This is where I need to pull over the data from the above (REG1 and OT1).

Forum statistics

Latest member

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...