• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Guidance on Methodology|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Guidance on Methodology|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
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 ForumGeneral Excel Questions & Answe…Guidance on Methodology
sp_PrintTopic sp_TopicIcon
Guidance on Methodology
Avatar
maced62
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 19, 2016
sp_UserOfflineSmall Offline
1
October 20, 2022 - 5:05 am
sp_Permalink sp_Print

Yep, strange title but not sure how to describe this one.Capture.PNGImage Enlarger

I have a list (much larger than contained in the image) of students attending courses.  The data course is actually Cognos but what I am trying to accomplish cannot be done directly in Cognos so want to try Excel VBA.  

Description: list of students who attend a course and "wash back" or move to another class.  The first class in the list is where they started, then the next one is the first move and so on to the last one where they actually complete or graduate the course.  Data will actually contain anywhere from 0 to >3K entries.  If there are no "wash backs" that data is filtered out in the report but students can have one or more wash backs, I chose this particular one because it was a good indicator of the movement.

Need: Not the solution but the methodology or approach to get the first washback class to go in the ClsTo column and so on as indicated in the image.  I have toyed with arrays but not sure if this or a combination of approaches is necessary. Any ideas or thoughts on direction is greatly appreciated.

Doug M.

sp_PlupAttachments Attachments
  • sp_PlupImage Capture.PNG (69 KB)
sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
October 20, 2022 - 2:19 pm
sp_Permalink sp_Print

Hi Doug,

Please upload a sample Excel file. Be sure to include a few students' data so we can see the layout of the table. I think you can use a formula for this, but we'll see when you share your file.

Mynda

Avatar
maced62
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 19, 2016
sp_UserOfflineSmall Offline
3
October 20, 2022 - 9:25 pm
sp_Permalink sp_Print

Mynda,

Thank you for taking some time to look at this issue.  I have attached the sample data as requested and added some additional rows to get a sense of how the data is structured.

 

Thank you,

Doug M.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
October 22, 2022 - 1:07 pm
sp_Permalink sp_Print

Hi Doug,

You can use INDEX & MATCH with COUNTIF for this. See file attached.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
maced62
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 19, 2016
sp_UserOfflineSmall Offline
5
October 24, 2022 - 10:06 pm
sp_Permalink sp_Print

Mynda,

Thank you for the direction, that helps very much.  Next step is to see if I can model this in VBA but in the mean time, this answers the mail.

Doug

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
October 25, 2022 - 8:37 am
sp_Permalink sp_Print

Hi Doug,

Why would you want to model it in VBA when a formula does the job? I recommend avoiding VBA unless absolutely necessary. Typically built-in functions are more efficient for Excel than anything we can write ourselves, plus you don't run into any security issues in .xlsx workbooks.

Mynda

Avatar
maced62
Member
Members
Level 0
Forum Posts: 7
Member Since:
August 19, 2016
sp_UserOfflineSmall Offline
7
November 20, 2022 - 6:11 am
sp_Permalink sp_Print

Mynda,

 

My apologies for not seeing this question sooner.  What I should have said is that I was using VBA to apply the formula to entire column (fill down) to make it easier on the user.  I created a small app using VBA to search and load updated data files that cleans and formats the data, applies the formulas and updates pivot tables that feed a chart.  This one file replaced at least 7 separate spreadsheets updated manually and then queried to consolidate the data so that the slide could be built.  Work can be done by one person instead of 7 or 8 so not quite a better mousetrap but slightly more efficient.

 

Doug

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4450
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
November 20, 2022 - 10:51 am
sp_Permalink sp_Print

Ah, ok. Thanks for clarifying

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
stuart burge
Bruce Tang Nian
Scot C
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Forum Stats:
Groups: 3
Forums: 24
Topics: 6223
Posts: 27295

 

Member Stats:
Guest Posters: 49
Members: 31920
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.