User Posts: Mehrab Imtiaz
0
Google Sheets: Filter Data that Contains Text (3 Easy Ways)
0

Filtering in a spreadsheet is a common task. But it is good to understand that there are a lot of ways and scenarios where filters can be applied. Today, we ...

0
Google Sheets: Filter for Multiple Criteria with Formula (2 Easy Ways)
0

Conditional filtering is a staple in many spreadsheet processes. But what if you wanted to filter for multiple conditions? Thankfully, we have a function to ...

0
How to Fill Down an Entire Column in Google Sheets (4 Easy Ways)
0

Inputting data in a spreadsheet one by one can be long and tedious. Thankfully, applications like Google Sheets provide its users with multiple ways to fill ...

0
Google Sheets Smart Fill: Recognize and Autocomplete Patterns (A Complete Guide)
0

If you’ve been following recent updates, you will know about the new AI-powered addition to Google Sheets, the Smart Fill. In this article, we will look at ...

0
Google Sheets: How to Autofill Based on Another Field (4 Easy Ways)
0

The term Autofill can take many forms in Google Sheets, of which the most common is the fill-down columns method in a worksheet. On the other hand, we can also ...

0
Filter Data Using Filter Views in Google Sheets (An Easy Guide)
0

The Filter Views of Google Sheets is an amazing functionality that allows users to collaborate and filter data without affecting the source data. Why Use ...

0
Google Sheets: Filter Data if it Contains Value (A Comprehensive Guide)
0

Google Sheets has improved in functionality by quite a bit over the years. We now have not only one but two different ways we can filter data if it contains a ...

0
How to Filter Custom Formula in Google Sheets (3 Easy Examples)
0

Sometimes the available filter options of the spreadsheet just do not cut it. While there are many, the user may require a customized approach to filter their ...

0
Google Sheets Autofill: Fill Cells Automatically (A Comprehensive Guide)
0

Over the years, Google Sheets has continued to add much-needed features with every update, especially those catered toward making data presentation easy. One ...

0
How to Set a Filter in Google Sheets (An Easy Guide)
0

When working with large sets of data, you may want to arrange the data in such a way that it matches the criteria that you are looking for. That’s where ...

0
How to Delete Filter Views in Google Sheets (An Easy Guide)
0

With Google constantly updating its applications, it can be quite difficult to keep track of the new features that may now be included. One of which is the ...

0
How to Create Filter Views in Google Sheets (An Easy Guide)
0

Filtering data is a core function of any spreadsheet. Unfortunately, when you have a lot of collaborators, there's a high likelihood of unwanted changes of ...

0
How to Autofill Numbers in Google Sheets (An Easy Guide)
0

In this simple guide, we will show you how to autofill numbers in Google Sheets by taking advantage of the application’s automated understanding of numerical ...

0
How to Autofill Formula in Google Sheets (3 Easy Ways)
0

The autofill option is a much-desired feature for any user of office applications. Not only is it convenient, but it is also a time-saver to go through a large ...

0
How to Use a Custom Formula in a Google Sheets Slicer (An Easy Guide)
0

Since slicers are essentially a type of filter, there can arise situations where the user might need to customize the filter conditions to suit their or their ...

Browsing All Comments By: Mehrab Imtiaz
  1. Hello,
    If you want to specify which column’s changes will trigger the timestamp, all you have to do is include an IF ELSE statement inside the existing one. For example, let’s say that the SL column is Column A in the sheet:

    if(sheetName == 'Stock'){
        if(range.getColumn() !== 1) return
        else{
          var new_date = new Date();
       spreadSheet.getActiveSheet().getRange(row,4).setValue(new_date).setNumberFormat("MM/dd/yyyy hh:mm:ss");
        }
    }
    

    So, if changes are made to any column other than column A or 1, no timestamps will be triggered.

    For multiple triggers, we recommend different scripts for each.
    I hope it helps!

  2. Hi Max,
    I am assuming that you are thinking about extracting the letters ABC from ABC-123. In this case, you can approach it in two ways without even using wildcards.
    The first way is to use text functions to extract the number of characters from the string:

    =LEFT(B2,LEN(B2)-4)

    The LEN(B2)-4 removes the last 4 characters from the string.
    For a more dynamic approach, you can look for the hyphen/dash as a delimiter to remove characters before or after it. In this case, to get ABC from ABC-123, the formula will be:

    =MID(B2,1,FIND(“-“,B2)-1)

    Just replace “-” with any delimiter of your choosing.
    However, if you still want to extract using regular expression to get ABC from ABC-123, use this:

    =REGEXREPLACE(B2,”[0-9-]”,””)

    The regular expression to remove all digits and hyphens is given by [0-9-].
    I hope this helps!

OfficeWheel
Logo