Set maximum value in a column to 100 in a nested if(or

MisterGB

New Member
Joined
Nov 13, 2015
Messages
10
I have a formula that adds a value to the cell above it depending on the text in an adjacent cell to the left. This formula has multiple If and if(or components). The values added are fixed and not based upon any other cells.

Say that A1 is 98 and in A2 the formula adds 3 then instead of being 101, I need it to effectively ignore the additional 1 and stop at 100.

I'm aware of the function Min, but not sure how to incorporate it into the formula.

Thanks in advance,

GB
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Something like
=min(a1+3,100)
 
Upvote 0
Thanks for the quick reply.

My formula starts with: =IF(OR(

How can I incorporate the min function please?
 
Upvote 0
Disregard my post above. I entered =MIN(IF(OR then moved the cursor from left to right through the formula until the tooltip reappeared. At that point I realised that I simply neeed to add ;100).

Thanks for the help. As is always the case a little nudge and you figure it out all of a sudden and you're left feeling rather silly :biggrin:.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,816
Members
449,469
Latest member
Kingwi11y

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