+ Reply to Thread
Results 1 to 3 of 3

Check Cell for number if yes then copy

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    gouda, holland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Check Cell for number if yes then copy

    Hi all,

    So i am working with a workbook that has a Cell with a Name and a Account number.

    For example:
    Cell D8 have the value: Mister excel 123.654.987.

    I want a vba code that Checks the cell if the last 9 character is a number.
    if not then .. else Paste the last 9 characters to Cell A1

    Some help?

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Check Cell for number if yes then copy

    Hello hashtag,

    Mister excel 123.654.987
    The sample number actually contains 11 characters - (including the periods)
    Will all the numbers be in the same format, or may it differ?

    if not then...
    Then what? Ignore or Paste somewhere else than Cell A1?
    It would be a good idea if you could attach a sample workbook (not a picture or pasted copy).
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    gouda, holland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Check Cell for number if yes then copy

    thnx for the reply.


    Uploaded a example. now i am using =right function but i want it in a VBA.

    Regards.
    Attached Files Attached Files

+ 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] if check x in B then is allocated a unique number from sheet Numbers in A, and copy in Sh
    By Pirvu Vali in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 11-17-2018, 03:09 PM
  2. Replies: 1
    Last Post: 10-08-2018, 04:42 AM
  3. Check if a cell contains text copy number to new column
    By lto120636 in forum Excel General
    Replies: 5
    Last Post: 07-14-2014, 08:39 AM
  4. Date and flight number check to copy invoice amounts in one column
    By deadshine in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2013, 11:29 PM
  5. [SOLVED] check if number in once cell exists in a range of cells and if yes, format another cell
    By beaujolais44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2013, 07:23 AM
  6. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  7. check if a cell is a number
    By associates in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2006, 05:32 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