+ Reply to Thread
Results 1 to 5 of 5

Extracting data next to date in H column

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Extracting data next to date in H column

    Hi,

    I want to extract data from B column i.e just right of Ledger: only to H column corresponding to date which is in A column.

    There are data is all over which is to be left intact. Momentarily, unnecessary data I a have removed from all around.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Extracting data next to date in H column

    How is the date corresponding?

    I mean based on what date / date interval do you need the data in column H?
    To show your appreciation
    Click ★ Add reputation!

  3. #3
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Extracting data next to date in H column

    Hi all. You could try with:

    PHP Code: 
    Sub Macro8()
    Dim Rng As RangeAs RangeAs Range
    Application
    .ScreenUpdating False
    Set Rng 
    Range("A5"Cells(Rows.Count1).End(xlUp)): Set D Rng(01)
    Set C Rng.Find(What:="Ledger:"LookAt:=xlWholeSearchOrder:=xlByColumnsSearchDirection:=xlNext)
    While 
    C.Row D.Row
      With C
    .CurrentRegion.SpecialCells(xlCellTypeConstants1).Columns(1)
        
    C(, 2).Copy .Columns("H")
      
    End With
      Set D 
    CSet C Rng.FindNext(D)
    Wend
    End Sub 
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  4. #4
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Extracting data next to date in H column

    Thanx .It worked.

  5. #5
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Extracting data next to date in H column

    Thanks for the +Rep.

+ 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] extracting date data
    By paradise2sr in forum Excel General
    Replies: 3
    Last Post: 12-22-2016, 07:08 AM
  2. Macro for extracting data from a long column and insert it in its own column with a header
    By ChemistryStudent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2014, 04:41 AM
  3. Replies: 2
    Last Post: 08-05-2013, 12:39 AM
  4. [SOLVED] Extracting/matching row & column data for column greater than 0
    By trinston in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2013, 01:03 PM
  5. Extracting data from one column based on value from an adjacent column
    By CountySurveyor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2012, 10:32 AM
  6. Extracting data from column based on specific criteria and pasting into new column
    By vanvalkenburg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2012, 10:26 PM
  7. Formula for Extracting Month out of a Date column
    By PokerZan in forum Excel General
    Replies: 3
    Last Post: 06-10-2005, 04:05 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