If formula

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
198
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi,

I'm require a formula to deduct available from total required. If the value is greater than Option 2, then it will equal the value of Option 2?

Thanks for any help.



[TABLE="width: 466"]
<tbody>[TR]
[TD="width: 136, bgcolor: transparent"]Total Required
[/TD]
[TD="width: 136, bgcolor: transparent"]Available
[/TD]
[TD="width: 106, bgcolor: transparent"]Option 2
[/TD]
[TD="width: 93, bgcolor: transparent"]Total Sum
[/TD]
[TD="width: 149, bgcolor: transparent"]Answer
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]293
[/TD]
[TD="bgcolor: #FCD5B4"]85
[/TD]
[TD="bgcolor: transparent"]164
[/TD]
[TD="bgcolor: #E6B9B8"]??
[/TD]
[TD="bgcolor: transparent"]164
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]293
[/TD]
[TD="bgcolor: #FCD5B4"]157
[/TD]
[TD="bgcolor: transparent"]218
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]136
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]329
[/TD]
[TD="bgcolor: #FCD5B4"]109
[/TD]
[TD="bgcolor: transparent"]183
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]183
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]329
[/TD]
[TD="bgcolor: #FCD5B4"]111
[/TD]
[TD="bgcolor: transparent"]99
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]99
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]384
[/TD]
[TD="bgcolor: #FCD5B4"]100
[/TD]
[TD="bgcolor: transparent"]44
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]44
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]366
[/TD]
[TD="bgcolor: #FCD5B4"]111
[/TD]
[TD="bgcolor: transparent"]115
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]115
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]329
[/TD]
[TD="bgcolor: #FCD5B4"]117
[/TD]
[TD="bgcolor: transparent"]54
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]54
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]366
[/TD]
[TD="bgcolor: #FCD5B4"]132
[/TD]
[TD="bgcolor: transparent"]71
[/TD]
[TD="bgcolor: #E6B9B8"][/TD]
[TD="bgcolor: transparent"]71
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about

Excel 2013 32 bit
ABCDE
1Total RequiredAvailableOption 2Total SumAnswer
229385164164164
3293157218136136
4329109183183183
5329111999999
6384100444444
7366111115115115
8329117545454
9366132717171
Week38
Cell Formulas
RangeFormula
D2=IF(A2-B2>C2,C2,A2-B2)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0
Hi,

You can also do this:


Book1
ABCD
1Total RequiredAvailableOption 2Total Sum
229385164164
3293157218136
4329109183183
53291119999
63841004444
7366111115115
83291175454
93661327171
Sheet224
Cell Formulas
RangeFormula
D2=MIN(A2-B2,C2)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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