Combining IF statments

Toocan70

New Member
Joined
Jul 11, 2011
Messages
5
Hi All, I have used this site quite often and have found the information very helpful, thanks everyone. :)
I am working on a spreadsheet to track how many iterations of a particular event happen during the week. I have the IF statement, but I continually exceed the allowed amount. Below is the statement:

=IF(D6="TRG-A","1","0")+IF(E6="TRG-A","1","0")+IF(F6="TRG ASSESS","1","0")+IF(G6="TRG ASSESS","1","0")+IF(H6="TRG ASSESS","1","0")+IF(I6="TRG ASSESS","1","0")+IF(J6="TRG ASSESS","1","0")+IF(K6="TRG ASSESS","1","0")+IF(L6="TRG ASSESS","1","0")+
IF(N6="TRG ASSESS","1","0")+IF(O6="TRG ASSESS","1","0")+IF(P6="TRG ASSESS","1","0")+IF(Q6="TRG ASSESS","1","0")+IF(R6="TRG ASSESS","1","0")+IF(S6="TRG ASSESS","1","0")+IF(T6="TRG ASSESS","1","0")+IF(U6="TRG ASSESS","1","0")+IF(V6="TRG ASSESS","1","0")+
IF(X6="TRG ASSESS","1","0")+IF(Y6="TRG ASSESS","1","0")+IF(Z6="TRG ASSESS","1","0")+IF(AA6="TRG ASSESS","1","0")+IF(AB6="TRG ASSESS","1","0")+IF(AC6="TRG ASSESS","1","0")+IF(AD6="TRG ASSESS","1","0")+IF(AE6="TRG ASSESS","1","0")+IF(AF6="TRG ASSESS","1","0")

Each group of 9 statements equates to one day. I need to continue this statement for 2 more days. How do I combine the statement, but retain the individual cell addition. Thanks in advance.

Jeremy
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
My next hurdle - similar IF statement, but I need to add hours from the cell above the IF cell to get the total:

=IF(D6="TRG DEV",D4,"0")+IF(E6="TRG DEV",E4,"0")+IF(F6="TRG DEV",F4,"0")+IF(G6="TRG DEV",G4,"0")+IF(L6="TRG DEV",L4,"0")+
IF(N6="TRG DEV",N4,"0")+IF(O6="TRG DEV",O4,"0")+IF(P6="TRG DEV",P4,"0")+IF(Q6="TRG DEV",Q4,"0")+IF(V6="TRG DEV",V4,"0")+
IF(X6="TRG DEV",X4,"0")+IF(Y6="TRG DEV",Y4,"0")+IF(Z6="TRG DEV",Z4,"0")+IF(AA6="TRG DEV",AA4,"0")+IF(AF6="TRG DEV",AF4,"0")+
IF(AH6="TRG DEV",AH4,"0")+IF(AI6="TRG DEV",AI4,"0")+IF(AJ6="TRG DEV",AJ4,"0")+IF(AK6="TRG DEV",AK4,"0")+IF(AP6="TRG DEV",AP4,"0")+
IF(AR6="TRG DEV",AR4,"0")+IF(AS6="TRG DEV",AS4,"0")+IF(AT6="TRG DEV",AT4,"0")+IF(AU6="TRG DEV",AU4,"0")+IF(AZ6="TRG DEV",AZ4,"0")

Thanks, Jeremy
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top