SOLVED

Help with SUM formula that totals cells adjacent to specific text...

Copper Contributor

Hi all.

 

I'm not sure if this is possible but it doesn't hurt to ask, right?

I'm trying to create a formula that can work as follows:

IF (CELL RANGE) = X, THEN SUM (CELL RANGE) OF CELLS ADAJCENT TO X

 

So for example, I'm looking for a formula that can total all of Mike's hours from the hour column at any point that his name is added to the employee column.

this is as far as I've gotten =IF(CELL RANGE)="MIKE",

MNMAGEE_0-1644418374167.png

 

Any help would be greatly appreciated.

Thanks,

Michael

 

5 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

@MNMAGEE 

=SUMIF(namerange, "MIKE", hoursrange)

@MNMAGEEpfa...I hope it resolves the issue.

Working perfect. Thank you!
Thanks @jitinm The formula that Hans posted worked for what I needed.
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

@MNMAGEE 

=SUMIF(namerange, "MIKE", hoursrange)

View solution in original post