problem with formula using max

jonathanhili94

New Member
Joined
Feb 24, 2021
Messages
8
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
  2. Web
Capture.PNG


Can anyone help please? For some reason the highlighted tab is shown 174 but I want that the number on this cell does not exceed the 173.33, so he maximum number will be 173.33. If the number on the red tab will be changed to 176 then the formula will work perfectly
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
AG4 is less than AH4 which is why the formula is returning 174.00.
If that is not what you want, then you need to clearly explain what you do want.
 
Upvote 0
Many thanks for your reply.

I want that AG4 is less then AH4 then the amount of AG4 will be shown on AL4 but this number cannot acced the 173.33. Less than 173.33 is ok but it cant be higher then this.

Many thanks
 
Upvote 0
What happens if AG4 is not less than AH4?
 
Upvote 0
Than AL4 Will show the number ofAG4.

bailsically what I am trying to do is that AG4 is the total of hours worked by an employee and AH4 is how many hours is to be worked by the employee in that month.

So the formula is that AL4 will be the basic so this number will not need to excel 173.33
 
Upvote 0
Ok, how about
Excel Formula:
=IF(AG4<AH4,MIN(AG4,173.33),AG4)
 
Upvote 0
Ok, how about
Excel Formula:
=IF(AG4<AH4,MIN(AG4,173.33),AG4)
Many thanks for your help it worked but unfortunately when the number in AG4 is higher than 173.33 it changed aswell in AL4.

Is there a way that the number in AL4 does not go higher the 173.33 please?


Many thanks
 
Upvote 0
It will only go above 173.33 if AG4 is greater than or equal to AH4
 
Upvote 0
Yes but you need to explain exactly what should happen. At the moment the formula does exactly what you asked for.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top