• 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
  • Login

how to discriminate while count|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / how to discriminate while count|General Excel Questions & Answers|Excel Forum|My Online Training Hub
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 ForumGeneral Excel Questions & Answe…how to discriminate while count
sp_PrintTopic sp_TopicIcon
how to discriminate while count
Avatar
Carlos Gonzalez

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
1
November 13, 2020 - 9:56 am
sp_Permalink sp_Print

Hi,

I have this project report on which I need to count the number of people trained by region, version, and type of certification, the problem I have is that if the same person is certified in both versions I only want to coun it in the latest version. But I am stuck with how not to count it on version 9 if certified on both.

The sheet called specialization data is the report, the manual results are what it should actually come up with

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 880
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
November 13, 2020 - 3:44 pm
sp_Permalink sp_Print

Hello Carlos,

There is no file attached. Try to upload it again.

Br,
Anders

Avatar
Carlos Gonzalez

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
3
November 13, 2020 - 11:56 pm
sp_Permalink sp_Print

That might help... 🙂

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
November 14, 2020 - 3:17 pm
sp_Permalink sp_Print sp_EditHistory

Hi Carlos,

What version of Excel do you have?

Also, please clarify what you consider a duplicate. If we take the example of Nuno Nogueira who has 6 entries in the RawCertData, two with version 9 and 4 with version 10, which records would you count?

Mynda

Avatar
Carlos Gonzalez

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
5
November 17, 2020 - 12:10 am
sp_Permalink sp_Print

Hi, i have Excel for Mac V16.43(20110804)

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
November 17, 2020 - 8:51 am
sp_Permalink sp_Print

And the answer to my other question above: "Also, please clarify what you consider a duplicate. If we take the example of Nuno Nogueira who has 6 entries in the RawCertData, two with version 9 and 4 with version 10, which records would you count?"

Avatar
Carlos Gonzalez

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
7
November 18, 2020 - 2:20 am
sp_Permalink sp_Print

hi,

so in the case of nuno, we look at product,level and version.

Name Email USER REGION Level NEW PRODUCT NEW PRODUCT VERSION We count this
Nuno Nogueira nnogueira@sample.com Amer Specialist PC 9  
Nuno Nogueira nnogueira@sample.com Amer Professional PC 9  
Nuno Nogueira nnogueira@sample.com Amer Professional PC 10 X
Nuno Nogueira nnogueira@sample.com Amer Ace Developer PC 10  
Nuno Nogueira nnogueira@sample.com Amer Assoc. Developer IS 10  
Nuno Nogueira nnogueira@sample.com Amer Specialist PC 10 X

So nuno, should be counted toward the Specialis/Amer/PC on version 10 and not on version 9, as we only want to count the most recent version when the resources has both the old and the new version. He should also be counted on the Professional/amer/PC on version 10 and not in the version 9 line.

Specialization                        
    Specialist Cert Requirement     Professional Cert Requirement  
  Required 50 10 20 10   Required 5 1 2 1  
PC Region AMER APAC EMEA LATAM   Region AMER APAC EMEA LATAM  
  9.0 Achieved 46 0 3 0   9.0 Achieved 3 0 0 0  
  10.0 Achieved 81 9 1 1   10.0 Achieved 9 0 0 0  
  Total Achieved 127 9 4 1   Total Achieved 12 0 0 0  
  Gap 77 -1 -16 -9   Gap 7 -1 -2 -1  
                         

let me know if this makes it more clear.

 

Regards,

Carlos

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
November 18, 2020 - 11:58 am
sp_Permalink sp_Print

Hi Carlos,

Thanks for clarifying. You can use Power Query to remove the duplicates, then you can use a PivotTable to summarise the counts. See file attached:

Duplicates Removed sheet contains the query output

Manual Results sheet has the PivotTables alongside your examples. Note there are some discrepancies in your manual counts compared to the PivotTable.

I hope that helps.

Mynda

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: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Ashley Hughes
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28576

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.