+ Reply to Thread
Results 1 to 2 of 2

Can a macro convert text to numbers and also fill in missing lines

  1. #1
    Registered User
    Join Date
    04-23-2022
    Location
    london
    MS-Off Ver
    office365
    Posts
    90

    Can a macro convert text to numbers and also fill in missing lines

    I have a workbook that downloads data with some as text and also gaps in the data.

    What I'm trying to do is to be able to convert all the data from text to numbers all the way down columns B,D,H and then autofill the gaps in data by copying and pasting down.

    What I mean is I want all the data copying down from A2-A29 and then A31-A44 etc. I then need it doing the same down columns B-F.
    The only issue is it will always be the same column letters but not the same row numbers as data will be added to workbook daily.


    Can this be done poss via macro?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Can a macro convert text to numbers and also fill in missing lines

    You could do this easily with PowerQuery.

    All you would need to do is select all the columns that you want to fill, goto the Transform tab and then Fill>Down.
    If posting code please use code tags, see here.

+ 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. Replies: 2
    Last Post: 06-01-2022, 12:18 PM
  2. Fill in missing numbers in sequence
    By haroldlarold in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-28-2016, 12:49 AM
  3. Convert power trendline equation to formula to fill in missing data
    By X4L in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2015, 04:59 PM
  4. Macro to convert text/numbers to numbers
    By k_paresh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2014, 10:58 AM
  5. Fill Numbers Missing In A Range
    By dannyfromnj in forum Excel General
    Replies: 1
    Last Post: 01-04-2007, 06:24 PM
  6. Having macro convert text to numbers
    By punter in forum Excel General
    Replies: 3
    Last Post: 06-13-2006, 06:58 AM
  7. [SOLVED] code to fill in missing border lines
    By Jack Sons in forum Excel General
    Replies: 3
    Last Post: 11-03-2005, 06:10 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