+ Reply to Thread
Results 1 to 5 of 5

Assign a number to a cell

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    99

    Assign a number to a cell

    Hi

    I am trying to assign a number to letters in a cell.
    E.G
    AB = 4
    AC = 5
    AD = 7
    BT = 9

    Lets say column A has the letters and i want column B to assign the number according to the letters.

    Hope this is clear

  2. #2
    Registered User
    Join Date
    04-07-2014
    Location
    Port Talbot, Wales
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Assign a number to a cell

    Simple method might be Vlookup as per attached sample
    Attached Files Attached Files
    Cobwebs, Alba Gu Brath (Scotland Forever)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Assign a number to a cell

    Try this

    =IFERROR(LOOKUP(A1,{"AB",4;"AC",5;"AD",7;"BT",9}),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    01-16-2014
    Location
    uk
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Assign a number to a cell

    Thank you very much its perfect

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Assign a number to a cell

    You're welcome and thank you for the feedback!

+ 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] Assign a sequential number IF a cell contains text
    By fingerprints in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2022, 12:43 PM
  2. Replies: 3
    Last Post: 08-13-2012, 01:03 AM
  3. [SOLVED] If cell is not blank, assign next number in sequence
    By dylaughin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2012, 03:57 PM
  4. Replies: 7
    Last Post: 12-18-2008, 07:34 PM
  5. Assign a number to a value range in a specific cell?
    By thiazi in forum Excel General
    Replies: 2
    Last Post: 01-11-2007, 09:49 AM

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