An Equation

emvella

Board Regular
Joined
Apr 7, 2017
Messages
68
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I think this is impossible but I will take a chance because if it is possible it will save us lot of work and time.

At work I have a CAD software and I use equations to set X, Y, Z positions and material width, length and height. Equations are similar to Excel formulas. So if it works in Excel it will work in the CAD software.

I want a special equation that it ends always with same answer even if I change a particular number from the 4 or more numbers that I have in that equation. (when I say numbers they are positions and sizes of materials).

Example I have:

100+200+120+80=500

And I change 80 to 120, I still want the answer = 500 (means that a particular part stay same position and don't move even if I changed a size of another part).

Thanks
 
Last edited:
[table="width:, class:grid"][tr][td="bgcolor:#c0c0c0"][/td][td="bgcolor:#c0c0c0"]
a​
[/td][td="bgcolor:#c0c0c0"]
b​
[/td][td="bgcolor:#c0c0c0"]
c​
[/td][td="bgcolor:#c0c0c0"]
d​
[/td][td="bgcolor:#c0c0c0"]
e​
[/td][td="bgcolor:#c0c0c0"]
f​
[/td][td="bgcolor:#c0c0c0"]
g​
[/td][/tr][tr][td="bgcolor:#c0c0c0"]
2​
[/td][td]
100​
[/td][td]
200​
[/td][td]
120​
[/td][td]
80​
[/td][td="bgcolor:#ccffcc"]
500​
[/td][td][/td][td="bgcolor:#ccffcc"]e2: =sum(a2:d2)[/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
3​
[/td][td][/td][td][/td][td][/td][td]
140​
[/td][td="bgcolor:#ffffcc"]
-20​
[/td][td][/td][td="bgcolor:#ffffcc"]e3: {=($e2 - sum(if(isnumber(a3:d3), a3:d3, a2:d2))) / countblank(a3:d3)}[/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
4​
[/td][td="bgcolor:#ccffff"]
80​
[/td][td="bgcolor:#ccffff"]
180​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
140​
[/td][td="bgcolor:#ccffcc"]
500​
[/td][td][/td][td="bgcolor:#ccffff"]a4: =if(isnumber(a3), a3, a2 + $e3)[/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
5​
[/td][td][/td][td]
60​
[/td][td][/td][td][/td][td="bgcolor:#ffffcc"]
40​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
6​
[/td][td="bgcolor:#ccffff"]
120​
[/td][td="bgcolor:#ccffff"]
60​
[/td][td="bgcolor:#ccffff"]
140​
[/td][td="bgcolor:#ccffff"]
180​
[/td][td="bgcolor:#ccffcc"]
500​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
7​
[/td][td]
100​
[/td][td][/td][td]
100​
[/td][td][/td][td="bgcolor:#ffffcc"]
30​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
8​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
90​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
210​
[/td][td="bgcolor:#ccffcc"]
500​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
9​
[/td][td]
100​
[/td][td]
100​
[/td][td]
100​
[/td][td][/td][td="bgcolor:#ffffcc"]
-10​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
10​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
100​
[/td][td="bgcolor:#ccffff"]
200​
[/td][td="bgcolor:#ccffcc"]
500​
[/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
[TABLE="width: 448"]
<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: right"]100[/TD]
[TD="width: 64, align: right"]200[/TD]
[TD="width: 64, align: right"]120[/TD]
[TD="width: 64, align: right"]80[/TD]
[TD="width: 64"][/TD]
[TD="width: 64, align: right"]500[/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="align: right"]120[/TD]
[TD="align: right"]220[/TD]
[TD="align: right"]120[/TD]
[TD="align: right"]40[/TD]
[TD][/TD]
[TD="align: right"]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]formula in A2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]=A1+((D1-D2)/2)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 2"]same principle in B2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
100 in (A2) 200 (B2) 120 (C2) 80 (D2)

And you said formula in A2
=A1+((D1-D2)/2)

But in A2 there is the 100 :rofl:[TABLE="class: cms_table, width: 448"]
<tbody>[TR]

[/TR]
[TR]
[/TR]
[TR]

[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
I don't know who you're talking to. I'll bow out.
 
Upvote 0
Hi SHG,

Thanks very much for your help and I like that you posted it within in Excel visible, so I don't get confused with cells.
 
Upvote 0
In my example, A2:D2 as shown.
Hi Oldbrewer I thought that this was your answer and I was confused about A1.

Now we are getting to it :)
Let's ignore the 500 (because in this formula 500 seems it is not active) and we think about the 140. Is it possible that I change the 80 to whatever I want and I still have the answer 140?
17c6496d31ed9c663eec533a79695d3f.jpg


But if possible, as I said in the first thread I prefer the 500 but I think even with 140 I can work it out.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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