Need to sum all positive numbers and all negative numbers separately then divide positive numbers by positive result and negative numbers by negative


New Member
Jul 29, 2010
<table border="0"><tbody><tr><td>

<table style="width: 80px;" border="0" cellpadding="0" cellspacing="0"><colgroup span="1"></colgroup><col span="1" width="80"><tbody><tr height="17"><td class="xl67" height="17" width="80">90,531.54</td></tr><tr height="17"><td class="xl68" height="17">33,185.39</td></tr><tr height="17"><td class="xl68" height="17">26,725.28</td></tr><tr height="17"><td class="xl68" height="17">11,055.71</td></tr><tr height="17"><td class="xl68" height="17">10,200.00</td></tr><tr height="17"><td class="xl68" height="17">6,132.47</td></tr><tr height="17"><td class="xl68" height="17">3,232.69</td></tr><tr height="17"><td class="xl67" height="17">17,047.09</td></tr><tr height="17"><td class="xl68" height="17">12,077.13</td></tr><tr height="17"><td class="xl68" height="17">3,773.95</td></tr><tr height="17"><td class="xl68" height="17">1,196.00</td></tr><tr height="17"><td class="xl67" height="17">-46,173.84</td></tr><tr height="17"><td class="xl68" height="17">2,800.50</td></tr><tr height="17"><td class="xl68" height="17">-1,850.00</td></tr><tr height="17"><td class="xl68" height="17">-3,059.75</td></tr><tr height="17"><td class="xl68" height="17">-4,440.00</td></tr><tr height="17"><td class="xl68" height="17">-4,601.99</td></tr><tr height="17"><td class="xl68" height="17">-5,300.00</td></tr><tr height="17"><td class="xl68" height="17">-5,536.00</td></tr><tr height="17"><td class="xl68" height="17">-8,960.00</td></tr><tr height="17"><td class="xl68" height="17">-15,226.60</td></tr><tr height="17"><td class="xl67" height="17">51,963.12</td></tr><tr height="17"><td class="xl68" height="17">29,694.00</td></tr><tr height="17"><td class="xl68" height="17">13,614.12</td></tr><tr height="17"><td class="xl68" height="17">5,085.00</td></tr><tr height="17"><td class="xl68" height="17">3,570.00</td></tr></tbody></table>

PLease view blue numbers as value with colored background, also the results from division should populate adjacent row (O).
Last edited:

Some videos you may like

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.


Well-known Member
Sep 10, 2008
What causes the colour? Is it cell shading or conditional formatting? If the latter, what's the condition? What version of XL?

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Latest member

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...