Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 'i want to add up all the bold cells in a column using the 'sumif' formula. How do I do this? I don't know how to signify 'bold' in the formula bar I'm using Excel 2002 -- tevia |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Tevia,
What determines whether the cell contents are bold or otherwise? "tevia" wrote: 'i want to add up all the bold cells in a column using the 'sumif' formula. How do I do this? I don't know how to signify 'bold' in the formula bar I'm using Excel 2002 -- tevia |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Ewan,
Each bold cell is the autosum of the few cells above it. The number of cells being added up differs each time, so, for example, I have autosums of cells h2 to h18 followed by an autosum of cells h20 to h115, then h116 to h196 and so on. -- tevia "ewan7279" wrote: Hi Tevia, What determines whether the cell contents are bold or otherwise? "tevia" wrote: 'i want to add up all the bold cells in a column using the 'sumif' formula. How do I do this? I don't know how to signify 'bold' in the formula bar I'm using Excel 2002 -- tevia |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can't use formatting directly in excel's worksheet functions.
You could create your own user defined function that looks at the format of the cell: Option Explicit Function isBold(rng As Range) As Variant application.volatile If rng(1).Font.Bold Then isBold = True ElseIf IsNull(rng(1).Font.Bold) Then isBold = "Mixed" Else isBold = False End If End Function Then you can use it in a worksheet cell like: =isbold(a1) Then you can use your =sumif() against that column. But be aware that changing the boldness of a cell is not something that causes excel to recalculate. Hit alt-ctrl-F9 to force it recalc (before you trust the results). If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm tevia wrote: 'i want to add up all the bold cells in a column using the 'sumif' formula. How do I do this? I don't know how to signify 'bold' in the formula bar I'm using Excel 2002 -- tevia -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Tevia,
Enter a help column in column A. Next to each total row, in column A, type 'TOTAL' into the cell. Assuming your data is in rows 1 to 99, in column B100, enter the formula: = SUMIF($A$1:$A$99,"total",B1:B99) and drag this across as many columns as needed. Reply if you need any more help. Ewan. "tevia" wrote: Hi Ewan, Each bold cell is the autosum of the few cells above it. The number of cells being added up differs each time, so, for example, I have autosums of cells h2 to h18 followed by an autosum of cells h20 to h115, then h116 to h196 and so on. -- tevia "ewan7279" wrote: Hi Tevia, What determines whether the cell contents are bold or otherwise? "tevia" wrote: 'i want to add up all the bold cells in a column using the 'sumif' formula. How do I do this? I don't know how to signify 'bold' in the formula bar I'm using Excel 2002 -- tevia |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search open sheets in workbook and insert into open sheet | Excel Discussion (Misc queries) | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions | |||
Search within workbook | New Users to Excel | |||
Wildcard search functions within Vlookup | Excel Worksheet Functions | |||
FAQ Spreadsheet with search function | Excel Discussion (Misc queries) |