Forum Discussion
Can I give a cell a hidden value and then add hidden value up?
Can I give a cell a value without that value being in the cell? I need to work out TOTAL HOURS/WEEK based on the cells with 'X' being worth a certain number of hours (either 2.5 or 1). Can anyone please help with the correct formula(s)?
| Name | TOTAL HOURS/ WEEK | Session Mon A.M. 2.5 Hours | Session Mon P.M. 1 Hour | Session Tues A.M. 2.5 Hours | Session Tues P.M. 1 Hour | Session Wed A.M. 2.5 Hours | Session Wed P.M. 1 Hour |
| Freddie | x | x | x | ||||
| Bobby | x | x | x | x | x | x | |
| Margi | x | x | x | x |
If you insert a row to have the Hours as shown below...
You can simply use the SUMIF formula in B2 and copy it down.
=SUMIF(C3:H3,"x",$C$2:$H$2)
5 Replies
- Subodh_Tiwari_sktneerSilver Contributor
Why not upload a small sample file with some dummy data (not an image of data) along with desired output mocked up manually so that it would be easy to visualize what exactly you are trying to achieve.
- natjo8Copper Contributor
Subodh_Tiwari_sktneer Thanks for the advice, I'm new to this! I've added a table which hopefully helps explain my query a bit better! Many thanks
- Subodh_Tiwari_sktneerSilver Contributor
If you insert a row to have the Hours as shown below...
You can simply use the SUMIF formula in B2 and copy it down.
=SUMIF(C3:H3,"x",$C$2:$H$2)