1. ### Welcome to Chandoo.org Forums. Short message for you

Hi Guest,

Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

Yours,
Chandoo
2. Hi All

Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

Post Spam and you Will Be Deleted as a User

Hui...

3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

# IF function question

Discussion in 'Ask an Excel Question' started by Mariya, Jul 17, 2017.

1. ### MariyaNew Member

Messages:
2
Hi everybody!
I calculate fees fof kids visiting kindergarten. The maximum fee which the parent should pay is \$48. Sometimes depends on the month's days the maximum fee is between \$47 and \$48. The problem is when I have such calculation I need to repair the cell which has more than \$47 and less than \$48 by hand. I decided to use IF function and I did the following =IF(47.94<H11<48;[48];[H11]). And of course there was an error. If the value is less than 47.94 I just need it to be the same value as H11. Where is my mistake? I attach the file

File size:
151.9 KB
Views:
7
File size:
10.6 KB
Views:
8
2. ### AlanSidmanActive Member

Messages:
143
I'm not understanding what you want to happen. Please explain in simple English what you wish to happen using the example you have posted. Use your spreadsheet and give a couple of examples.
3. ### NebuExcel Ninja

Messages:
2,031
Hi:

May be something like this?
=IF(AND(47.94>H11,H11<48),H11,48)

Thanks
Thomas Kuriakose likes this.
4. ### MariyaNew Member

Messages:
2
Thanks guys, I did it!