Need Help with a Formula

Copper Contributor

I need to create a formula that incrementally calculates values in a cell based on values in cells contained in a different worksheet. For example, if the value in 'Tracking'!H2=Approved, then add 40 to cell K5 but do nothing if the value is not =Approved and, if the value in 'Tracking'!H3=Approved but do nothing if the value is not =Approved, then add another 40 to cell K5, and so on. This would create a running total in cell K5 as the values in the specified cells in the 'Tracking' worksheet are changed to Approved.

 

I can get this to work on one cell using the "IF" function but am not savvy enough to figure out how to string the argument together to add more data as the other cells are changed. ANY assistance will be greatly appreciated!

3 Replies

@rchazen 

Perhaps something like

=SUM(40*(Tracking!$C$1:$C$20="Approved"))

Use SUMPRODUCT() instead of SUM() if you are on Excel without dynamic array support.

@Sergei Baklan 

That worked perfectly! Sometimes the simplest solution is right in front of us. Thank you for the quick response and right answer!

@rchazen , you are welcome