[Solved] Batch edit of formulas in a column

Discuss the spreadsheet application
Locked
jpm2
Posts: 3
Joined: Sat Oct 26, 2024 2:28 am

[Solved] Batch edit of formulas in a column

Post by jpm2 »

I wondered if there's an option to batch edit formulas that are in same column but different rows?

Due to my misunderstanding of priorities I have to add ( ) to existing formulas. Every formula is different though, because they are in different rows.
what I've got etc
=F87+H87+J87+M87+N87*1.05+O87
=F88+H88+J88+M88+N88*1.05+O87
=F89+H89+J89+M89+N89*1.05+O87

what I'd like to achieve
=(F87+H87+J87+M87+N87)*1.05+O87
=(F88+H88+J88+M88+N88)*1.05+O87
=(F89+H89+J89+M89+N89)*1.05+O87

Thanks so much.
JP

Microsoft W10
Open Office Calc 4.1
Last edited by robleyd on Tue Oct 29, 2024 1:16 am, edited 1 time in total.
Reason: Tagged [Solved]. Add green tick
OpenOffice 4.1.3 on Windows 10
User avatar
robleyd
Moderator
Posts: 5504
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Batch editing formulas

Post by robleyd »

No need for batch editing. Simply edit the first formula to your needs, then use the drag handle at the bottom right of the cell to drag it down as far as needed.
aoo_drag.png
aoo_drag.png (17.57 KiB) Viewed 930 times
Specifically your existing formula

Code: Select all

=F87+H87+J87+M87+N87*1.05+O87 
will need to be changed to

Code: Select all

=(F87+H87+J87+M87+N87)*1.05+$O$87 
See [Tutorial] Absolute, relative and mixed references if you don't know why I've used dollar signs in the addresses.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
jpm2
Posts: 3
Joined: Sat Oct 26, 2024 2:28 am

Re: Batch editing formulas

Post by jpm2 »

Thank you so much robleyd
Saved me a ton of time. Just shows what a self-learned newbie I am. Thank you!!

Further to this:
How can I do this without affecting individual cell formatting ie borders, colours etc
OpenOffice 4.1.3 on Windows 10
User avatar
MrProgrammer
Moderator
Posts: 5430
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Batch edit of formulas in a column

Post by MrProgrammer »

jpm2 wrote: Tue Oct 29, 2024 12:59 am How can I do this without affecting individual cell formatting ie borders, colours etc
Edit the first formula. Edit → Copy. Select the target cells (the others in that column). Edit → Paste Special → Formulas → OK.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
jpm2
Posts: 3
Joined: Sat Oct 26, 2024 2:28 am

Re: Batch edit of formulas in a column

Post by jpm2 »

Thanks so much!!
All sorted
OpenOffice 4.1.3 on Windows 10
Locked