+ Reply to Thread
Results 1 to 6 of 6

Input Info from Column/Cells some blank some numbers

  1. #1
    Registered User
    Join Date
    12-04-2018
    Location
    Washington State, USA
    MS-Off Ver
    Microsoft Office 365
    Posts
    64

    Input Info from Column/Cells some blank some numbers

    I want to copy some information into a new column (lets say column C) from a different column (lets say Column A). Column A has blank cells along with cells with numbers. I only want to copy the numbers into Column C. Can some one please help?

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Input Info from Column/Cells some blank some numbers

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    12-04-2018
    Location
    Washington State, USA
    MS-Off Ver
    Microsoft Office 365
    Posts
    64

    Re: Input Info from Column/Cells some blank some numbers

    I am loading a example. I am relatively new and do not understand your solution.
    Attached Files Attached Files

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Input Info from Column/Cells some blank some numbers

    This is a macro to do the copy and paste. It filters column A to get only cellls with values and then copies only the cells with values to column C. I have modified it based on your example.
    Please Login or Register  to view this content.
    To use the macro, Open the vb editor by pressing Alt + F11. If the editor pane is dark gray, then click 'Insert' on the menu bar, then click 'Module'. You only have to do this one time. If you save the workbook as a macro enabled workbook. When the code pane brightens, paste the code into the pane. Close the editor and to run the code, Press Alt + F8, click on the macro name and then click 'Run'.

    If you prefer a formula, someone else will have to help you, I am not good with complex formulas.

  5. #5
    Registered User
    Join Date
    12-04-2018
    Location
    Washington State, USA
    MS-Off Ver
    Microsoft Office 365
    Posts
    64

    Re: Input Info from Column/Cells some blank some numbers

    Thank you for your help. I followed your instructions. When I ran the macro I an error message:

    "Microsoft Visual Basic
    Compile error:
    Expected list separator or )"

    Any help you can give me will be really appreciated.

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Input Info from Column/Cells some blank some numbers

    Did you copy and paste the code into the code module or retype it? That error means you are missing a Parenthesis somewhere in the statement that is highlighted when you click the 'Debug' button. I cannot get the same error when I run the code as shown in Post # 4.

+ 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] macro to autosum numbers in column when there are cells and blank columns
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-03-2019, 11:33 AM
  2. [SOLVED] Count non blank cells if values in range in another column are between two numbers
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2015, 04:01 PM
  3. Check particular blank cells in a row based on input in D column
    By weareallstardust in forum Excel General
    Replies: 1
    Last Post: 09-24-2014, 09:51 AM
  4. Replies: 4
    Last Post: 11-20-2013, 10:16 PM
  5. how to update listbox list
    By jgcramer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2013, 04:19 AM
  6. [SOLVED] input date column A, increment B, select blank cell in D and input time. in a macro
    By jeffstu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 11:19 AM
  7. Replies: 1
    Last Post: 02-21-2006, 10:30 PM

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