Link to home
Start Free TrialLog in
Avatar of tiras gans
tiras gansFlag for United States of America

asked on

Easy way to exclude cells in Excel Sum formula?

I have a column of numbers. I want to temporarily exclude few cells from being included in the Sum formula.  Then add them back.
Right now I have =SUM(K16:K34)
I want to exclude K20 and K22.  

 Is there an easy way to do this?
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Use this formula..

 =SUM(K16:K34)-sum(K20,K22)

or

=sum(K16:K19,K21,K23:K34)

Saurabh...
Avatar of tiras gans

ASKER

I was just hoping something easier to click to exclude and then put it back :)
I guess not..
I would do

=SUM(K16:K34)-K20-K22
Thanks guys.  I knew I could do it.  Was just hoping for something easier like click->exclude.  I guess not then.
ASKER CERTIFIED SOLUTION
Avatar of Eirman
Eirman
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very cool idea.  Thanks Eirman!
I was still thinking to something simpler like point-n-click but maybe this is just in my head :)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do it yourself in stages and keep asking questions here.
Post a sample workbook of your progress, and experts are more likely edit it and post it back.
For a small range such as you are describing; highlight the first block, press ctrl and then highlight the next block. Only those required will be highlighted and the total will show on the status bar.

Thanks
Rob H
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial