ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table - replace numbers with a text (https://www.excelbanter.com/excel-discussion-misc-queries/260767-pivot-table-replace-numbers-text.html)

vinstream

Pivot Table - replace numbers with a text
 
Hi,

I have a Pivot table with some numbers in it. Is there a way to
replace the numbers with a text?

For example: replace all numbers 1 with "yes" . Is this possible? If
not whats the best way to achieve this?


Regards,

Vinstream



ozgrid.com

Pivot Table - replace numbers with a text
 
Only by changing your data source. Eg.

Sub Test()
Dim rCell As Range

For Each rCell In Range("DataSource").Columns _
(2).SpecialCells(xlCellTypeConstants, xlNumbers).Cells
If rCell 1 Then rCell = "yes"
Next rCell
End Sub


"vinstream" wrote in message
...
Hi,

I have a Pivot table with some numbers in it. Is there a way to
replace the numbers with a text?

For example: replace all numbers 1 with "yes" . Is this possible? If
not whats the best way to achieve this?


Regards,

Vinstream





All times are GMT +1. The time now is 03:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com