• 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

What is the right formula format for (IF) and (CountIf) - File attached|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / What is the right formula format for (IF) and (CountIf) - File attached|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…What is the right formula format fo…
sp_PrintTopic sp_TopicIcon
What is the right formula format for (IF) and (CountIf) - File attached
Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
1
November 22, 2020 - 5:09 am
sp_Permalink sp_Print

Hi,

I tried to add the 2 formulas but can not set it correctly.

I want to add the IF formula to the DataEntry table and CountIF formula to the Fees table.

Thanks

sp_AnswersTopicSeeAnswer See Answer
Avatar
Fluff
Member
Members
Level 0
Forum Posts: 34
Member Since:
July 31, 2020
sp_UserOfflineSmall Offline
2
November 22, 2020 - 6:16 am
sp_Permalink sp_Print

In your 2nd table on the 1st row make the age from 0 & the age to 25

you can then use this in E2, copied across & down

=XLOOKUP(DataEntry[@[Age Today]:[Age Today]],Fees[[Age from]:[Age from]],Fees[1st program Fees],"",-1)

and this in O2

=COUNTIFS(DataEntry[Age Today],">="&[@[Age from]],DataEntry[Age Today],"<="&[@[Age To]])

ย 

If you don't have Xlookup, just shout

Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
3
November 22, 2020 - 6:26 am
sp_Permalink sp_Print

Thanks a lot for fast reply.

Please why there are extra characters? (check image)

Also the cell shows #NAME?

Screenshot-2020-11-21-222353.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot-2020-11-21-222353.png (97 KB)
Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
4
November 22, 2020 - 6:35 am
sp_Permalink sp_Print sp_EditHistory

Screenshot-2020-11-21-223645.pngImage Enlarger

I've realized that I do not have xlookup in my formulas in Excel.

I am using Excel 2019, are you using office 365?

Do I need to install anything to be able to read and apply the formulas you used?

Thanks

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot-2020-11-21-223645.png (8 KB)
Avatar
Fluff
Member
Members
Level 0
Forum Posts: 34
Member Since:
July 31, 2020
sp_UserOfflineSmall Offline
5
November 22, 2020 - 8:02 am
sp_Permalink sp_Print

Ok, for E2 try this instead

=SUMIFS(Fees[1st program Fees],Fees[[Age from]:[Age from]],"<="&DataEntry[@[Age Today]:[Age Today]],Fees[[Age To]:[Age To]],">="&DataEntry[@[Age Today]:[Age Today]])

sp_AnswersTopicAnswer
Answers Post
Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
6
November 22, 2020 - 8:28 pm
sp_Permalink sp_Print

Thanks a lot my friend.

It works ๐Ÿ™‚

Avatar
Fluff
Member
Members
Level 0
Forum Posts: 34
Member Since:
July 31, 2020
sp_UserOfflineSmall Offline
7
November 23, 2020 - 3:54 am
sp_Permalink sp_Print

You're welcome & thanks for the feedback.

Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
8
November 23, 2020 - 4:26 am
sp_Permalink sp_Print

Please, @Fluff

If I want to know and learn how you did it what shall I do?

Is it to study a book or something a like?

Honestly I've just copied and pasted what you typed but I do not understand it.

I know no one has anytime to teach anyone else and I a want to learn and know in my own, so please advise.

What to do to know the formulas efficiently?ย 

What are the elements to know what character to otype?

Thanks a lot ๐Ÿ™‚

Avatar
Fluff
Member
Members
Level 0
Forum Posts: 34
Member Since:
July 31, 2020
sp_UserOfflineSmall Offline
9
November 23, 2020 - 6:00 am
sp_Permalink sp_Print

There are plenty of good books & video tutorials about, which might help you. But as most of my knowledge has come from posting to sites like this, I cannot really recommend anything in particular.

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

Hi Nelson,

You can learn about Tables and their structured references here. If you'd like to get up to speed with formulas like this, please consider my Advanced Formulas course.

Mynda

Avatar
Nelson Leobrent
Member
Members
Level 0
Forum Posts: 8
Member Since:
November 1, 2020
sp_UserOfflineSmall Offline
11
November 23, 2020 - 8:39 pm
sp_Permalink sp_Print

Thanks a lot for all of you ๐Ÿ™‚

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Peter Venkatrao, QSolutions Group
Guest(s) 8
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
Hans Hallebeek: 185
Newest Members:
Kate Dyka
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Forum Stats:
Groups: 3
Forums: 24
Topics: 6546
Posts: 28655

 

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