Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Defining a Range with Criteria

I'm using a COUNTIF formula as a helper column next to a pivot table. One of
the columns (call it column A) of the pivot table has two possible values,
and I want the COUNTIF formula to only count the data in column B if column A
has a particular value.
That is, I'd like to define the range of COUNTIF to be all rows where Column
A = MyValue. VLOOKUP in the range field doesn't seem to work, and I'm kinda
out of ideas. Any suggestions?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default Defining a Range with Criteria

Not sure if this is the problem, but formulas tend to be a problem when using
pivot tables if you click on the cell of the pivot table. In my experience it
is much better to type out the actual range you are wanting to perform
formulas on.

Otherwise post the actual formula you have

"Mark R." wrote:

I'm using a COUNTIF formula as a helper column next to a pivot table. One of
the columns (call it column A) of the pivot table has two possible values,
and I want the COUNTIF formula to only count the data in column B if column A
has a particular value.
That is, I'd like to define the range of COUNTIF to be all rows where Column
A = MyValue. VLOOKUP in the range field doesn't seem to work, and I'm kinda
out of ideas. Any suggestions?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Defining a Range with Criteria

Thanks for your reply. Exact formula that I'm using now:

=COUNTIF(AW$6:AW$10000,AW7)

This formula counts AW7=Column B, but does so regardless of the value in
Column A (see above post).

"Mark R." wrote:

I'm using a COUNTIF formula as a helper column next to a pivot table. One of
the columns (call it column A) of the pivot table has two possible values,
and I want the COUNTIF formula to only count the data in column B if column A
has a particular value.
That is, I'd like to define the range of COUNTIF to be all rows where Column
A = MyValue. VLOOKUP in the range field doesn't seem to work, and I'm kinda
out of ideas. Any suggestions?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Defining a Range with Criteria

Just found what I needed in another post, courtesy of Gary's Student. Post
follows:

Use SUMPRODUCT(), it can handle multiple columns and multiple criteria:

=SUMPRODUCT(--(A1:A1000="James"),--(B1:B1000="x"))

See:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Gary''s Student - gsnu200800

"Mark R." wrote:

Thanks for your reply. Exact formula that I'm using now:

=COUNTIF(AW$6:AW$10000,AW7)

This formula counts AW7=Column B, but does so regardless of the value in
Column A (see above post).

"Mark R." wrote:

I'm using a COUNTIF formula as a helper column next to a pivot table. One of
the columns (call it column A) of the pivot table has two possible values,
and I want the COUNTIF formula to only count the data in column B if column A
has a particular value.
That is, I'd like to define the range of COUNTIF to be all rows where Column
A = MyValue. VLOOKUP in the range field doesn't seem to work, and I'm kinda
out of ideas. Any suggestions?

Thanks!

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
Defining Range Name anshu[_2_] Excel Discussion (Misc queries) 2 July 22nd 07 07:30 AM
help defining dynamic range joecrabtree Charts and Charting in Excel 0 December 6th 06 03:33 PM
Defining Range within Specific Dates Cardan Excel Worksheet Functions 0 July 26th 06 08:17 PM
Defining a range using a cell reference jagbabbra Excel Worksheet Functions 5 June 5th 06 01:36 PM
Defining a range Don Excel Worksheet Functions 1 February 25th 05 03:54 PM


All times are GMT +1. The time now is 11:35 PM.

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

About Us

"It's about Microsoft Excel"