Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining Range Name | Excel Discussion (Misc queries) | |||
help defining dynamic range | Charts and Charting in Excel | |||
Defining Range within Specific Dates | Excel Worksheet Functions | |||
Defining a range using a cell reference | Excel Worksheet Functions | |||
Defining a range | Excel Worksheet Functions |