Forum

Notifications
Clear all

What is the right formula format for (IF) and (CountIf) - File attached

11 Posts
3 Users
0 Reactions
56 Views
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

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

 
Posted : 22/11/2020 3:09 pm
(@fluff)
Posts: 36
Eminent Member
 

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

 
Posted : 22/11/2020 4:16 pm
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

Thanks a lot for fast reply.

Please why there are extra characters? (check image)

Also the cell shows #NAME?

Screenshot-2020-11-21-222353.png

 
Posted : 22/11/2020 4:26 pm
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

Screenshot-2020-11-21-223645.pngI'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

 
Posted : 22/11/2020 4:35 pm
(@fluff)
Posts: 36
Eminent Member
 

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]])

 
Posted : 22/11/2020 6:02 pm
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

Thanks a lot my friend.

It works 🙂

 
Posted : 23/11/2020 6:28 am
(@fluff)
Posts: 36
Eminent Member
 

You're welcome & thanks for the feedback.

 
Posted : 23/11/2020 1:54 pm
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

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 🙂

 
Posted : 23/11/2020 2:26 pm
(@fluff)
Posts: 36
Eminent Member
 

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.

 
Posted : 23/11/2020 4:00 pm
(@mynda)
Posts: 4761
Member Admin
 

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

 
Posted : 23/11/2020 6:51 pm
(@nelsonleobrent)
Posts: 8
Active Member
Topic starter
 

Thanks a lot for all of you 🙂

 
Posted : 24/11/2020 6:39 am
Share: