Computing.Net > Forums > Office Software > Excel formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Excel formula

Reply to Message Icon

Name: Giamma
Date: November 26, 2003 at 10:13:27 Pacific
OS: win xp
CPU/Ram: amd athlon xp 512ddr
Comment:

Hi, I need a help.
I hope my english is good enough, I don't know the exact english words used to describe Microsoft Excel features...
I'd like to know if there is a way to sum colored cells.
I mean: I have a coloumn of cells with different numbers, I want excel to sum only the numbers in the colored cells; is it possible?
Thank you if you can help!





Response Number 1
Name: Student
Date: November 26, 2003 at 10:50:15 Pacific
+1
Reply:

You could go to the cell that you want the total to show in and type: = and then select the first cell you would like in the total. Then type + and select the next cell and so on untill all cells are selected that you would like in the total. Something like this: =A1+A4+A6 Although this may be a big task if you have a very large spreadsheet. Hope that helps.



Response Number 2
Name: Bryco
Date: November 26, 2003 at 12:52:34 Pacific
+1
Reply:

I understand that it cannot be donw with a formula but it canbe done using VBA.

See http://www.cpearson.com/excel/colors.htm for some good information.

Your question is answered under "Summing The Values Of Cells With A Specific Color" and they have the code too.

If you need to know how to use that code then post back.

HTH
Bryan



Response Number 3
Name: giamma13
Date: November 27, 2003 at 09:06:58 Pacific
+1
Reply:

unfortunately I don't know how to use VBA so I couldn't solve the problem, I tried writing down the function found in the web site in the VBA software of excel but afterwards I wasn't able to use it in excel worksheet.
Maybe it's too hard for a complete beginner of VBA like me!
If you can tell me step by step how to do it, I would be really grateful, otherwise no problem! Thank you anyway



Response Number 4
Name: Bryco
Date: November 27, 2003 at 18:31:00 Pacific
+1
Reply:

I will try tomorrow.

Bryan



Response Number 5
Name: giamma13
Date: November 28, 2003 at 10:22:13 Pacific
+1
Reply:

I could do it by myself!!! :-)
Thank you very much anyway, you've been very helpful!
bye



Related Posts

See More



Response Number 6
Name: Bryco
Date: November 30, 2003 at 06:07:50 Pacific
+1
Reply:

Sorry I was not able to back to you sooner. Had too many house guests this week.

"I could do it by myself!!! :-)"

I hope you mean that you were able to figure out how to use the function described in the link.

Copy the text.
Go to Excel spreadsheet and hit Alt+F11.
Go to Insert, Module, Paste.
Save

From within Excel hit the Function button.
Select 'User defined' at the bottom of the left hand column and 'SumByColor' from the right.

False = Background colors
True = Font colors

Bryan



Reply to Message Icon

Adobe Distiller DPI setti... Outlook Macro Problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Google Ads



Results for: Excel formula

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

Problems with Excel Formulas www.computing.net/answers/office/problems-with-excel-formulas/5502.html

Excel formula...again... www.computing.net/answers/office/excel-formulaagain/6741.html