Forum Discussion

sirias's avatar
sirias
Occasional Reader
Oct 20, 2025

Having a hard time keeping the data in one line with a pivot table

Hey folks,

I am trying to get a pivot table where all the information I need is in one row, but no matter what I do each column is in a different row.

Here's the data I need to make into one line for each column.

Co CodeBatch IDFile #Batch DescriptionPay #Tax FrequencyTemp Cost NumberTemp RateReg HoursOvertime HoursPER Hours 3 CodePER Hours 3 AmountPTO Hours 3 CodePTO Hours 3 AmountFLH Hours 3 CodeFLH Hours 3 AmountSF1 Hours 3 CodeSF1 Hours 3 AmountPTA Hours 3 CodePTA Hours 3 AmountSF3 Hours 3 CodeSF3 Hours 3 Amount
HP4KroHrs534040Kronos HR1 6009-18067 8.2             
HP4KroHrs534040Kronos HR1 6009-18067 8.15             
HP4KroHrs534040Kronos HR1 6009-18067 3.33             
HP4KroHrs534040Kronos HR1 6009-18067 10.03             
HP4KroHrs534040Kronos HR1 6009-18067 5.7             
HP4KroHrs534040Kronos HR1 6009-18067             SF32.4
HP4KroHrs534040Kronos HR1 6009-18067 8.17             
HP4KroHrs534040Kronos HR1 6009-18067             SF34.82
HP4KroHrs534040Kronos HR1 6009-18067 10.13             
HP4KroHrs534040Kronos HR1 6009-18067 10.17             
HP4KroHrs534040Kronos HR1 6009-18067 8.12             
HP4KroHrs534040Kronos HR1 6009-18067  2.4            
HP4KroHrs534040Kronos HR1 6009-18067         SF18.15    
HP4KroHrs534040Kronos HR1 6009-18067  4.82            
HP4KroHrs534040Kronos HR1 6009-18067         SF13.33    
HP4KroHrs534040Kronos HR1 6009-18067         SF110.03    
HP4KroHrs534040Kronos HR1 6009-18067         SF15.7    
HP4KroHrs534040Kronos HR1 6009-18067         SF18.2    
HP4KroHrs534040Kronos HR1 6009-18067         SF18.17    
HP4KroHrs534040Kronos HR1 6009-18067         SF110.13    
HP4KroHrs534040Kronos HR1 6009-18067         SF110.17    
HP4KroHrs534040Kronos HR1 6009-18067         SF18.12    
HP4KroHrs518634Kronos HR1 6005-10000 1.23             
HP4KroHrs518634Kronos HR1 6005-17134 8.1             
HP4KroHrs518634Kronos HR1 6005-10000 0.45             
HP4KroHrs518634Kronos HR1 6005-10000 1.97             
HP4KroHrs518634Kronos HR1 6005-10000 3.75             
HP4KroHrs518634Kronos HR1 6005-10000 5.7             
HP4KroHrs518634Kronos HR1 6005-10000 1.45             
HP4KroHrs518634Kronos HR1 6005-10000  0.38            
HP4KroHrs518634Kronos HR1 6005-18233 1.6             
HP4KroHrs518634Kronos HR1 6005-17134 8.1             
HP4KroHrs518634Kronos HR1 6005-G0167 0.32             
HP4KroHrs518634Kronos HR1 6005-17134 8.08             
HP4KroHrs518634Kronos HR1 6005-17134 6.38             
HP4KroHrs518634Kronos HR1 6005-10000  0.5            
HP4KroHrs518634Kronos HR1 6005-17134 5.75             
HP4KroHrs518634Kronos HR1 6005-17134 4.03             

 

1 Reply

  • Not sure follow below can help:

     

    1. Prepare Your Source Data

    Make sure your data includes a unique identifier for each group you want to collapse into one row. In your case, that could be a combination of:

    • Co Code
    • Batch ID
    • File #
    • Batch Description
    • Pay #
    • Temp Cost Number

    You can create a helper column that concatenates these fields to form a unique key.

    1. Insert Pivot Table
    • Go to Insert > Pivot Table.
    • Use your helper column (or the combination of fields above) in the Rows area.
    • Drag all the numeric fields (e.g., Reg Hours, Temp Rate, SF1 Hours 3 Amount, etc.) into the Values area.
    • Set each value field to Sum or Max, depending on what makes sense for your data.
    1. Avoid Row Splitting

    If you accidentally drag fields like SF1 Hours 3 Code into Rows or Columns, Excel will split the data into multiple rows. Instead:

    • Keep all code fields (e.g., SF1 Hours 3 Code) in the Values area.
    • Use Max or First as the aggregation function to show the code once per row.

Resources