Multiple Conditions / Formulas in Single Cell

breiter

New Member
Joined
Aug 14, 2011
Messages
4
Sorry if this was asked before I simply have no idea what this is called or where to begin. I figure someone may be able to tell me this pretty quick without me spending hours getting nowhere.

Here is the what I am trying to figure out...

If you open a new excel spreadsheet type in the following cells.
B1... 500
A2... 700
C2... =A2+B2
B3... =B1-B2

I am trying to figure out how to deal with B2. I want it to update automatically according to these conditions...

  • If A2 is less than 1,000 I want B2 to make up the difference based on what is available in B1. (In my example I want B2 to read 300, since A2 is 700, and therefore 200 leftover in B3).
  • On the other hand if you change B1 to 100 and A2 remains less than 1,000 at 700, I want B2 to apply the 100 towards getting to the total of 1,000 (which in C2 would read 800 in this case).
  • If A2 is 1,000 or higher I want B2 to read 0.00.
Thanks for any help!!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If I understood your post, A2 is your starting amount, B1 is your available, B3 is your remainder after adding to A2 (if required) and B3 is what is left of your available.

If that is correct, this should work.
Book1
ABCD
1500
27003001000
3200
Sheet1


With different figures:
Book1
ABCD
1100
2700100800
30
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,696
Members
452,938
Latest member
babeneker

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