+ Reply to Thread
Results 1 to 11 of 11

Create sheet copy with conditions

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Create sheet copy with conditions

    Hello code experts
    With the help of a code, I am trying to create a copy of 2A sheet with the name Portal with some editing. After a copy of 2A is created, the changes required in the new sheet are
    1. Column I replace ??? with the numbers above at each Invoice number -Total as shown in the Portal sheet
    or
    Enter the combined rate of each row above,in column I in each row which contains -Total in column C
    2. In the new sheet delete all the rows which do not contain -Total in the column C.
    3. Remove the bold format from the sheet
    4. Rename the new created sheet as Portal.
    I have shared both the sheets 2A (Original) and the expected result sheet (Portal) in the workbook.
    Thank you in advance.
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 09-02-2022 at 06:42 AM. Reason: #Solved by nankw83

  2. #2
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Create sheet copy with conditions

    This was the code used in one of the other projects where I had to convert 2B into Portal. The only difference between 2A and 2B is that the 2A has each data is spread multiple rows with a blank row at every different entry. I will share the 2B sheet also for your reference.
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 09-02-2022 at 03:36 AM.

  3. #3
    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,869

    Re: Create sheet copy with conditions

    There is no code in your last post.
    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.

  4. #4
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Create sheet copy with conditions

    Just now posted

  5. #5
    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,869

    Re: Create sheet copy with conditions

    You really should not try to find escuses to bump your threads very soon after first posting. You do this regularly, but by doing so, you remove your post from the unanswered threads filter, so for mambers who use that filter as their starting point (MANY do), your threads will be completely missed.

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Create sheet copy with conditions

    Sorry AliGW. I have a very wavering mind. I post the thread and feel like explaining it in simpler words and repost it again. Next time I will think twice before posting the thread so that I will not have to replace the post.

  7. #7
    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,869

    Re: Create sheet copy with conditions

    Just add the extra detail to the bottom of the opening post with the word EDIT so we can see you've added to it. This way you (a) stay in the unread posts list and (b) don't get into trouble for bumping posts before 24 hours have passed.

  8. #8
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Create sheet copy with conditions

    Okies. . should I join the posts #1 and #2 now ? Or is it for next time onwards.

  9. #9
    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,869

    Re: Create sheet copy with conditions

    Next time. No point this time.

  10. #10
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Create sheet copy with conditions

    Hi RAJESH,

    Try below code ...

    Please Login or Register  to view this content.
    Last edited by nankw83; 09-02-2022 at 06:30 AM. Reason: Added line to remove Bold text
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  11. #11
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Create sheet copy with conditions

    nankw83. That is really cool. It worked like a charm. Thanks Man.

+ 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. Copy rows that meet conditions from one sheet to another sheet
    By nilamani in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2014, 05:00 PM
  2. [SOLVED] Bulk import. (Copy Data from one sheet to a main sheet with conditions)
    By DanzaNZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 12:24 AM
  3. Replies: 6
    Last Post: 09-01-2010, 03:10 PM
  4. Copy data from one sheet to another sheet with conditions
    By cchoo13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2009, 11:10 AM
  5. Need to create a button that can copy cells, create a new sheet and then paste there
    By torontoguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-14-2009, 11:26 AM
  6. Create new row on new sheet IF conditions match
    By jjkroell in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2008, 01:04 AM
  7. Create a list in another sheet based on few conditions
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-16-2008, 07:43 AM

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