Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count funtion in Pivot Table

I'm trying to use a pivot table to count the results of a IF statement which
has conditional formatting attached.

The if statement returns a "1" results if the column date falls within a
specified date range. The conditional formatting then assigns this cell a
certain colour. I would like to input this data into the Pivot Table along
with other row data in order to report on it.

Currently when I do this Excel takes every cell as having a value due to the
IF statement / conditional formatting. I have been able to calculate the
total number of cells in the column which contain a "1" value by doing a
SUMIF with a VALUE field for the "1" but I don't know if I can do this with
the Pivot Table.

Hope that all made some sense. Any ideas on how to include this data in a
pivot table?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Count funtion in Pivot Table

If it a number 1, not a text "1", you could use the Sum function in the
pivot table.

Aussie Mick F wrote:
I'm trying to use a pivot table to count the results of a IF statement which
has conditional formatting attached.

The if statement returns a "1" results if the column date falls within a
specified date range. The conditional formatting then assigns this cell a
certain colour. I would like to input this data into the Pivot Table along
with other row data in order to report on it.

Currently when I do this Excel takes every cell as having a value due to the
IF statement / conditional formatting. I have been able to calculate the
total number of cells in the column which contain a "1" value by doing a
SUMIF with a VALUE field for the "1" but I don't know if I can do this with
the Pivot Table.

Hope that all made some sense. Any ideas on how to include this data in a
pivot table?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Count funtion in Pivot Table

I don't believe that you can use pivot tables to take into account the number
of cells to which conditional formatting is applied, at least without writing
a macro.

You can, however, use the COUNTIF function to count the occurrences of a
certain date. Assume the condition you're interested in counting is dates
that show 10/1/2006 (using the American mm/dd/yyyy format), and the dates in
question are in column A. =COUNTIF(A1,A100,"10/1/2006") will count all the
records for which the corresponding date is 10/1/2006.

Does that do what you're looking to accomplish?

There is, however, a way to count colored cells with macros. See he
http://www.cpearson.com/excel/colors.htm Personally, I think this is much
more complicated than the method I give above.

Post back if you have questions.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Aussie Mick F" wrote:

I'm trying to use a pivot table to count the results of a IF statement which
has conditional formatting attached.

The if statement returns a "1" results if the column date falls within a
specified date range. The conditional formatting then assigns this cell a
certain colour. I would like to input this data into the Pivot Table along
with other row data in order to report on it.

Currently when I do this Excel takes every cell as having a value due to the
IF statement / conditional formatting. I have been able to calculate the
total number of cells in the column which contain a "1" value by doing a
SUMIF with a VALUE field for the "1" but I don't know if I can do this with
the Pivot Table.

Hope that all made some sense. Any ideas on how to include this data in a
pivot table?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Count funtion in Pivot Table

Hi

If your column does have text "1"'s rather than numeric 1's and you want
to leave this as your CF is based upon these text values, you could add
another column to your table and make it
=--(A1)
or whatever the column letter is for these values.
Copy down as required. Give the column header a name.
This will turn text values into Numeric's
Include this new column in your PT and Sum by this column

--
Regards

Roger Govier


"Aussie Mick F" <Aussie Mick wrote in
message ...
I'm trying to use a pivot table to count the results of a IF statement
which
has conditional formatting attached.

The if statement returns a "1" results if the column date falls within
a
specified date range. The conditional formatting then assigns this
cell a
certain colour. I would like to input this data into the Pivot Table
along
with other row data in order to report on it.

Currently when I do this Excel takes every cell as having a value due
to the
IF statement / conditional formatting. I have been able to calculate
the
total number of cells in the column which contain a "1" value by doing
a
SUMIF with a VALUE field for the "1" but I don't know if I can do this
with
the Pivot Table.

Hope that all made some sense. Any ideas on how to include this data
in a
pivot table?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table: how to count unique? need help! luiss Excel Discussion (Misc queries) 8 June 17th 06 02:18 AM
Derived Columns in Pivot Table sa02000 Excel Discussion (Misc queries) 1 February 8th 06 07:18 PM
Count unique values - Pivot Table Thomas Mueller Charts and Charting in Excel 0 November 2nd 05 01:05 PM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
Pivot table Data always showing up as "Count" qwopzxnm Excel Discussion (Misc queries) 1 September 26th 05 06:27 PM


All times are GMT +1. The time now is 09:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"