Hello I am new to this forum so please bear with me...
I am looking for help in developing steps in a spreadsheet to calculate a sum based on a few conditions. The basis of my spreadsheet works fine, however I am trying to add the contents of a cell to another by checking other cells.
For example:
Cells A1:A10 contain a numerical sequence (1-10 respectively) to indicate a "Node"
Cells B1:B10 contain a user selected number (1-10) which defines the Node it is fed from. We'll call this "Fed From Node".......ie. If Cell B2=1, that means that Node 2 is fed from Node 1.
Cells C1:C10 contain a value which is input by the user. We'll call this "Amps"
Cells D1:D10 would show the total "Amps" of the current cell added to all others that are fed from same.
What I am ultimately trying to figure out is how to add the "Amps" to each "Node" and show the results in column D.
More specifically if the spreadshet looks like the following:
Node-----Fed From Node-----Amps-------Total
1--------------0----------------------0--------------22.5
2--------------1---------------------10--------------22.5
3--------------0----------------------0---------------0
4--------------2---------------------7.5-------------12.5
5--------------4----------------------5---------------5
How would I add the "Amps" from Node5 to Node4 and Node4 to Node2 to achieve a total of 22.5 IF Node5 is fed from Node4 and Node4 is fed from Node2?
I have tried macros and different excel formulas for the past few days and I am really stumped.
Any help would be greatly appreciated.
Bookmarks