web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Counting All Occurrenc...
Power Apps
Answered

Counting All Occurrences of a String in an Excel Spreadsheet Field Using CountIf With Filter

(0) ShareShare
ReportReport
Posted on by 10

Suppose I have an Excel sheet containing names of all the tenants of an apartment building, payment due date, payment date, payment status,  and number of days overdue. So I have the following fields in my Excel sheet:

FullName, Payment Due Date, Payment Date, Payment Status, Days Overdue 

 

I am trying to show in PowerApp the total number of people who have not yet paid their rent . The following is what I have tried but it is not working.

CountIf(Filter(ExcelTable, ExcelTable.'Payment Status' = 'Unpaid'))

 

Categories:
I have the same question (0)
  • aprildunnam Profile Picture
    704 on at

    I believe the issue is you don't need the "filter" in your function.  Try this instead:

     

    CountIf(ExcelTable, ExcelTable.'Payment Status' = 'Unpaid')
  • oangodd Profile Picture
    10 on at

    Hi, Thanks for your reply. I have tried that but it gave me the error "Invalid Argument Type".

  • Verified answer
    aprildunnam Profile Picture
    704 on at

     Have you tried this removing the "ExcelTable."?  Like this:

     

    CountIf(ExcelTable, 'Payment Status' = 'Unpaid')
     
  • oangodd Profile Picture
    10 on at

    Thanks, that works. 

  • aprildunnam Profile Picture
    704 on at

    You're welcome, glad I could help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard