+ Reply to Thread
Results 1 to 6 of 6

Filter//paste data to 2 columns (title & details), autofill titles to match details

  1. #1
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Filter//paste data to 2 columns (title & details), autofill titles to match details

    Hey guys,

    I'm working off a document that has 2 sheets, the display sheet pulls data from the source data sheet and displays as this:

    Title details
    details
    details
    details
    details
    details
    details
    Title details
    details
    details
    details
    Title details
    details
    details
    details

    Is there a way I can auto drag the title down so they match the titles? This way I can do a pivot later on for easier analysis.

    (please see the details in the workbook)

    Thanks!
    Attached Files Attached Files
    Last edited by Frankximus3; 08-17-2016 at 11:42 PM.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Filter//paste data to 2 columns (title & details), autofill titles to match details

    Do you mean fill blank cells in column A with the value of nonblank cell above them ?

    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: Filter//paste data to 2 columns (title & details), autofill titles to match details

    Hey Kare,

    I don't fully understand the code yet, But, they work perfectly in my codes!

    Thanks for that and I'll see if I can decipher the logic behind..

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Filter//paste data to 2 columns (title & details), autofill titles to match details

    You are welcome Frankximus3, thanks for marking the thread as solved and for the rep.point.

    The code itself is quite simple :
    Sheets("Display").Range("A1").CurrentRegion --> this is current region of range A1, equal to : select A1 then press Ctrl A (which is A1:G38)
    Sheets("Display").Range("A1").CurrentRegion.Columns(1) --> this is the first column of above range (which is A1:A38)
    .SpecialCells(xlCellTypeBlanks) --> this is selecting only blank cells in A1:A38 (which are A3,A5:A11,A13:A38)

    then apply formula in (R1C1 format) for these blank cells to : equal to the value of one cell above it
    then change the formulas to values using : .Value = .Value


    So the macro actually doing is :
    - Select A3 (blank) and put this formula on A3 : =A2
    - Select A5 (blank) and put this formula on A5 : =A4
    - Select A6 (blank) and put this formula on A6 : =A5
    etc
    then you select all column A, copy, and paste as values (to remove the formulas).


    Regards

  5. #5
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: Filter//paste data to 2 columns (title & details), autofill titles to match details

    Thanks so so much for your code and detailed explanation Kare!

    This is extremely helpful for me and now I can proceed to completing my design.

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Filter//paste data to 2 columns (title & details), autofill titles to match details

    You are welcome, glad I can help.

+ 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] I need a formula to filter the details of unique number from another sheet
    By Karthikeyannb in forum Excel General
    Replies: 6
    Last Post: 12-13-2014, 10:38 AM
  2. [SOLVED] how can i search and copy details of a particular User details in Sheet1
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 02:58 AM
  3. Search and paste corresponding details
    By haddo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 04:20 AM
  4. [SOLVED] Match the details in column A & B and return the correct value
    By jackyong1985 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2012, 03:56 AM
  5. Replies: 0
    Last Post: 08-21-2012, 01:19 AM
  6. Conditional copy paste of project details
    By duckkk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2011, 02:36 PM
  7. Help on Excel Formula to AutoFill Details
    By newbie1234 in forum Excel General
    Replies: 4
    Last Post: 01-18-2011, 12:37 PM

Tags for this Thread

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