Row selections

divapaxo

Board Regular
Joined
Feb 4, 2005
Messages
110
Hi All

could someone please advise how i can get my pivot table to only
return rows where column A contains the wording TOTAL

thank you
:confused:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
Hi. Welcome to the Board.

A pivot table will not work well with substrings. By "contains the word TOTAL" do you mean
1) the value of the Cell is TOTAL or
2) that the value of the cell is possibly TOTAL DUE or TOTALQTY, or other variations of TOTAL.

If the answer above is 1), then you want to create a page field. You can then filter the pivot table to display only the TOTAL items.

If the answer to the above is 2), then you want to create a column in your source data that you can then use as a page field. If possible:
Insert a new column B
Enter the formula in Cell B2 =IF(ISERROR(SEARCH("total",A2)),0,1)
Search() is not case-sensitive. You can now use this column as a page field to display only those rows where the formula above returns a 1 (meaning it found "Total" somewhere in the A Cell next to it.

Hope this helps.
 

Forum statistics

Threads
1,181,404
Messages
5,929,750
Members
436,687
Latest member
Glass of Gin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top