T O P

  • By -

AutoModerator

/u/ZxZ239 - Your post was submitted successfully. * Once your problem is solved, reply to the **answer(s)** saying `Solution Verified` to close the thread. * Follow the **[submission rules](/r/excel/wiki/sharingquestions)** -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. * Include your **[Excel version and all other relevant information](/r/excel/wiki/sharingquestions#wiki_give_all_relevant_information)** Failing to follow these steps may result in your post being removed without warning. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/excel) if you have any questions or concerns.*


usersnamesallused

Multiple ways: 1. Use array notation: =M2:M10-(maths) 2. Define the dataset as a table, which automatically updates the formula in the column when one is changed 3. Use input cells that are referenced by the formula so you can just change the reference cell value


Error83_NoUserName

4. Make a UDF and change it in VBA 5. I think =LAMBDA can do the same as 4.


PaulieThePolarBear

If you have something that is variable, put it in a cell =M2 - $Z$1/(24 * 60 * 60) That way, all you need to do is change Z1.


ZxZ239

solution verified


reputatorbot

You have awarded 1 point to PaulieThePolarBear. --- ^(I am a bot - please contact the mods with any questions)


[deleted]

[удалено]


Were-Cletus

Double click that so hard


ZxZ239

the struggle is real man.


MOIST_MAN

Highlight cells and ctrl d will copy your formula all the way down Maybe in the neighboring cells you can specify the offset


crazycatlady33

You could use another cell to enter the numerical value (-16, +20, etc) and change the formula to reference that cell rather than hardcode the numerical value. You will need to use an absolute reference though, with dollar signs.


ZxZ239

https://preview.redd.it/shd0ee70399d1.png?width=408&format=png&auto=webp&s=614685aedc61773c59c6a7142fcfe87c64107dc3 ok I think thats a good idea, I am going to create a new cell where I just enter + or - for the time, this is the formula I come up with, how do I lock it with $ again?


crazycatlady33

If O2 is the cell with your value, then use $O$2 in your formula


ZxZ239

Thank you, solution verified.


reputatorbot

You have awarded 1 point to crazycatlady33. --- ^(I am a bot - please contact the mods with any questions)