+ Reply to Thread
Results 1 to 14 of 14

Replacing a list of values in just one column with certain text

  1. #1
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Question Replacing a list of values in just one column with certain text

    I am creating a template for formatting data that I download from a wholesaler to upload to a platform.
    The large database of around 1300 records that comes with category and subcategory names, among all the rest of the data, that I download
    There are more column titles and information than I need, so my template will have blank headings that I will know to simply delete after I paste. Maybe there is a Macro for that too.
    The category and subcategory names to appear in certain columns. I want those names to appear in multiple columns within the same records. It's embarrassing, but I have not even been able to figure out how to create a formula/macro to copy all of the data in one column to a different column with a different heading and keep those headings different and save them within my template.
    I have a list of the 240 with CategoryID, ParentID, Category and Subcategory all corresponding. These always come and go in CSV format, so I cannot create additional sheets to save within my template without a hassle.
    In two ID number value columns, I would like all of the text names replaced with corresponding numbers for upload to the platform that requires them.
    I have been trying to figure out the best way to create a macro to save within my template for daily use, but so far I have not been able to figure it out. I have been watching videos on vlookup, index & match, find & replace...I have not seen what I need just yet

    OK, SO HERE IS MY PRODUCT TEMPLATE SO FAR: https://drive.google.com/file/d/0B5F...it?usp=sharing
    Last edited by ljeanbeans; 05-19-2014 at 08:36 AM. Reason: adding link to worksheet

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    It would help us if you were able to post a sample of your before and after scenarios, then we could take a look for you.
    Tony

  3. #3
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Ok, so I added a link to the worksheet, above. The other thing I didn't mention, which I will be able to do manually in one fell swoop, is that the second row is just the headers from the download that will be deleted before upload.
    There are just so many records, and so many unique values that all need to be converted, I am having a hard time understanding how to do this easily.
    The 240 unique Categories are pasted here far to the left. Those, also, I do not want to show within the sheet as they are. But, they are what I need to include in a macro.
    Does what I need to get done seem straight-forward to you.

  4. #4
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    It's actually still a mess, right now, I apologize. That's why I didn't link it to begin with. I want these functions/formulas/macros to work. I obviously need to get the top row of headers completely finished. i.e. B1 needs to say "parentid". Also, "productname" needs to be in A-1. I should be able to create a macro that will do that, easily. productname is the only column that needs to be in a certain location within the spreadsheet
    But, the data comes uploaded differently. The second row are the headings in the download format.
    Where the second row of headers end is how many columns exist within each download. So, the top row of needed headers for the formatted upload automatically corresponds to those. That's why there are so many blank columns. Much of the data isn't necessary.
    Last edited by ljeanbeans; 05-19-2014 at 08:50 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    Hi
    Sorry but a template does not really help. If you can post a sample of the raw data (before scenario) and the required result (after scenario) I can then make a call as to whethere I can help you or not. Without that info I can't see clearly what you are looking for.
    Tony

  6. #6
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Okay, I actually want to keep my values confidential.
    Would there be a straightforward way to:
    1300 rows of records, each with one of 240 subcategories, and change just the category ID columns from text to ID
    How to keep that a-z list of subcategories out of the template.
    At this rate, I'm guess that a find and replace for just just those columns. A separate operation for each of the 240 subcategories

  7. #7
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    Hi
    I fully understand why you want to keep data confidential. However for us to be able to help you you need to help us.
    Even if it is dummy data.
    Tony

  8. #8
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Ok, So Now you should see this pretend template that I uploaded. The list of categorys/subcategorys and their categoryid/parentid are to the far far right and is much shorter.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Being a single Mother is not very easy when you have a 2 yr old 24/7

  10. #10
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    Hi
    If I understand you correct you have some source data (as per the sample you provided) and you want it imported to your own format, YES?
    Please see row 4 for my comments in red to check if my assumptions are correct and answer the questions I have raised in some columns. Then I believe we can get somewhere :-).
    Tony

  11. #11
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Please help. I don't understand where to find row 4 with your comments. I don't see where you uploaded any attachments.

  12. #12
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    Hi
    Sorry :-( forgot to attach it. Here it is.
    Tony
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-18-2014
    Location
    Chequamegon Bay, Lake Superior
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Replacing a list of values in just one column with certain text

    Okay, so the column headers for the source data are in row 3.
    They all need to be replaced with the column headers in row 1. I am only concerned about the column headers in row 1 for upload.
    The source data will have information in each column to where the headings end in row 3, and not all of those will be needed.
    I'll simply delete row 2 and 3.
    All of the blank headings in row 1 need to be deleted too. It would be nice If I could delete all the columns in row 1 that have blank column headings at once with a macro, as those will correspond to source data values that I do not need.

    For this dummy data, I'm only concerned about converting or working with data in the columns that have values includes, and not even all of those.

  14. #14
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Replacing a list of values in just one column with certain text

    Hi
    Thanks for the clarity. Here is where I am so far. I have renamed the data sheet to "Products" which will hopefully be generic, if you want a different name then let me know. I have produced a macro which removes all the blank columns and renames the headings.
    I have replace the original data so you can test the macro. when you open the workbook run the macro called "FormatProductData" and let me know if this is what you are after.
    Good luck.
    Tony
    Attached Files Attached Files

+ 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. [SOLVED] Replacing text selected in drop down list
    By doogle86 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-20-2014, 09:07 PM
  2. [SOLVED] Replacing formula values with text/raw values
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 12:36 PM
  3. Replies: 1
    Last Post: 06-30-2012, 01:45 PM
  4. Replacing Text in Code from a List
    By samfarrugia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2012, 06:39 AM
  5. [SOLVED] Replacing values based on a set list
    By Lee in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 11:06 AM

Tags for this Thread

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