Closed Thread
Results 1 to 15 of 15

Mapping Data? There must be a way of doing this quickly... But I have no idea how!

  1. #1
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    I have a set of data for an old system we used to use and I need to put this data into my new system with the new wording. Imagine it is something like this

    Old Code New Code
    Apple Red Apples R
    Apple Green Apples G
    Orange standard Oranges N/A
    Grape Red Grapes R
    Grape Green Grapes G

    I need a way of quickly changing all the old codes to the new codes in my master document... Is there a simple way of doing this for multiple columns?

    My second question is how I can potentially manage this if I have more or less data in one of the sets... see below... (Although I might be able to put some leg work in to get the numbers somewhat match.)
    Old Code New Code
    Apple Red Apples
    Apple Green Apples
    Orange standard Oranges
    Grape Red Grapes
    Grape Green Pineapples

    Any help here greatly appreciated!!!!
    Last edited by ggggggina; 03-21-2018 at 04:18 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,203

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    And when you have changed the title please post a sample file

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    If I knew how to more accurately describe this issue then I would have googled it already... Can you help with suggested wording based on my issue?

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,844

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification.

    All participants:
    Please do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    You actually deleted their response also? How are you supposed to run a helpful forum where you refuse to help? I clearly requested help from you and rather than suggest a response you delete the only person who tried to actually help? You spiteful *****

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Careful; people who post things that appear as ***** risk getting thrown out on their asterisks.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,844

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    The asterisks in the other thread title were added by me to replace foul language, which will not be tolerated.

    You need to abide by the forum rules, just like everyone else.

    Your thread title needs to explain the problem you wish to solve. Once you have changed it, you may receive help.

  8. #8
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    You would need to separate the Old Code and New Code values into separate columns in a 'Key' sheet.

    Adjust the sheet names, and range, as needed


    Sub Test()

    Dim StartRow As LongPtr _
    , LastRowKey As LongPtr _
    , LastRowNewData As LongPtr _
    , OldCode As String _
    , NewCode As String

    LastRowKey = Sheets("Key").Cells(Rows.Count, "A").End(Excel.xlUp).Row
    LastRowNewData = Sheets("NewSystem").Cells(Rows.Count, "A").End(Excel.xlUp).Row

    If LastRowKey > 1 And LastRowNewData > 1 Then

    For StartRow = 2 To LastRowKey

    OldCode = Sheets("Key").Range("A" & StartRow & "")
    NewCode = Sheets("Key").Range("B" & StartRow & "")

    For Each Cell In Sheets("NewSystem").Range("A2:B" & LastRowNewData & "")

    If InStr(Cell, OldCode) > 0 Then

    Cell.Value = Replace(Cell, OldCode, NewCode)

    End If

    Next

    OldCode = ""
    NewCode = ""

    Next

    End If

    End Sub

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Sure, I'll jump in...

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    HTH
    Regards, Jeff

  10. #10
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    I don't even know what code is... I was copying and pasting the previously deleted post in case this helped anyone else... I still have no idea what will help me... maybe one day a moderator without a rod up their **** will help?
    Last edited by AliGW; 03-21-2018 at 06:49 PM.

  11. #11
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Quote Originally Posted by AliGW View Post
    The asterisks in the other thread title were added by me to replace foul language, which will not be tolerated.

    You need to abide by the forum rules, just like everyone else.

    Your thread title needs to explain the problem you wish to solve. Once you have changed it, you may receive help.
    How is "Mapping data" not the problem? I want to map data? If you want it called something else, maybe you should suggest something

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,844

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    I would if I had any idea what you meant.

    You are lucky that you have not been banned, at least temporarily. I suggest you calm down, take a moment to read the forum rules and then calmly explain what you are trying to achieve.

  13. #13
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    7

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Quote Originally Posted by AliGW View Post
    I would if I had any idea what you meant.

    You are lucky that you have not been banned, at least temporarily. I suggest you calm down, take a moment to read the forum rules and then calmly explain what you are trying to achieve.
    If you read my original post I had hoped it explained that already? I have a set of data I need to map to new wording for the system to read it? Maybe if you read my post you would see it isn't as simple as putting that in a sentence in the title?

  14. #14
    Registered User
    Join Date
    03-21-2018
    Location
    Worcester, England
    MS-Off Ver
    2016
    Posts
    1

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    ......I don't actually care if you ban me because you're the least helpful group of people I have ever come across. I couldn't add my example in a table because it started bringing up all this code stuff... I'm obviously not tech savvy or I wouldn't need to come on a forum to ask for help, and you insult me even further by picking up on the language I use to explain my problem because I don't know exactly how to articulate it in a sentence. You're all just rude and unhelpful and I'm really disappointed. I thought these things would be full of helpful people with good ideas on how to help people struggling who aren't as good at using technology as others... Now I see it is just a power trip for you all sitting there just waiting eagerly to press your regulation buttons. It's sad really. Enjoy your forum.

  15. #15
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Mapping Data? There must be a way of doing this quickly... But I have no idea how!

    Thread closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Have no idea how to get this done. Please help.
    By Leonard99321 in forum Excel General
    Replies: 4
    Last Post: 08-17-2013, 06:03 AM
  2. No Idea What I Am Doing
    By Phil8872 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-10-2013, 02:15 PM
  3. Idea for ID
    By zbor in forum Excel General
    Replies: 1
    Last Post: 04-09-2009, 03:37 PM
  4. Ok i get the idea
    By ace_silver10 in forum Excel General
    Replies: 0
    Last Post: 09-18-2008, 02:21 AM
  5. I have no idea how to do this one
    By Waynesworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2006, 04:11 PM
  6. Help any idea
    By John21 in forum Excel General
    Replies: 2
    Last Post: 09-07-2006, 12:37 PM
  7. [SOLVED] I've no idea how to do this. :(
    By MagnoliaSouth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2006, 04:15 PM
  8. any idea??
    By NF in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2005, 10:06 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