Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default filtering data to include values only if x and y exist

Excel 2003
Hope somebody can help with the following. I have information x and y in the
same column concerning A (persons)in a pivot table. I would like to show
information x and y per person only if x and y both have a value. If x or y
doesnt have a value then the person in question should not be shown in the
report. I am not sure if pivot table is the best tool for this, but I do not
know of any other better tool. Ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default filtering data to include values only if x and y exist

Hans,

Insert another column into your data table, with a formula like

=AND(x<"",y<"")

like

=AND(C2<"",D2<"")

(Copied down to match your table)

The formula will return FALSE if either cell is blank, and TRUE only if both are non-blank.

Then use that column as either a page or row field for your pivot table.

HTH,
Bernie
MS Excel MVP


"Hans" wrote in message
...
Excel 2003
Hope somebody can help with the following. I have information x and y in the
same column concerning A (persons)in a pivot table. I would like to show
information x and y per person only if x and y both have a value. If x or y
doesn't have a value then the person in question should not be shown in the
report. I am not sure if pivot table is the best tool for this, but I do not
know of any other better tool. Ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default filtering data to include values only if x and y exist

Thanks for the help. I will try it out.

"Bernie Deitrick" wrote:

Hans,

Insert another column into your data table, with a formula like

=AND(x<"",y<"")

like

=AND(C2<"",D2<"")

(Copied down to match your table)

The formula will return FALSE if either cell is blank, and TRUE only if both are non-blank.

Then use that column as either a page or row field for your pivot table.

HTH,
Bernie
MS Excel MVP


"Hans" wrote in message
...
Excel 2003
Hope somebody can help with the following. I have information x and y in the
same column concerning A (persons)in a pivot table. I would like to show
information x and y per person only if x and y both have a value. If x or y
doesn't have a value then the person in question should not be shown in the
report. I am not sure if pivot table is the best tool for this, but I do not
know of any other better tool. Ideas?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default filtering data to include values only if x and y exist

On Nov 2, 5:32 am, Hans wrote:
Excel 2003
Hope somebody can help with the following. I have information x and y in the
same column concerning A (persons)in a pivot table. I would like to show
information x and y per person only if x and y both have a value. If x or y
doesn't have a value then the person in question should not be shown in the
report. I am not sure if pivot table is the best tool for this, but I do not
know of any other better tool. Ideas?


You can filter column x and column y to display non-blanks. Use Data-
Filter-AutoFilter with your whole range selected. Then, use the last
option in the drop down for columns x and y, which is (NonBlanks).

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default filtering data to include values only if x and y exist

Thanks for the good tips. However,x and y are in the same column. This means
if the name of the person Smith is in column A1, information x is in column
B1. Smith is also in A2 and y is in B2. The value is in a third column C. If
person Smith has x and y then I want it to show values in column C, otherwise
the value should not be shown.

"iliace" wrote:

On Nov 2, 5:32 am, Hans wrote:
Excel 2003
Hope somebody can help with the following. I have information x and y in the
same column concerning A (persons)in a pivot table. I would like to show
information x and y per person only if x and y both have a value. If x or y
doesn't have a value then the person in question should not be shown in the
report. I am not sure if pivot table is the best tool for this, but I do not
know of any other better tool. Ideas?


You can filter column x and column y to display non-blanks. Use Data-
Filter-AutoFilter with your whole range selected. Then, use the last
option in the drop down for columns x and y, which is (NonBlanks).




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
Filtering out single values (keeping only repeating data) anthonyd Excel Discussion (Misc queries) 3 July 11th 07 08:12 AM
Calculate average and not include zero values k1ngy Excel Discussion (Misc queries) 5 March 6th 07 07:59 PM
Returning the desired value if multiple values exist???? njuneardave Excel Worksheet Functions 1 June 21st 06 08:32 PM
Ascertaining whether external data sources or hyperlinks exist Paul Martin Excel Discussion (Misc queries) 3 June 20th 06 04:55 AM
Do the values in a range of cells include all members of a set? Dave Excel Discussion (Misc queries) 5 May 26th 06 09:36 PM


All times are GMT +1. The time now is 02:39 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"