Hello again everyone,
I have two columns that I want to compare data and fill in a single cell with the SUM of one of those columns.
The first column is K. The cells are populated from K2:K59. There are 7 different values randomly listed in this column: Custom, Small Industrial, Lighting, SEM, Custom O&M, Prescriptive and Green Rewind. The second column, AT, has numerical values, also populated from AT2:AT259. I want to use a code that looks at column K to see which cells list "Custom." I want it to sum up the numerical values from column AT that correlate to "Custom" and sum up their values into a single cell.
I tried using this code to start:
=VLOOKUP(K2:K259,AT2:AT259,2,FALSE)
However, I feel as though I may need to use an IF and SUM statement to tell it to only look at the cells labeled "Custom" but am not sure how to format it.
If this doesn't make sense feel free to ask any questions.
Thanks everyone!
I have two columns that I want to compare data and fill in a single cell with the SUM of one of those columns.
The first column is K. The cells are populated from K2:K59. There are 7 different values randomly listed in this column: Custom, Small Industrial, Lighting, SEM, Custom O&M, Prescriptive and Green Rewind. The second column, AT, has numerical values, also populated from AT2:AT259. I want to use a code that looks at column K to see which cells list "Custom." I want it to sum up the numerical values from column AT that correlate to "Custom" and sum up their values into a single cell.
I tried using this code to start:
=VLOOKUP(K2:K259,AT2:AT259,2,FALSE)
However, I feel as though I may need to use an IF and SUM statement to tell it to only look at the cells labeled "Custom" but am not sure how to format it.
If this doesn't make sense feel free to ask any questions.
Thanks everyone!