+ Reply to Thread
Results 1 to 4 of 4

Adding Numeric Value to Text in Excel 2011

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Adding Numeric Value to Text in Excel 2011

    Hi,

    I'm trying to add a number to text. I'm doing research on tweets and I have 2358 tweets in an excel spreadsheet divided into columns with A containing the tweet itself, B containing the username and C containing the date. I want to assign a number to the usernames so that I can do stats on them once I'm done coding.

    To help with this I created two columns (G and H), G has the username and H is numbers that I have assigned to the usernames. It looks something like this

    Tweeter2luv 1
    tweetsalot 2
    luvs2tweet 3
    tweeter234 4

    I want to use this list to then assign numbers to column B (not replace the username but add a corresponding number in a different column). I tried using VLOOKUP but for some reason it's not working at all, it keeps not finding a number for certain usernames and assigning different numbers to the same username.

    Anyone know what I can do?

  2. #2
    Registered User
    Join Date
    05-21-2013
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    86

    Re: Adding Numeric Value to Text in Excel 2011

    Can you post the formula you are using?

    I'm assuming the data in G & H is a list of the usernames with duplicates removed.

    Have you checked that you reference this with an absolute reference?
    I.e.,
    =VLOOKUP(A1,$G$1:$H$10,2,0)
    rahter than
    =VLOOKUP(A1,G1:H10,2,0)

    Have you set the range_lookup to zero or false?
    Last edited by duffry; 07-08-2013 at 12:13 PM.

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Adding Numeric Value to Text in Excel 2011

    You are correct my list in G and H is a list of the usernames with all the duplicates removed so it's just the unique usernames.

    My formula has been =VLOOKUP(B1,$G$1:$H$1008,2,false) I have not tried setting the range_lookup to zero.

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Adding Numeric Value to Text in Excel 2011

    Quote Originally Posted by duffry View Post
    Can you post the formula you are using?

    I'm assuming the data in G & H is a list of the usernames with duplicates removed.

    Have you checked that you reference this with an absolute reference?
    I.e.,
    =VLOOKUP(A1,$G$1:$H$10,2,0)
    rahter than
    =VLOOKUP(A1,G1:H10,2,0)

    Have you set the range_lookup to zero or false?
    Just tried setting range_lookup to zero and it worked, YOU ARE MY SAVIOR!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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