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

Today, we will look at a few ways we can count unique entries in Google Sheets. While the idea is simple, it also means that there can be multiple types of ...

0
How to Concatenate Number and String in Google Sheets
0

Today we will look at a couple of ways to concatenate number and string in Google Sheets. We will also see some advanced examples based on combining what we ...

0
How to Concatenate With Separator in Google Sheets (3 Ways)
0

Separators, or more technically known as delimiters, are a crucial part of making concatenated values in spreadsheets more presentable. Today, we will look at ...

0
How to Concatenate Strings in Google Sheets (2 Easy Ways)
0

Concatenating values is one of the more fundamental tasks performed in a spreadsheet. Today, we will be specifically looking into how to concatenate strings in ...

0
Compare Two Columns for Duplicates in Google Sheets (3 Easy Ways)
0

Today we will look at a few ways to compare two columns for duplicates in Google Sheets. While the idea is simple, we can have multiple scenarios surrounding ...

0
Using Conditional Format to Compare Two Columns in Google Sheets
0

Today we are going to specifically look at how to compare two columns using conditional formatting in Google Sheets. Let’s get started. 2 Scenarios ...

0
How to Put Date in Google Sheets (3 Easy Ways)
0

There are multiple ways of how you can put a date in Google Sheets and our target today is to cover all of these in one single article. We will be starting off ...

0
How to Format Date in Google Sheets (3 Easy Ways)
0

Working with dates is one of the more common tasks available for any spreadsheet user. However, many users of varying expertise still have certain confusion on ...

0
How to Add Months to a Date in Google Sheets (2 Easy Ways)
0

Working with dates is one of the core tasks that anyone does in a spreadsheet. And today, we will look specifically at how we can add months to a date in ...

0
Count Days From Today in Google Sheets (5 Easy Ways)
0

Counting between dates is a common task for any spreadsheet user as dates tend to be one of the most important forms of data in any spreadsheet. However today ...

0
Find and Display Current Date in Google Sheets (Easy Guide)
0

The Date and time are one of the more fundamental aspects of any professional report. Understanding that, finding and displaying the current date and time is ...

0
How to Auto Sum in Google Sheets
0

Unlike MS Excel, Google Sheets does not have a built-in AutoSum feature. But that doesn’t mean that summing in this application is slow or non-intuitive. In ...

0
Google Sheets: Sum If Checked (2 Ways)
0

Adding values under certain conditions is a common affair in Google Sheets. But one approach that can be used to simplify a condition is the checkbox. As such, ...

0
Applying SUMIF from Another Sheet in Google Sheets
0

SUMIF is one of the fundamental functions of Google Sheets which also means that its application might vary. As such, today we will look at how we can apply ...

0
How to Perform Conditional Sum in Google Sheets (Easy Guide)
0

To perform conditional sum in Google Sheets is relatively easy. The primary approach is to combine the idea of the SUM and IF functions of the application. ...

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