Forum Discussion

Stryfe24's avatar
Stryfe24
Copper Contributor
Sep 06, 2023
Solved

SUMIF with unique indexing

Hi all,

 

I am trying to generate a calculation which shows where a unique ID has separate rows and totals the value for all cells in a column where that unique identifier is present in the row.

 

Below is an example.  I want a formula to sum the 'value' for all cells where the ID is same into the corresponding row in the first table.  I've tried a sumif, however it only returns the first find.  So where the first value is 0 it returns that, despite being other rows where the ID is, and the row contains data for the column of 'value'

 

I'm sure i'm missing a simple step, but can't quite figure it out.

 

Thanks

 

 

  • Stryfe24 

    Let's say the second table (the one on the right) is named Table2. The formula

     

    =SUMIF(Table2[ID], [@ID], Table2[Value])

     

    should work.

     

2 Replies

  • Stryfe24 

    Let's say the second table (the one on the right) is named Table2. The formula

     

    =SUMIF(Table2[ID], [@ID], Table2[Value])

     

    should work.

     

Resources