Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9787

ArrayFormula row by row discount calculation

$
0
0

The discount in question is a fixed percentage, the numbers to be reduced by said percentage is in the column to the immediate left. I've tried this in D5:

=ARRAYFORMULA(C5:C27 - (INDIRECT("RC[-1]",FALSE) * TO_PURE_NUMBER(D4)))

Where C5:C27 are the original numbers and the indirect bit just grabs the cell to the left with D4 being the percentage.

My problem is it grabs the cell to the left.. of the first row only so every number gets discounted by the same exact amount.

I am using Google Sheets.


Viewing all articles
Browse latest Browse all 9787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>