• 512K Members
• 8,091 Online
• 609K Conversations
SOLVED

New Contributor

# 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 SessionMon A.M.2.5 Hours SessionMon P.M.1 Hour SessionTues A.M.2.5 Hours SessionTues P.M.1 Hour SessionWed A.M.2.5 Hours SessionWed P.M.1 Hour Freddie x x x Bobby x x x x x x Margi x x x x
5 Replies

# Re: Can I give a cell a hidden value and then add hidden value up?

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.

# Re: Can I give a cell a hidden value and then add hidden value up?

@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

Solution

# Re: Can I give a cell a hidden value and then add hidden value up?

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)``

Thank you!!!

# Re: Can I give a cell a hidden value and then add hidden value up?

You're welcome!

If that resolves your question, please take a minute to accept the post with the proposed solution as a Best Response/Answer to mark your question as Solved.