Multiplying column values in Google Spreadsheet with ability to add/delete rows -


i have invoice, there 2 columns: rate (column h) , quantity (column i). , there amount (column j).

i need formula automatically multiply rate , quantity , show in amount. number of rows changing (added or deleted), formula should still work.

enter image description here

the following arrayformula() spans row 5 ("books name") row 14 ("total price"), adding rows or deleting them should not problem:

=arrayformula(if((c5:c14="books name")+(c5:c14="total price")=1,"",h5:h14*i5:i14)) 

enter image description here

however, since formula have reside in column j, following formula more useful:

=arrayformula(if(c5:c14="books name","amount",if(c5:c14="total price","",h5:h14*i5:i14))) 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -