1

I want to create a chart in Google Sheets with cumulative Profit (H) column but without creating the second column (I). Are there any solutions?

enter image description here

  • A strange desire is a dubious decision. – contributorpw Feb 25 at 13:50
1

=SPARKLINE(ARRAYFORMULA(IF(H2:H; 
 MMULT(TRANSPOSE((ROW(H2:H)<=TRANSPOSE(ROW(H2:H)))*H2:H); 
 SIGN(H2:H)^2); IFERROR(1/0))); 
 {"charttype" \ "line"; 
  "color" \ "red"; 
  "linewidth" \ 3})

=SPARKLINE(ARRAYFORMULA(IF(H2:H; 
 MMULT(TRANSPOSE((ROW(H2:H)<=TRANSPOSE(ROW(H2:H)))*H2:H); 
 SIGN(H2:H)^2); IFERROR(1/0))); 
 {"charttype" \ "column"; 
  "color" \ "red"})

  • This solution maybe works but it not a chart object. For example I can't see chart's legend or publish this chart. – Vadim Selyakov Feb 18 at 6:40
  • 1
    @VadimSelyakov this is all you can get without column I – user0 Feb 18 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.