Can I replace contents of a cell without a helper column?

yabi100

Board Regular
Joined
Aug 10, 2013
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
I have a defined table. I want to amend contents of few cells in a column. This is mainly because operator for input of data didn't use a data validation rule and there are minor mistakes in spelling of contents. For example, cells are like this: Main gate, Main_gate, Main-gate and I have to correct them in order to get proper report in pivot table. Some are much more hard to grasp like: Main gate south, Main gate north. I have to change all of them into Main gate. If there is a fast way to do it, let me know. If there isn't and I have to do it manually (and I think so) can I change without using a helper column?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
In short: Use Power Query, but it will generate a new table, so that's sort of a helper column.
 
Upvote 0
I have a defined table. I want to amend contents of few cells in a column. This is mainly because operator for input of data didn't use a data validation rule and there are minor mistakes in spelling of contents. For example, cells are like this: Main gate, Main_gate, Main-gate and I have to correct them in order to get proper report in pivot table. Some are much more hard to grasp like: Main gate south, Main gate north. I have to change all of them into Main gate. If there is a fast way to do it, let me know. If there isn't and I have to do it manually (and I think so) can I change without using a helper column?
Do they all start with "Main" followed by something else? If so, you can simply select the column with the values, press Ctrl+H (replace) Find what: Main* Replace with: Main gate and click on Replace All.
 
Upvote 0
I am aware of find and replace (control+H).That is a solution but looking for a better way. perhaps query is a better way.
 
Upvote 0
In short: Use Power Query, but it will generate a new table, so that's sort of a helper column.
Thanks for your reply. New table is OK. Let me tell what I did. I used query to collect data from 4 different files, each file for a year. Then I made these amendments manually in the query table but when I build the pivot table it ignores my manual amendments and brings original filed values. I assume it is not a correct way to amend a query table manually. What I did to overcome this issue, I copied the query table to another sheet, changed it to range. This solved my problem but I know it is not a wise solution. I should amend field values before building the main query table.
 
Upvote 0
Thanks for your reply. New table is OK. Let me tell what I did. I used query to collect data from 4 different files, each file for a year. Then I made these amendments manually in the query table but when I build the pivot table it ignores my manual amendments and brings original filed values. I assume it is not a correct way to amend a query table manually. What I did to overcome this issue, I copied the query table to another sheet, changed it to range. This solved my problem but I know it is not a wise solution. I should amend field values before building the main query table.
You can probably build a helper column in Power Query that flags cells containing "Main".
 
Upvote 0

Forum statistics

Threads
1,214,560
Messages
6,120,217
Members
448,951
Latest member
jennlynn

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
Back
Top