+ Reply to Thread
Results 1 to 6 of 6

IF conditon on numeric and alphanumeric

  1. #1
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    IF conditon on numeric and alphanumeric

    I have a column for example consist of Numeric,Alphanumeric and Alpha(String/Text) as data, the thing is on the other column I put a conditional statement that if a cell is Numeric or Alphanumeric it should copied the content of that cell,if its text or pure alpha character it should return "No TIN"

    here is the piece of my condtion, i need to add something for alphanumeric condition. I hope you can help me,Thanks!

    Please Login or Register  to view this content.
    Last edited by emina002; 06-15-2012 at 01:06 AM.

  2. #2
    Registered User
    Join Date
    06-11-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: IF conditon on numeric and alphanumeric

    Hi


    =IF(ISNUMBER(A1),A1,"NO TIN")

    you can't change the Content of cell through Conditional formatting.

    only u can change the appearance of cells.


    try the above formula hope u will get the answer.

    Please select star from below if it u r satisfied.

  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,938

    Re: IF conditon on numeric and alphanumeric

    for the pure numeric, try =if(isnumber(A2),A2,"No Tin")
    for alpha use =if(istext(A2),A2,"No Tin")
    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
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: IF conditon on numeric and alphanumeric

    hi emina002, my understanding seems to be different, so i'm not sure if this is what you need. Create a series of numbers from 0-9 in F1:F10. And assuming if your data is in A2, this is the formula to use in B2:
    =IF(SUMPRODUCT((ISNUMBER(FIND($F$1:$F$10,A2)))*1)>0,A2,"NO TIN")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: IF conditon on numeric and alphanumeric

    sample could be "MA01048244" but it returns "No TIN" since it has a combination of Alpha and numeric and should return "MA01048244"

  6. #6
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: IF conditon on numeric and alphanumeric

    Yes it's working @benishiryo,thanks to you

+ 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