SOLVED

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

Copper Contributor

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 xxxxxx
Margi xxx  x
5 Replies

@natjo8 

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.

@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

best response confirmed by natjo8 (Copper Contributor)
Solution

@natjo8 

If you insert a row to have the Hours as shown below...

Total Hours.jpg

 

You can simply use the SUMIF formula in B2 and copy it down.

=SUMIF(C3:H3,"x",$C$2:$H$2)

 

 

@natjo8 

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.

1 best response

Accepted Solutions
best response confirmed by natjo8 (Copper Contributor)
Solution

@natjo8 

If you insert a row to have the Hours as shown below...

Total Hours.jpg

 

You can simply use the SUMIF formula in B2 and copy it down.

=SUMIF(C3:H3,"x",$C$2:$H$2)

 

 

View solution in original post