• 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

Counting Person(s) by Specific Dates/Months|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Counting Person(s) by Specific Dates/Months|General Excel Questions & Answers|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 ForumGeneral Excel Questions & Answe…Counting Person(s) by Specific Date…
sp_PrintTopic sp_TopicIcon
Counting Person(s) by Specific Dates/Months
Avatar
Raf Yaps

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
March 18, 2020
sp_UserOfflineSmall Offline
1
March 18, 2020 - 8:26 pm
sp_Permalink sp_Print

Hi Phil/everyone,

 

I would like to ask what are the specific excel formula since I am having hard time creating it, I could say the if and else statement but can't properly able to work it out in the excel sheet.

 

So here's the scenario:

I want to know the number of '#' 'Name' in a specific date like for example Jan 1/1/2020 - 1/30/2020. 

 

Based on my spreadsheet, I want to know the January total from a specific person/name and feb and so forth.

 

more a programming approach:

if 'Ralph' (1/1/2020 - 1/30/2020) display January total 

 

I hope I was able to explain it properly here.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 414
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
March 19, 2020 - 2:48 am
sp_Permalink sp_Print

I think you want the EOMONTH function. Mynda wrote a blog on it a while ago https://www.myonlinetraininghu.....h-function

Bascially EOMONTH give you the end of the month, so the last day of Jan would be EOMONTH(DATE(2020,1,1),0) and to get the first day you would need to do EOMONTH(DATE(2020,1,1),-1)+1 (the -1 takes us back to the 31st of December and the +1 makes it the 1st of Jan.

You then need to add in the greater than and less thans with a countif to get =COUNTIFS($A:$A,">="&EOMONTH(DATE(2020,1,1),-1)+1,$A:$A,"<="&EOMONTH(DATE(2020,1,1),0),$B:$B,$H8)

I dont like putting the date in this formula so i would put the 1/1/2020 in a cell and reference it as per the top example in the attched workbook.

PS i had to mess around with you dates to get them to work on a UK machine

Purfleet

sp_AnswersTopicAnswer
Answers Post
Avatar
Raf Yaps

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
March 18, 2020
sp_UserOfflineSmall Offline
3
March 19, 2020 - 4:01 pm
sp_Permalink sp_Print

Thank you so much Purfleet ! Smile

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
March 19, 2020 - 4:04 pm
sp_Permalink sp_Print

Another suggestion is to use a Pivot Table and group by Months/Years

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
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:
Aminu Sule
Samuel Ramirez
Abdifatah Osman
mohad borhom
Abayomi Adedeji
Ganesh MVS
Gilbert Lemek
Ashleigh Farquharson
Jayz Luu
Fred Smith
Forum Stats:
Groups: 3
Forums: 24
Topics: 6364
Posts: 27829

 

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