• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Copy Row Range to Next Row if Two Criteria met|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Copy Row Range to Next Row if Two Criteria met|VBA & Macros|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosCopy Row Range to Next Row if Two C…
sp_PrintTopic sp_TopicIcon
Copy Row Range to Next Row if Two Criteria met
Avatar
Sherry Fox
Poinciana, FL
Member
Members
Level 0
Forum Posts: 79
Member Since:
December 4, 2021
sp_UserOfflineSmall Offline
1
June 2, 2022 - 1:52 am
sp_Permalink sp_Print

I am back (again), and thanks in advance!  I am creating a workbook (sample attached).  I need to have the row copied/pasted (as values) into the row below if TWO criteria are met.  I have completed data entry for this first record.  And since there is a YES in column L and a number greater than 0, that should trigger a change even to copy the data in columns B-O to the next row.  Obviously this process must function anywhere on the sheet based on row 3 as the beginning of the data.  And just in case, let me know where to change the data beginning at row 2, as the stakeholder may prefer that, despite they said they wanted this!  LOL

Column L (Multiple Requests) - Yes

Column Q (#) - greater than 0

Note:  The Blue cells in Columns A & Q contain formulas

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1826
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
June 3, 2022 - 8:53 pm
sp_Permalink sp_Print

Hi Sherry,

The layout is not the most inspired one, it will cause problems in finding the last row because of the formulas and colors.

Why not using defined tables, can you use them?

Avatar
Sherry Fox
Poinciana, FL
Member
Members
Level 0
Forum Posts: 79
Member Since:
December 4, 2021
sp_UserOfflineSmall Offline
3
June 7, 2022 - 5:37 am
sp_Permalink sp_Print

@Catalin Bombea,

 

By "defined Tables, do you mean this?  And then how would I achieve my goal?

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1826
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
4
June 7, 2022 - 1:54 pm
sp_Permalink sp_Print

Here is a resource that explains what are defined tables:
https://www.myonlinetraininghu.....cel-tables

They are special objects that can be easily manipulated from visual basic, the code will refer to the table object directly, not to the sheet ranges, so it can be placed anywhere in sheet, gives you more flexibility.

Avatar
Sherry Fox
Poinciana, FL
Member
Members
Level 0
Forum Posts: 79
Member Since:
December 4, 2021
sp_UserOfflineSmall Offline
5
June 10, 2022 - 12:08 am
sp_Permalink sp_Print

@Catalin Bombea,

 

I was confused by the term "defined Tables".  I use tables on a regular basis (especially since I love Power Query), just never referred to them as "defined tables".  The format was given to me by the stakeholders, and is simply a working draft.  Before I put any effefort into a redesign, I wanted to know if their request was possible.

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1826
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
6
June 10, 2022 - 4:53 am
sp_Permalink sp_Print

Yes, it is possible

sp_AnswersTopicAnswer
Answers Post
Avatar
Sherry Fox
Poinciana, FL
Member
Members
Level 0
Forum Posts: 79
Member Since:
December 4, 2021
sp_UserOfflineSmall Offline
7
June 11, 2022 - 1:30 am
sp_Permalink sp_Print

@Catalin Bombea,

Thanks!!!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Louis Muti
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Blair Gallagher
Brandi Taylor
Hafiz Ihsan Qadir
Gontran Bage
adolfo casanova
Annestine Johnpulle
Priscila Campbell
Jeff Mikles
Aaron Butler
Maurice Petterlin
Forum Stats:
Groups: 3
Forums: 24
Topics: 6369
Posts: 27852

 

Member Stats:
Guest Posters: 49
Members: 32359
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.