kvonatzigen
New Member
- Joined
- May 16, 2011
- Messages
- 10
Hello All!
I'm in need of a bit of help. I have a data set as follows:
A B
<TABLE style="WIDTH: 153pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=204><COLGROUP><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3913" width=107><COL style="WIDTH: 73pt; mso-width-source: userset; mso-width-alt: 3547" width=97><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$9,822.68</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$25,000.00</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$25,000.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$2,554.78</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$815,239.27</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$906,867.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$78,806.18</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$13,981.86</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$6,737.99</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$11,652.40</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$5,791.41</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$9,445.44</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$4,000.00</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$39,288.33</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$183,919.09</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$626,406.67</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$66,202.54</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$27,556.38</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$124,866.32</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$0.01</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$123,986.31</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$125,000.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$1,068,275.81</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR></TBODY></TABLE>
I would like to subtract the cells from column A whenever they are less than or equal to the adjacent cells of column B. Then I would like to add the total of column B to the adjusted total of Column A.
Essentially, I want something to check the values, determine if A<=B, if so subtract the A's that are less than or equal to B's from A-TOTAL and add B's to A-TOTAL resulting in a NEW TOTAL.
TOTALs are:
A:$3,243,533.47
B:$1,056,867
The end result should be a NEW TOTAL of:
A TOTAL - (A COLUMN CELLS <= B COLUMN CELLS) + B TOTAL = NEW TOTAL
or
$3,243,533.47 - ($964,225.58) + $1,056,867 = $3,336,174.89
Thank you for your help!
I'm in need of a bit of help. I have a data set as follows:
A B
<TABLE style="WIDTH: 153pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=204><COLGROUP><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3913" width=107><COL style="WIDTH: 73pt; mso-width-source: userset; mso-width-alt: 3547" width=97><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$9,822.68</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc 0.5pt solid; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$25,000.00</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$25,000.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$2,554.78</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$815,239.27</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$906,867.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$78,806.18</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$13,981.86</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$6,737.99</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$11,652.40</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$5,791.41</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$9,445.44</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$4,000.00</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$39,288.33</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$183,919.09</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$626,406.67</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$66,202.54</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$27,556.38</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$124,866.32</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$0.01</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$123,986.31</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$125,000.00</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 80pt; HEIGHT: 12.75pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 height=17 width=107>$1,068,275.81</TD><TD style="BORDER-BOTTOM: #cccccc 0.5pt solid; BORDER-LEFT: #cccccc; BACKGROUND-COLOR: transparent; WIDTH: 73pt; BORDER-TOP: #cccccc; BORDER-RIGHT: #cccccc 0.5pt solid" class=xl63 width=97>$0.00</TD></TR></TBODY></TABLE>
I would like to subtract the cells from column A whenever they are less than or equal to the adjacent cells of column B. Then I would like to add the total of column B to the adjusted total of Column A.
Essentially, I want something to check the values, determine if A<=B, if so subtract the A's that are less than or equal to B's from A-TOTAL and add B's to A-TOTAL resulting in a NEW TOTAL.
TOTALs are:
A:$3,243,533.47
B:$1,056,867
The end result should be a NEW TOTAL of:
A TOTAL - (A COLUMN CELLS <= B COLUMN CELLS) + B TOTAL = NEW TOTAL
or
$3,243,533.47 - ($964,225.58) + $1,056,867 = $3,336,174.89
Thank you for your help!