+ Reply to Thread
Results 1 to 8 of 8

Changing alpha numeric data in one cell into something else

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Changing alpha numeric data in one cell into something else

    Hi,
    This is my problem,
    in cell A2 I have 6D in cell A3 I want it to read 1:40.

    I think IF functions only work with alpha data, right??

    Been looking into this for a while and am getting VERY frustrated.

    Thanks!

    Tricia

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Changing alpha numeric data in one cell into something else

    IF functions work with just about anything... However, I am completely confused as to how 6D relates to 1:40. Do you have an example worksheet you could upload?
    - Vince

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Changing alpha numeric data in one cell into something else

    im with you on that Moo, maybe some greater explication please?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-22-2012
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Changing alpha numeric data in one cell into something else

    I work for a college and 6D stands for the sixth hour class during the day which is offered at 1:40
    We also have a 1D, 2D, 3D, 4D etc and then evening courses are coded as 1E, 2E etc.
    when I added a column next to the code column where the 6D is located and then typed in the formula
    =IF(A2=6D, "1:40","") I get an error message.

    I hope this helps. Thanks for helping!

    Tricia

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Changing alpha numeric data in one cell into something else

    =if(a2="6D","1:40","")

    You need the quotes around 6D so that Excel sees it as a text string. Otherwise, it thinks you are referring to a cell address or named range.

    - Moo
    Last edited by Moo the Dog; 10-22-2012 at 10:25 PM.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Changing alpha numeric data in one cell into something else

    Tricia,

    Basically, if you're looking to compare A2 to text you will need the quotes. If you were looking to see if A2 equals a number, a numeric value derived from another formula, a named range/cell or an actual cell address (like D12), then you don't need the quotes. Hope that helps!

    - Moo

  7. #7
    Registered User
    Join Date
    10-22-2012
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Changing alpha numeric data in one cell into something else

    Quote Originally Posted by Moo the Dog View Post
    =if(a2="6D","1:40","")

    You need the quotes around 6D so that Excel sees it as a text string. Otherwise, it thinks you are referring to a cell address or named range.

    - Moo
    Hi Moo,
    I thought I did that!!
    I just tried it on a new Excel sheet and it worked like a charm!!

    I was trying this for over an hour to no avail!!

    Ok, I'm good.

    Problem solved!

    Thanks so much!!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Changing alpha numeric data in one cell into something else

    you could also put all those codes and times into a table, and use =vlookup to find whichever code you enter into A2

+ 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