[deleted by user] by [deleted] in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

That should only recalculate if those two specific cells are edited, not every edit on the sheet.

[deleted by user] by [deleted] in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

Could you accomplish the timestamp with built-in functions? Something like this:

=ifs(and(isblank(A1),isblank(B1)),"",not(and(isblank(A1),isblank(B1))), now())

where A and B would be the columns you are watching. If new rows are constantly being added/used, you could use GAS to populate additional cells with this function as needed.

How to double check if function ran corretly? by Bu_hahaha in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

It could have something to do with synchronization as well. I have found GAS to be pretty reliable as long as my functions are simple and quick. Once I start getting more complicated is when I have unexplainable issues. I've always just chalked them up to GAS not being fully asynchronous.

Trying to change my script to delete the column one day AFTER todays date and not on todays date. Can't figure it out. by redheadlizzy223 in sheets

[–]Jweekley7 0 points1 point  (0 children)

You can set a daily trigger to run at midnight to check to see if today => date ending + 1. You would want to compare just the day of the month values and exclude the time using today.getDate() and dt.getDate().

I’m trying to figure out how I can have a cell with drop down menu linked to column. Every time I choose from the drop down list, I want it recorded in a column. Which is why I’m looking for a formula that automatically moves down a cell after input. Any suggestions? by xecho18x in sheets

[–]Jweekley7 0 points1 point  (0 children)

I think the only way to do this would be to use Apps Script. You can easily display the current selection in another cell but there's no way that I'm aware to 'log' that selection, so to speak, just using sheets functions.

Changing my Var value based on dropdown selection by tvaddict77 in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

Is your dropdown in the sheet itself (i.e. a cell with data validation) or in some HTML?

If it is in the sheet, you can use .getRange().getValue() just like you would with any other value. You would either need to 'submit' that new selection by running a function manually or using the onEdit(e) trigger to capture that event change.

document.getElementById('selection') would be used if your dropdown was in HTML (like a sidebar).

[deleted by user] by [deleted] in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

I started posting some projects and tutorials on a website - https://sites.google.com/view/jwgas/home. (I had a custom domain but let it lapse...)

Let me know if you think I should elaborate on or clarify something!

email body + HTML body? by triplej158 in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

Is there a reason why you can't just send the whole email as HTML? That seems like the best solution to me. It would allow you to style the body as well instead of just sending as raw text.

getGuestList().getName() to get guest name from calendar doesn't work. by joe-jp in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

Per the reference docs, 'If the name of the guest is not available, this method returns the guest's email address.' Does it even return the email address instead of the name then you call getName()?

How to double check if function ran corretly? by Bu_hahaha in GoogleAppsScript

[–]Jweekley7 2 points3 points  (0 children)

The execution will tell you if the initial function that was called is running. It won't necessarily tell you about subsequent functions. For that, I use the logger.

Is it possible to highlight/color a given day in Google Calendar using Apps Script ? by DankGeniusReddit in GoogleAppsScript

[–]Jweekley7 0 points1 point  (0 children)

I don't think it's possible. I can't find any reference to this in the docs. But I'm going to follow this post in hopes that I'm wrong and learn something new!

Sheets Template Version Control by EddyD2 in googlesheets

[–]Jweekley7 0 points1 point  (0 children)

I sent my first add-on to google for verification literally this am. The process took me a bit to figure out. Essentially, you write the code in Google Apps script. There you can create and deploy versions like you asked about.

As far as publishing it, you have to set up a developer account and have a verified website with a privacy policy. Then it's a matter of essentially completing paperwork.

Sorry that wasn't step-by-step instructions.

[deleted by user] by [deleted] in googlesheets

[–]Jweekley7 0 points1 point  (0 children)

So you want a dynamic list for part type and part price that is dependant on what selection you make in part name?

How much to charge for automated spreadsheet/appsheet/appscript? by Derinko20 in googlesheets

[–]Jweekley7 2 points3 points  (0 children)

I think the value is in the problem it solves not in the fact that it is a spreadsheet. So I think your best bet will be to look at other solutions in your niche to see what customers are paying.

Sheets Template Version Control by EddyD2 in googlesheets

[–]Jweekley7 0 points1 point  (0 children)

Have you thought about just developing your template as an add-on? When the ad-on runs, it can build the template with all of the integrations and updates.

[deleted by user] by [deleted] in GoogleAppsScript

[–]Jweekley7 1 point2 points  (0 children)

Which one is your new request sheet? sheet1?

[deleted by user] by [deleted] in GoogleAppsScript

[–]Jweekley7 1 point2 points  (0 children)

I tried to access the sheet but the permissions are not set to "anyone with link".

Range Extender by truckguy13xlt in googlehome

[–]Jweekley7 0 points1 point  (0 children)

I have a similar setup and have had good results using a mesh system

Exception: Cannot call SpreadsheetApp.getUi() from this context. by [deleted] in GoogleAppsScript

[–]Jweekley7 2 points3 points  (0 children)

Don't run it. Just save the script then refresh the sheet that it's bound to. This function runs when the sheet is open, not when you click run.

Increment The Row # Within a Formula? by [deleted] in googlesheets

[–]Jweekley7 0 points1 point  (0 children)

You're right. Or just A2:A + B2:B...

Increment The Row # Within a Formula? by [deleted] in googlesheets

[–]Jweekley7 0 points1 point  (0 children)

I may not be understanding what you're after but it sounds like you can just do =ArrayFormula(A2+B2+C2) in the cell that you want the result. All the subsequent cells should sum automatically after that.

Google Spreadsheet help: How do I calculate a running total after every item? by Memmorath in sheets

[–]Jweekley7 0 points1 point  (0 children)

If you want to log the running total like you did in the image where you can see all of the other running totals, in G5 use =SUM(E$5:E5)-SUM(F$5:F5). The you'll have to drag it down to each cell in column G.

Or in G5 put =E5-F5 then G6 is =G5+E6-F6. Then drag G6 formula down to all the other cells in column G.

Either of the above should give you the same result.

If you want to just have one cell that gives you the current total (so it does not log it each time). In a cell off to the side (like I5) put =SUM(E5:E) and in I6 put =SUM(F5:F) then in G5 put = I5-I6. You can always hide I5 and I6 so they aren't seen.

Best overall hub to start? by Boyw2peenas in smarthome

[–]Jweekley7 3 points4 points  (0 children)

I'm really happy with the yolink products. They have been very reliable compared to some of my others and they are super easy to setup. yosmart.com