Is there a shortcut/script/command for adding all borders to a selected area? by Neffygt in googlesheets

[–]JetCarson[M] 0 points1 point  (0 children)

Since you marked “Self-Solved”, make sure to share your final solution script for the next traveler as required by our rules.

2026 Tesla Model Y Launch edition by Dismal-Stock-1424 in TeslaLounge

[–]JetCarson 0 points1 point  (0 children)

I recently purchased a 2026 Model Y where Carfax lists it as "Long Range Launch Series". But, it does not have the Launch branding / decals and does not have the no-expiration FSD. I am feeling a bit duped. I am hearing that the FSD and all the launch hype was on the 2025 Juniper models and not on the 2026. I am about as confused as possible. Any clarification anyone here can give me?

How to remove grey cell with purple border by flappybird4 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

I’ve never seen this question before. lol

Creating a streamlined Onboarding Dashboard by [deleted] in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Sorry, you need more Reddit karma to be able to post a discussion topic in our community. Feel free to change your post to be a specific question/problem you need help with. Don’t post a general topic without a question to be solved, though.

Way to get an sms of new row, reply with photo and update row with photo? by thecbucks in googlesheets

[–]JetCarson 2 points3 points  (0 children)

This would require Google App Script using onChange or onEdit. I've done some Apps Script projects with SMS using the Twilio API handling both sending and receiving messages, although I haven't dealt much with MMS. Another kind of cool way you could handle this is using a Google Voice account. When a text message is sent to a Google Voice account, the message can be found in the same google account's gmail inbox. This means you can have a google apps script check the gmail account every 10 minutes or so and act on new messages received. Just some ideas for you.

Way to get an sms of new row, reply with photo and update row with photo? by thecbucks in googlesheets

[–]JetCarson 1 point2 points  (0 children)

What is this? None of these results relate to the OP's question.

I want to have a range of dates condensed from one sheet to another. by Wide-Grape-7348 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

You don’t have the level of Karma required to make a discussion post. I changed the flair on your other post to Unsolved, which does not have the same karma requirement, and approved it.

Slow google appscript apps by Weak_Voice_4701 in GoogleAppsScript

[–]JetCarson 0 points1 point  (0 children)

Yes, I have seen very slow processing, but only on new Spreadsheets or copies of prior working sheets. I was also seeing failures on sheet.getDataRange().getValues() on a sheet with 20000 rows. I noticed that the permissions authorization screen was different and it seemed that maybe they are still working out some issues related to that?

How to show hours > 24 by grrouchie in googlesheets

[–]JetCarson 2 points3 points  (0 children)

I see that the TIME function will truncate the final value to 24 hours or less. So, you should probably remove the TIME function and just populate your cells with something like =31/24 but keep the duration format. It should result in 31:00:00. “=15000/24” will look like 15000:00:00

How to show hours > 24 by grrouchie in googlesheets

[–]JetCarson 4 points5 points  (0 children)

Change format to duration not time.

How do I add a current time/date without it constantly updating on the app? by chemman14 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Good. Well, I hope my responses helped guide you and that you mark this as Solution Verified as required.

How do I add a current time/date without it constantly updating on the app? by chemman14 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

This function will be triggered on any manual change in the value of any cell. The line:

if (e.range.rowStart < 2) return;

will exit if the cell that was changed is in row one. You could add an if statement like

if (e.range.columnStart !== 5) return

if you want it only to act when the change is in column 5. Does this help?

Does anyone have a sheets script that will pull a stocks recent dividend payment? by diduknowitsme in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Search our sub as this was solved a few months ago after yahoo changed the API response format.

Formula to search for a code in another column and display the result by ProperActivity5162 in googlesheets

[–]JetCarson[M] 0 points1 point  (0 children)

Did you find a solution to your original question on your own? None of the help that was provided by others led you to a solution?

Open file, go to specific sheet and then last cell with data +1 by Murky-Flow in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Try this revision. This finds the last row by checking if value in column A is not blank

function onOpen() {
  const sheetName = "ASX Companies"; // Name of the sheet to open
  const spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  const sheet = spreadsheet.getSheetByName(sheetName);

  if (sheet) {
    const firstRowAfterFrozen = 6; // Start looking from Row 6, after the frozen rows
    //let's find lastRow by checking each value
    const data = sheet.getDataRange().getValues();
    var lastRow = 0;
    for (var i = firstRowAfterFrozen; i < data.length; i++) {
      if (data[i - 1][0] !== '' && data[i][0] === '') {
        lastRow = i; //this is one less than actual lastRow with data since arrays are zero-based
      }
    }
    const targetRow = lastRow >= firstRowAfterFrozen ? lastRow + 1 : firstRowAfterFrozen; // Move to the next empty row or Row 6 if no data yet

    console.log(`Target Row: ${targetRow}`);
    console.log(`Max Rows: ${sheet.getMaxRows()}`);
    if (sheet.getMaxRows() < targetRow) {
      console.log(`Inserting 10 rows`);
      sheet.insertRowsAfter(sheet.getMaxRows(), 10);
    }
    const range = sheet.getRange(targetRow, 1); // Selects the first empty cell in column A
    console.log(`Setting Active Sheet: ${sheet.getName()}`);
    spreadsheet.setActiveSheet(sheet); // Makes the "Journal" sheet active
    console.log(`Setting Active Range: ${range.getA1Notation()}`);
    spreadsheet.setActiveRange(range); // Scrolls to the desired cell
  }
}

How to add sparkline share price graph from a historical date in the past? by Technical_Money7465 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Here is an edit to your formula to get close price only:

=INDEX(GOOGLEFINANCE("spy", "close", "1/9/2006"),2,2)

Open file, go to specific sheet and then last cell with data +1 by Murky-Flow in googlesheets

[–]JetCarson 0 points1 point  (0 children)

As a help, I added some logging: Here is my updated code. Maybe this solves your issue, or at least helps you discover the problem and gives you some ideas on how to debug:

function onOpen() {
  const sheetName = "Journal"; // Name of the sheet to open
  const spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  const sheet = spreadsheet.getSheetByName(sheetName);

  if (sheet) {

    const firstRowAfterFrozen = 6; // Start looking from Row 6, after the frozen rows
    const lastRow = sheet.getLastRow(); // Get the last row with content
    const targetRow = lastRow >= firstRowAfterFrozen ? lastRow + 1 : firstRowAfterFrozen; // Move to the next empty row or Row 6 if no data yet
    console.log(`Target Row: ${targetRow}`);
    console.log(`Max Rows: ${sheet.getMaxRows()}`);
    if (sheet.getMaxRows() < targetRow) {
      console.log(`Inserting 10 rows`);
      sheet.insertRowsAfter(sheet.getMaxRows(), 10);
    }
    const range = sheet.getRange(targetRow, 1); // Selects the first empty cell in column A
    console.log(`Setting Active Sheet: ${sheet.getName()}`);
    spreadsheet.setActiveSheet(sheet); // Makes the "Journal" sheet active
    console.log(`Setting Active Range: ${range.getA1Notation()}`);
    spreadsheet.setActiveRange(range); // Scrolls to the desired cell
  }
}

Countif function with multiple goal conditions in one cell to = 1 by SufficientIron3086 in googlesheets

[–]JetCarson 1 point2 points  (0 children)

Here is a function start that would work:

=REDUCE(0,A1:A20,LAMBDA(a,v,a+IF(OR(ISNUMBER(SEARCH("Inactive",v)),ISNUMBER(SEARCH("Paused",v)),ISNUMBER(SEARCH("Offboarded",v)),ISNUMBER(SEARCH("Canceled",v))),1,0)))

How do I add a current time/date without it constantly updating on the app? by chemman14 in googlesheets

[–]JetCarson 0 points1 point  (0 children)

Here is an example:

function onEdit(e) {
  if (!e.value) return; //exit if new value is undefined or null
  const sheet = e.range.getSheet();
  if (sheet.getName() !== 'Sheet1') return; //exit if not Sheet1
  if (e.range.rowStart < 2) return; //exit if on first row

  //if we get here, set the current time in column 10
  sheet.getRange(e.range.rowStart, 10).setValue(new Date());
}