+ Reply to Thread
Results 1 to 5 of 5

Replace single recurring value with value from list

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy Replace single recurring value with value from list

    Hello! I'm a major coding newbie and recently had someone make a request that I can't fulfill. I know it's possible, but I don't have the knowhow to put it into action, so I was wondering if anyone here could help.

    Basically we're working with a huge spreadsheet, 8 columns, 2000 rows, and there's a particular value (we'll say it's the word "NAME") that occurs multiple times in each row. We want that value to be replaced row by row with a different value from a list. So, for instance, on row 1 "NAME" would be replaced with "NAME_LOWERCASE", and then on row 2 with "NAME_UPPERCASE", and row 3 with "NAME_BACKWARD," etc. There are a total of 6 different values we need to replace the original 1, row by row through the entire sheet. Each instance of the original value in the row needs to be replaced with the same variable value from the list, through the entire sheet.

    It's way outside my knowledge of code, but it feels like it should be simple. (Kind of driving me insane, like having a word on the tip of my tongue.) Any help would be appreciated!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Replace single recurring value with value from list

    To have a clearer picture, please post a sample of the workbook, maybe with about 50 rows, to see how is the "NAME" being repeated. Also provide the list of values to be replaced with. And on a separate worksheet with the desired results shown would be very helpful.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Replace single recurring value with value from list

    Hi, nashi,

    the items are on a sheet called List starting in A1 and B1 going down the rows, the data is located in sheet Data (alter names and ranges to suit):
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Replace single recurring value with value from list

    Hi Holger,

    I believe what OP wants is very different. I am guessing he has "NAME" across several rows, and then repeats in a certain sequence.

    e.g.
    Please Login or Register  to view this content.
    That's my understanding though, could be wrong. We'll see what OP says.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Replace single recurring value with value from list

    Hi, miliz,

    this sentence made up my code:
    Quote Originally Posted by Opening post
    Each instance of the original value in the row needs to be replaced with the same variable value from the list, through the entire sheet.
    Ciao,
    Holger

+ 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: 0
    Last Post: 06-13-2012, 09:16 PM
  2. Multiple Find and Replace to replace a list of strings
    By WalterP34 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2011, 07:41 PM
  3. Macro required to generate recurring list using frequency and calendar inputs
    By rowlandrat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2011, 05:28 AM
  4. Transposing Recurring List of Records
    By TXWildcard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2008, 04:15 PM
  5. replace number from a range with single value
    By Shirley M. in forum Excel General
    Replies: 3
    Last Post: 06-14-2006, 04:10 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