Closed Thread
Results 1 to 6 of 6

Macro that concatenates two cells, references a Date and then copy pastes value into first

  1. #1
    Banned User!
    Join Date
    05-06-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    52

    Macro that concatenates two cells, references a Date and then copy pastes value into first

    Would love some help writing this macro
    i tried attaching a file with more explanations within the file if it helps make it clearer. (in yellow highlights & red text)


    I have two sheets. One titled 'Money', the second titled 'Data'
    In the 'Money' tab, there's a section which currently begins from row 41 where the macro would be populating the data it's pulling. For clarity's sake, i'll refer to this section as the Expense section.

    Essentially, the macro is pulling data from the 'Data' tab based on certain criteria (the date). If the criteria is met, it will copy the data of its respective row from the 'Data' tab; will go to the 'Money' tab, look for the last row that contains data in the first portion of the Expense section, creates a new row and pastes values in this new row; making sure not to be pasting over any previous data

    written out as steps:
    if the concatenation of N & O of 'Data' sheet, viewed as Date format, matches the month of today's date; then copy and paste values of the concatenation into the first available row in column B of 'Money' sheet (beginning from B42 onwards)
    then still referencing that same row in 'Data' sheet, copy columns P thru S and paste values into columns C thru F of 'Money' sheet in the same row that was previously referenced.
    then still referencing that same row in 'Data' sheet, copy columns T and U and paste values into columns H & I of 'Money' sheet in the same row that was previously referenced.
    then still referencing that same row in 'Data' sheet, copy column V and paste values into column G of 'Money' sheet in the same row that was previously referenced



    i hope i explained that decently. please let me know if the Excel file isn't any clearer and i'll add more clarity.


    *edit: i posted this on mrexcel forum as well - no response there
    Attached Files Attached Files
    Last edited by rishijain11; 01-20-2021 at 12:23 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Macro that concatenates two cells, references a Date and then copy pastes value into f

    Have you read the Forum Rules by any chance?
    No 3 comes to mind

  3. #3
    Banned User!
    Join Date
    05-06-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Macro that concatenates two cells, references a Date and then copy pastes value into f

    i got this done through formulae...

    admin can delete this thread as it serves no purpose

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Macro that concatenates two cells, references a Date and then copy pastes value into f

    Please mark the thread as solved - you should know that we don't delete threads.

    I am surprised that you needed reminding about cross-post links (that's LINKS to cross-posts, not just a casual mention.

    What about all the others?

    https://www.ozgrid.com/forum/index.p...i/#post1243461
    https://techcommunity.microsoft.com/...en/m-p/2077123
    Last edited by AliGW; 01-27-2021 at 04:41 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Banned User!
    Join Date
    05-06-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Macro that concatenates two cells, references a Date and then copy pastes value into f

    i think you volunteers need to learn how to answer the question the person is actually asking.

    the volunteers are mainly full of hard-headed egos that don't really help solve the problem, but just say 'this is the way to do it, there's no other way, you should be so grateful i'm even spending my time on this'

    or at least establish some set of rules for the volunteers that they have to abide by

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Macro that concatenates two cells, references a Date and then copy pastes value into f

    Your tone is completely unacceptable (and I note that it is equally so on other forums). I will give you ten days to cool down before posting here again.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I want a macro that copy and pastes
    By Waffels in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2017, 06:00 PM
  2. [SOLVED] Macro that Copy and Pastes next to a certain value
    By Nuccio92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2016, 07:26 PM
  3. Replies: 1
    Last Post: 10-03-2012, 07:06 PM
  4. Replies: 2
    Last Post: 09-05-2012, 03:20 PM
  5. [SOLVED] Automating a macro that copies and pastes data and pastes 2 rows under the previous one.
    By thebank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 05:02 PM
  6. [SOLVED] Excel Macro Copy cells and pastes them in another sheet
    By myfe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2012, 06:41 PM
  7. Two copy and pastes in a macro
    By nygwnj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2007, 05:17 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