+ Reply to Thread
Results 1 to 7 of 7

Automatically changing cell numbers into names

  1. #1
    Registered User
    Join Date
    02-16-2022
    Location
    Belgium
    MS-Off Ver
    latest
    Posts
    9

    Automatically changing cell numbers into names

    I am looking for some help on making a bit of code as I don't know how to do it.

    I have cells for these variables: (so they can be easily edited)
    ID1: 04e42adab35780 (used for Person1: customer)
    ID2: 04944d8a126885 (used for Person2: chief)
    ...

    The code needed would change the ID's from all the data into the persons name (the ones from above) once I click a button


    I already have this code to import data from a different file:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by IGDT; 02-24-2022 at 09:42 AM. Reason: solved the problem

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically changing cell numbers into names

    Would you confirm that when there are more people the data currently starting in row 10 simply moves further down and that the formula

    =IFERROR(INDEX($D$5:$D$6,MATCH(F11,$B$5:$B$6,FALSE),1),"")

    in G2 copied down gives you what you want
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-16-2022
    Location
    Belgium
    MS-Off Ver
    latest
    Posts
    9

    Re: Automatically changing cell numbers into names

    Quote Originally Posted by Richard Buttrey View Post
    Would you confirm that when there are more people the data currently starting in row 10 simply moves further down and that the formula

    =IFERROR(INDEX($D$5:$D$6,MATCH(F11,$B$5:$B$6,FALSE),1),"")

    in G2 copied down gives you what you want
    The formula you gave has an error somewhere I think.

    But yes, I want to be able to put more people as well, if its to many people then ill just change the A10 to a higher value to start pasting from.

    I was thinking on something like this, but its not working:
    Please Login or Register  to view this content.
    Last edited by IGDT; 02-17-2022 at 03:44 AM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Automatically changing cell numbers into names

    If "ID tag" always stars from A5 and gap(blank row(s)) between last "ID tag" and "Session Number" then
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-16-2022
    Location
    Belgium
    MS-Off Ver
    latest
    Posts
    9

    Re: Automatically changing cell numbers into names

    So I fixed the code from this reply on myself to this:
    Please Login or Register  to view this content.
    But as you can see, it's a bit sloppy and only works for 3 ids. How would I change it so that I can get up to 100 ids?
    I added the excel file again as I changed some important things
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Automatically changing cell numbers into names

    Please Login or Register  to view this content.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automatically changing cell numbers into names

    [QUOTE=IGDT;5636948]The formula you gave has an error somewhere I think.

    Oops, I should have said copy it to G11 and then copy down of course.

    WIth a generalised macro

    Please Login or Register  to view this content.

+ 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. Changing names based on another table automatically
    By amirmir in forum Excel General
    Replies: 9
    Last Post: 02-07-2020, 12:39 PM
  2. How to prevent excel from changing UDF names automatically
    By kotnig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2018, 03:53 PM
  3. Changing names to User ID numbers
    By stoudty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 08:00 AM
  4. Vlookup, Changing names to numbers, and other fun Excel adventures
    By jasbentle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 08:46 PM
  5. Automatically Changing Numbers to Date
    By Intoxicated-T-F in forum Excel General
    Replies: 4
    Last Post: 12-07-2007, 05:47 PM
  6. [SOLVED] Excel Changing Numbers Automatically
    By TomJerzey in forum Excel General
    Replies: 4
    Last Post: 09-19-2005, 10:05 AM
  7. [SOLVED] How do I automatically calculate YTD numbers by changing a date?
    By MDSistah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2005, 01: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