Hello y'all,
I need to write a statement that sums up certain values referenced in the IF statement. For example, I have 10 columns of data; five of those are the subjects and the other five are the corresponding values. The columns alternate with subject1,value1,subject2,value2...
The problem is that when subject1 and subject2 are the same my formula returns the first value1 and not the sum. So say three of the five subjects are the same I would want to ADD all of those values with respect to the three subjects.
-------
Here is the data and my formula:
=SUM(IF($BG11="Waiting Material",$BH11,IF($BI11="Waiting Material",$BJ11,IF($BK11="Waiting Material",$BL11,IF($BM11="Waiting Material",$BN11,IF($BO11="Waiting Material",$BP11,0))))))
BG BH BI BJ BK BL
Waiting Material 18.48 Being Serviced 24.00 Waiting Material 0.02
BM BN BO BP
Needing Material 0.00 Waiting Material 17.57
-------
I seperated the columns because the text overruns the page. And this chosen data just happened to come from row11.
So right no my formula only return 18.48, but it should return the total of 18.48+.02+17.57=>>"36.07"
Thanks for your help.
I need to write a statement that sums up certain values referenced in the IF statement. For example, I have 10 columns of data; five of those are the subjects and the other five are the corresponding values. The columns alternate with subject1,value1,subject2,value2...
The problem is that when subject1 and subject2 are the same my formula returns the first value1 and not the sum. So say three of the five subjects are the same I would want to ADD all of those values with respect to the three subjects.
-------
Here is the data and my formula:
=SUM(IF($BG11="Waiting Material",$BH11,IF($BI11="Waiting Material",$BJ11,IF($BK11="Waiting Material",$BL11,IF($BM11="Waiting Material",$BN11,IF($BO11="Waiting Material",$BP11,0))))))
BG BH BI BJ BK BL
Waiting Material 18.48 Being Serviced 24.00 Waiting Material 0.02
BM BN BO BP
Needing Material 0.00 Waiting Material 17.57
-------
I seperated the columns because the text overruns the page. And this chosen data just happened to come from row11.
So right no my formula only return 18.48, but it should return the total of 18.48+.02+17.57=>>"36.07"
Thanks for your help.