Copy rows with unique combination of columns, then sum

Hi All,

Got a tricky one... I'm trying to harmonize data from one sheet to a new one. I've got data shuttle pumping data from a source Excel file in OneDrive to a raw data Smartsheet. I then want to copy the rows from the raw data sheet, but sum values in the target sheet into a single row if a combo of two columns matches. See below:

Source:

Desired Target:

Is this possible? Thanks in advance!

Best Answer

  • Ayelet Weiner
    Ayelet Weiner ✭✭✭✭✭
    Answer ✓

    @Paul Higgins In that case, I think you'd need to prepopulate the Name & Week column on your destination sheet, then add a column with a cross-sheet reference formula to sum the hours.

    Raw Data sheet:

    Destination sheet:


    Formula:

    =SUM(COLLECT({Hours Range}, {Week Range}, =Week@row, {Name Range}, =Name@row))


    You can always add additional columns for other metrics as well.

«1

Answers