# sum values

I would like to get the best approach to summing values  like.

workbook attached
book-one-test.xlsb
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Hi,

You could create a Table by selecting your range and Insert / Tables / Table

and the use  formula

``````=SUM(Table1[A],Table1[b],Table1[c])
``````
Regards
book-one-testV1.xlsb
0
Commented:
You can use the following array formulas
Entered using [ctrl]+[shift]+[enter]...

=SUM(\$D\$5:\$I\$8,N(D4:I4<>"*rem"))
=SUM(\$D\$5:\$I\$8,N(D4:I4="*rem"))

See attached
U--book-one-test.xlsb
0
Commented:
I think my solution is the correct one.  all others does not show the correct outcome :-)

check the attached file.
EE.xlsb
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
@JimJam

You do not show the total sum of hours but only the rest of division by day 6: 00 instead of 30:00

You have not changed the format like I did [hh]:mm ;-)
0
Commented:
@Rgonzo1971

by all means, your number is also correct. sorry did not see the format ;-)  but you can agree with me that sum product is dynamic, if you change the title of the header by either adding *rem or otherway around removing the rem, then your table sum is not updated, whereas the sumproduct catches that one :-)

anyways, you are the genius
0
Commented:
with three different formats attached. :-)
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.