Edit formula

MarkDShark

Board Regular
Joined
Jun 10, 2008
Messages
228
I was given this code to use. but i need to edit it to not deduct the amounts i enter in E13:E17 for cell E10. I only want the entries in E13:E17 to affect cell E7. The formula below determines the lowest figure bewteen E7 and E10 and the lowest figure is what i'm trying to capture in another cell. The entries in E13:E17 should only pretain to E7 to lesson it upon an entry being made, example

I enter 14 in E7
I enter 12 in E10

12 is the lowest, so thats picked up in the target cell.

Same scenerio, but now i enter a figure between E13:E17, lets say 4, now this figure should affect the amount in E7 (not direrctly) and the target cell should now recognize E7 as the lowest figure of 10. How do i edit the formula below to do that? Thanks for your help in advance.

=MAX(CHOOSE(MIN(MATCH(MIN(G55:G59),G55:G59,0),2),E7,E10-E9)-SUM(E13:E17),0)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Obviously your formula incorporates other tests not detailed in the narrative but if you're saying E13:E17 should affect only E7 then you move that element accordingly

Code:
=MAX(CHOOSE(MIN(MATCH(MIN(G55:G59),G55:G59,0),2),E7-SUM(E13:E17),E10-E9),0)

It should be noted that E7 is only in use where G55 is in fact the smallest value in range G55:G59 (c/o CHOOSE)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

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