• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Google Sheets – shift the cell value according to the name beside the cell

Resolved: Google Sheets – shift the cell value according to the name beside the cell

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Problem: The details of item can’t move together when latest stock update.
The picture below shows the initial input:
enter image description here
The picture below shows the problem when the stock changes:
enter image description here
Desired Output:
enter image description here
The formula of Name column for repeat the item:

Answer:

Suggestion


Using apps script
Not sure if it is possible using formula, but here’s a script you can use. This of course still needs some tweaking to align with your spreadsheet.
Also what I’ve done with the script is it deletes both the last name and detail if you change it to lower stock since it makes more sense rather than keeping it in same spot.
try:
Result:
enter image description here
Let me know if this works or if you have other questions.

EDIT – Modified code


If you have better answer, please add a comment about this, thank you!

google-sheets google-sheets-formula
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Resolved: How to convert Java bytecode to Webassembly using CheerpJ compiler

24/03/2023

Resolved: Is pandas groupby() function always produce a DataFrame with the same order respect to the column we group by?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.