User Posts: Mehrab Imtiaz
0
How to Remove Comma in Google Sheets (3 Easy Ways)
0

In this article, we will take a look at a few different ways to remove the comma (,) from data in Google Sheets. Commas can be found in unexpected places in ...

0
How to Remove Characters from a String in Google Sheets (6 Easy Examples)
0

Updating data can involve both adding and removing other data to it. Things become trickier when we have hundreds of updates to perform, which is a common ...

0
Use REGEXREPLACE to Replace Multiple Values in Google Sheets (An Easy Guide)
0

While there are a number of ways to do so, the REGEXREPLACE function is a great way to replace multiple values in Google Sheets, especially for string ...

0
How to Substitute Multiple Values in Google Sheets (An Easy Guide)
0

In this simple tutorial, we will look at how we can substitute multiple values in Google Sheets. Unsurprisingly, our primary method revolves around the ...

0
How to Filter with QUERY for Multiple Criteria in Google Sheets (An Easy Guide)
0

The QUERY function is perhaps the most customizable function to search and present specific values in Google Sheets from a source. So, in this article, we will ...

0
How to Filter By Rows in Google Sheets (An Easy Guide)
0

Typically, datasets are presented vertically, with column headers followed by a vertical list of data. But sometimes, you may have data that is given ...

0
Filter with the AND Condition in Google Sheets (An Easy Guide)
0

When we filter for multiple conditions in a spreadsheet, we follow one of the two approaches to the relationship of the said conditions: AND or OR. In this ...

0
Google Sheets: The FILTER Function (A Comprehensive Guide)
0

Filtering is a primary process that is utilized in most spreadsheets, especially those that contain a large amount of data. While most spreadsheet applications ...

0
How to Filter with the OR Condition in Google Sheets (3 Easy Ways)
0

Filtering with multiple criteria is a common requirement for most spreadsheets. However, doing so gives rise to logical calculations of how these conditions ...

0
How to Filter for Multiple Conditions in Google Sheets (2 Easy Ways)
0

Filters are a great tool to help sift through a large set of data and bring out the important ones depending on various conditions. Unlike Excel, Google ...

0
Filter Entries if it Does Not Contain Value in Google Sheets (2 Easy Ways)
0

The most common and default approach to filtering is to look for a certain value in a data range. But what if we wanted to filter entries if it does not ...

0
How to Filter Based on a Cell Value in Google Sheets (2 Easy ways)
0

Cell references can be a huge deal when it comes to automating many spreadsheet features, including filtering. Keeping that in mind, in this article we will ...

0
Applying Filter with REGEXMATCH Function in Google Sheets (Easy Examples)
0

The REGEXMATCH function of Google Sheets can help us easily filter for text conditions. Not only that but also thanks to the use of regular expressions, ...

0
Filter Values that Contains Multiple Text Criteria in Google Sheets (2 Easy Ways)
0

Filtering in Google Sheets is a core process required by most analysts. While there are a plethora of great filter conditions already available in Google ...

0
How to Filter by Condition Using a Custom Formula in Google Sheets (3 Easy Examples)
0

Using a custom formula is the easiest way to filter by a specific condition in Google Sheets. While the filter feature has improved by leaps and bounds, ...

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