+ Reply to Thread
Results 1 to 4 of 4

Find and Replace in Column Based on Heading Name

  1. #1
    Registered User
    Join Date
    10-23-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    5

    Find and Replace in Column Based on Heading Name

    Hi,

    I am struggling to put some VBA together to find and replace within a specific column, based on the column heading rather than the column letter.

    For example;

    I want to find and replace all entries of 'UNITED KINGDOM' in the column with the heading 'COUNTRY'.

    The 'COUNTRY' column will not always be in the same position in the data structure, hence why I need to find and replace based on the column heading.

    Any help would be greatly appreciated!! - I hope I have explained my requirement enough, please let me know if you wish for me to elaborate further.

    Many thanks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,944

    Re: Find and Replace in Column Based on Heading Name

    Maybe something like this

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Find and Replace in Column Based on Heading Name

    Check it out,

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-23-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    5

    Re: Find and Replace in Column Based on Heading Name

    Thanks for the quick response guys!! - both options worked perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  2. Find most recent date in Column Headings in a Range, insert new column and heading
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 08:28 AM
  3. [SOLVED] Find Value in 1 column based on another column then replace with value of yet another.
    By johanbosman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2013, 11:50 AM
  4. [SOLVED] Find column heading then sort the sheet off that column
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 10:00 AM
  5. Find a column heading then sorting the sheet off that column
    By Cluv in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2011, 12:16 AM
  6. Find column heading
    By SPenney in forum Excel General
    Replies: 3
    Last Post: 09-22-2009, 12:25 PM
  7. Replies: 0
    Last Post: 10-13-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1