ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif based on cell format (https://www.excelbanter.com/excel-worksheet-functions/242383-sumif-based-cell-format.html)

Fun Dan[_2_]

Sumif based on cell format
 
Is it possible to use Sumif based on the cell's format? For example, I want
to add up the numbers in a column that are highlighted green.

T. Valko

Sumif based on cell format
 
Not directly. You'd need some VBA procedures.

See this:

http://www.cpearson.com/Excel/colors.aspx

I recommend not doing it this way.

Write a formula based on the logic of *WHY* the numbers are highlighted
green. If they're highlighted using conditional formatting then you should
be able to write a formula based on the conditional formatting logic.

--
Biff
Microsoft Excel MVP


"Fun Dan" wrote in message
...
Is it possible to use Sumif based on the cell's format? For example, I
want
to add up the numbers in a column that are highlighted green.




ryguy7272

Sumif based on cell format
 
Find all colored cells and sum all:
Here is a quick way without VBA or formulas.
Edit Find clear "Find What" Options Format
"Choose Format From Cell" select sample cell
Find All scroll to end of list, press CTRL+SHIFT
and click on the last entry of the list.
Right click Status Bar and check Sum.

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"T. Valko" wrote:

Not directly. You'd need some VBA procedures.

See this:

http://www.cpearson.com/Excel/colors.aspx

I recommend not doing it this way.

Write a formula based on the logic of *WHY* the numbers are highlighted
green. If they're highlighted using conditional formatting then you should
be able to write a formula based on the conditional formatting logic.

--
Biff
Microsoft Excel MVP


"Fun Dan" wrote in message
...
Is it possible to use Sumif based on the cell's format? For example, I
want
to add up the numbers in a column that are highlighted green.






All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com